/* Kurdish RTL Attendance System Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /* OR */
    background: linear-gradient(135deg, #e7faff 0%, #faf6ff 100%); /* Cyan gradient */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    direction: rtl;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    color: #000724;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000930;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    background: linear-gradient(135deg, #217115 0%, #319123 100%); /* Match your body gradient */
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bolder;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.4); /* Match your gradient shadow */
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-success {
    background: linear-gradient(135deg, #baab00 0%, #baab00 100%);
    font-weight: bolder;
}

.btn-danger {
    background: linear-gradient(135deg, #c70000 0%, #c70000 100%);
    font-weight: bolder;
}

.btn-small {
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
    display: inline-block;
    margin: 5px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Dashboard */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.navbar h1 {
    color: #1e3a8a; /* Match your main color */
    margin: 0;
    font-size: 28px;
}

.navbar .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar .user-info span {
    color: #666;
    font-weight: 500;
}

.navbar a {
    color: #000e4b;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background: #000c43;
    color: white;
}

.nav-menu {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);

}


.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    
    
}

.nav-menu ul li a {
    
    padding: 12px 25px;
    background: linear-gradient(135deg, #114f91 0%, #114f91 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
          display: block;

  gap: 8px;  
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.content-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-box h2 {
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}
/* Navbar with Logo */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-logo .logo {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.navbar h1 {
    color: #1e3a8a;
    margin: 0;
    font-size: 28px;
    flex-grow: 1;
    text-align: center;
}

.navbar .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.navbar .user-info span {
    color: #666;
    font-weight: 500;
}

.navbar a {
    color: #000e4b;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background: #000c43;
    color: white;
}

/* Login Page Logo */
.login-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.login-page-logo {
    height: 100px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #273d9d 0%, #040128 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table thead {
    background: linear-gradient(135deg, #114f91 0%, #114f91 100%);
    color: white;
}

table th,
table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:hover {
    background: #f8f9fa;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Attendance Grid */
.attendance-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.student-row {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.student-row:hover {
    background: #e9ecef;
}

.student-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.attendance-checkbox {
    display: flex;
    gap: 20px;
}

.attendance-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.attendance-checkbox input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Report Tables */
.report-table {
    font-size: 14px;
}

.report-table th {
    font-size: 12px;
    padding: 10px 8px;
}

.report-table td {
    padding: 10px 8px;
}

.report-table .present {
    color: green;
    font-weight: bold;
}

.report-table .absent {
    color: red;
    font-weight: bold;
}

/* File Upload */
.file-upload {
    border: 2px dashed #667eea;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    background: #f0f2ff;
    border-color: #17002e;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    cursor: pointer;
    color: #000b3d;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu ul li a {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-menu,
    .btn,
    .no-print {
        display: none !important;
    }

    .content-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}
/* Enhanced Print Styles for A4 Paper */
@media print {
    @page {
        size: A4;
        margin: 1cm;
    }
    
    body {
        background: white !important;
        font-size: 10pt;
        margin: 0;
        padding: 0;
    }
    
    .navbar,
    .nav-menu,
    .btn,
    .no-print,
    .alert,
    .form-group,
    form {
        display: none !important;
    }
    
    .dashboard {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    
    .content-box {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        page-break-inside: avoid;
    }
    
    .content-box h2 {
        font-size: 14pt;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 2px solid #000;
        text-align: center;
    }
    
    .content-box p {
        font-size: 11pt;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .table-container {
        overflow: visible !important;
        margin: 0;
    }
    
    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 8pt !important;
        page-break-inside: auto;
    }
    
    table thead {
        background: #333 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
table th {
    background-color: #1e3a8a; /* Your main color */
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: bold;
    border-bottom: 2px solid #3b82f6; /* Your secondary color */
}
    
    table td {
        padding: 3px 2px !important;
        font-size: 8pt !important;
        border: 1px solid #666 !important;
    }
    
    table tbody tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    /* Color printing for present/absent */
    .present {
        background: #e8f5e9 !important;
        color: green !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .absent {
        background: #ffebee !important;
        color: red !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Make report table fit better */
    .report-table {
        font-size: 7pt !important;
    }
    
    .report-table th,
    .report-table td {
        padding: 2px 1px !important;
        font-size: 7pt !important;
    }
    
    /* First column wider for names */
    .report-table th:first-child,
    .report-table td:first-child {
        width: 150px !important;
        font-size: 8pt !important;
    }
    
    /* Ensure colors print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Print landscape for wide tables */
@media print and (orientation: landscape) {
    @page {
        size: A4 landscape;
        margin: 0.5cm;
    }
    
    .report-table th,
    .report-table td {
        font-size: 7pt !important;
        padding: 2px 1px !important;
    }
}
.material-icons {
  font-size: 10px;   /* try 14px, 16px, 18px */
  

}
