        :root {
            --primary: #4361ee;
            --secondary: #3a0ca3;
            --success: #4cc9f0;
            --danger: #f72585;
            --warning: #f8961e;
            --light: #f8f9fa;
            --dark: #212529;
            --white: #ffffff;
            --gradient: linear-gradient(135deg, #4361ee, #3a0ca3);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
            --glass-bg: rgba(255, 255, 255, 0.95);
            --glass-border: rgba(255, 255, 255, 0.2);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Vazirmatn', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(76, 201, 240, 0.1) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* هدر با افکت شیشه‌ای */
        header {
            background: rgba(67, 97, 238, 0.95);
            backdrop-filter: blur(10px);
            color: var(--white);
            padding: 1rem 0;
            box-shadow: var(--shadow-md);
            border-bottom: 1px solid var(--glass-border);
            position: relative;
            z-index: 1000;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .logo {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .logo-icon {
            font-size: 2.5rem;
            background: rgba(255, 255, 255, 0.2);
            padding: 10px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
        }

        .logo h1 {
            font-size: 1.5rem;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .datetime {
            text-align: left;
            font-size: 1.1rem;
            background: rgba(255, 255, 255, 0.2);
            padding: 12px 20px;
            border-radius: 30px;
            white-space: nowrap;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            font-weight: 500;
        }

        /* صفحه لاگین */
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 2rem 0;
        }

        .login-box {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            padding: 2.5rem;
            width: 100%;
            max-width: 450px;
            position: relative;
            border: 1px solid var(--glass-border);
            transform: translateY(0);
            transition: var(--transition);
            margin: 0 auto;
        }

        .login-box:hover {
            transform: translateY(-5px);
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .login-box::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--gradient);
            border-radius: 20px 20px 0 0;
        }

        .login-title {
            text-align: center;
            margin-bottom: 1.5rem;
            color: var(--secondary);
            font-size: 1.8rem;
            font-weight: 700;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--dark);
            font-weight: 500;
            font-size: 0.95rem;
        }

        .form-control {
            width: 100%;
            padding: 0.85rem;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 1rem;
            transition: var(--transition);
            background: var(--white);
        }

        .form-control:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
            transform: translateY(-1px);
        }

        /* استایل برای select های زیبا */
        .select-wrapper {
            position: relative;
        }

        .select-wrapper::after {
            content: '⌄';
            position: absolute;
            top: 50%;
            left: 15px;
            transform: translateY(-50%);
            color: var(--primary);
            font-size: 1.2rem;
            pointer-events: none;
        }

        .select-wrapper select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            cursor: pointer;
            padding-left: 40px;
        }

        /* دکمه‌ها */
        .btn {
            display: inline-block;
            background: var(--gradient);
            color: var(--white);
            border: none;
            padding: 0.85rem 1.5rem;
            border-radius: 12px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: var(--transition);
            width: 100%;
            position: relative;
            overflow: hidden;
            box-shadow: 
                0 4px 15px rgba(67, 97, 238, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 8px 25px rgba(67, 97, 238, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-success {
            background: linear-gradient(135deg, #4cc9f0, #4361ee);
        }

        .btn-warning {
            background: linear-gradient(135deg, #f8961e, #f3722c);
        }

        .btn-danger {
            background: linear-gradient(135deg, #f72585, #b5179e);
        }

        /* دکمه‌های دانلود */
        .excel-btn {
            background: linear-gradient(135deg, #2e7d32, #4caf50);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 0.8rem 1.5rem;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-left: 1rem;
            transition: var(--transition);
            box-shadow: 
                0 4px 15px rgba(46, 125, 50, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .excel-btn:hover {
            background: linear-gradient(135deg, #1b5e20, #388e3c);
            transform: translateY(-2px);
            box-shadow: 
                0 8px 25px rgba(46, 125, 50, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        /* داشبورد */
        .dashboard {
            padding: 2rem 0;
        }

        .dashboard-title {
            text-align: center;
            margin-bottom: 2rem;
            color: var(--secondary);
            font-size: 2rem;
            font-weight: 700;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* کارت‌های رشته‌ها */
        .partition-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .partition-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: var(--shadow-sm);
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid var(--glass-border);
            position: relative;
            overflow: hidden;
        }

        .partition-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .partition-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: var(--shadow-lg);
        }

        .partition-card:hover::before {
            transform: scaleX(1);
        }

        .partition-icon {
            font-size: 4rem;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }

        .partition-card:hover .partition-icon {
            transform: scale(1.1);
        }

        .partition-title {
            font-size: 1.5rem;
            color: var(--secondary);
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .partition-desc {
            color: #666;
            line-height: 1.6;
        }

        .reports-btn {
            display: block;
            margin: 0 auto;
            width: 220px;
            max-width: 100%;
        }

        /* صفحه کلاس‌ها */
        .classes-container {
            padding: 2rem 0;
        }

        .back-btn {
            background: var(--secondary);
            margin-bottom: 1.5rem;
            width: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.5rem;
            gap: 8px;
            box-shadow: 
                0 4px 15px rgba(58, 12, 163, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .back-btn i {
            transition: transform 0.3s ease;
        }

        .back-btn:hover i {
            transform: translateX(-3px);
        }

        .class-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 2rem;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            padding: 1.5rem;
            border-radius: 15px;
            box-shadow: 
                var(--shadow-sm),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            border: 1px solid var(--glass-border);
        }

        .class-selector select {
            flex: 1;
            min-width: 200px;
        }

        .date-input {
            width: 100%;
            padding: 0.85rem;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 1rem;
            background: var(--white);
            cursor: pointer;
            transition: var(--transition);
        }

        .date-input:hover {
            border-color: var(--primary);
        }

        /* گرید کلاس‌ها */
        .classes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
        }

        .class-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 
                var(--shadow-sm),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid var(--glass-border);
            position: relative;
            overflow: hidden;
        }

        .class-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .class-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 
                var(--shadow-lg),
                0 0 0 1px rgba(255, 255, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .class-card:hover::before {
            transform: scaleX(1);
        }

        .class-icon {
            font-size: 3.5rem;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }

        .class-card:hover .class-icon {
            transform: scale(1.1);
        }

        .class-title {
            font-size: 1.3rem;
            color: var(--secondary);
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .class-info {
            color: #666;
        }

        /* صفحه حضور و غیاب */
        .attendance-container {
            padding: 2rem 0;
        }

        .attendance-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .class-info-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 
                var(--shadow-sm),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid var(--glass-border);
        }

        .info-row {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 1rem;
        }

        .info-item {
            flex: 1;
            min-width: 200px;
        }

        .info-label {
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .info-value {
            color: var(--secondary);
            font-weight: 500;
            font-size: 1.1rem;
        }

        /* لیست دانش‌آموزان با طراحی زیبا */
        .students-list {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 
                var(--shadow-sm),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            overflow: hidden;
            margin-bottom: 2rem;
            border: 1px solid var(--glass-border);
        }

        .student-row {
            display: flex;
            align-items: center;
            padding: 1.2rem;
            border-bottom: 2px solid rgba(67, 97, 238, 0.1);
            transition: var(--transition);
            background: linear-gradient(to left, transparent 50%, rgba(67, 97, 238, 0.02) 50%);
            background-size: 200% 100%;
            background-position: right bottom;
        }

        .student-row:hover {
            background-position: left bottom;
            transform: translateX(-5px);
        }

        .student-row:nth-child(even) {
            background: linear-gradient(to left, rgba(248, 249, 250, 0.5) 50%, rgba(67, 97, 238, 0.03) 50%);
            background-size: 200% 100%;
            background-position: right bottom;
        }

        .student-row:nth-child(even):hover {
            background-position: left bottom;
        }

        .student-row:last-child {
            border-bottom: none;
        }

        .student-number {
            width: 50px;
            text-align: center;
            font-weight: 600;
            color: var(--dark);
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 10px;
            border-radius: 10px;
            font-size: 0.9rem;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .student-name {
            flex: 1;
            padding: 0 1.5rem;
            font-weight: 500;
            font-size: 1.1rem;
            color: var(--dark);
        }

        .attendance-actions {
            display: flex;
            gap: 0.75rem;
        }

        .attendance-btn {
            padding: 0.7rem 1.3rem;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            transition: var(--transition);
            min-width: 90px;
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .present {
            background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
            color: #2e7d32;
            border: 2px solid #c8e6c9;
        }

        .present:hover, .present.active {
            background: linear-gradient(135deg, #2e7d32, #4caf50);
            color: white;
            transform: translateY(-2px);
            box-shadow: 
                0 4px 15px rgba(46, 125, 50, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            border-color: #2e7d32;
        }

        .absent {
            background: linear-gradient(135deg, #ffeaea, #ffcdd2);
            color: #c62828;
            border: 2px solid #ffcdd2;
        }

        .absent:hover, .absent.active {
            background: linear-gradient(135deg, #c62828, #d32f2f);
            color: white;
            transform: translateY(-2px);
            box-shadow: 
                0 4px 15px rgba(198, 40, 40, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            border-color: #c62828;
        }

        .submit-container {
            text-align: center;
            margin-top: 2rem;
        }

        /* صفحه گزارشات */
        .reports-container {
            padding: 2rem 0;
        }

        .search-form {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 
                var(--shadow-sm),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid var(--glass-border);
        }

        .search-form .form-group {
            margin-bottom: 1rem;
        }

        .search-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        .search-row .form-group {
            flex: 1;
            min-width: 200px;
        }

        .search-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        .search-actions .btn {
            width: auto;
            flex: 1;
            min-width: 150px;
        }

        .results-container {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 
                var(--shadow-sm),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid var(--glass-border);
        }

        .results-title {
            font-size: 1.5rem;
            color: var(--secondary);
            margin-bottom: 1.5rem;
            font-weight: 700;
        }

        .results-table {
            width: 100%;
            border-collapse: collapse;
        }

        .results-table th, .results-table td {
            padding: 1rem;
            text-align: right;
            border-bottom: 2px solid rgba(0, 0, 0, 0.05);
        }

        .results-table th {
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
            font-weight: 600;
            color: var(--dark);
            border-bottom: 3px solid var(--primary);
        }

        .results-table tr:hover {
            background: rgba(67, 97, 238, 0.03);
        }

        .view-icon {
            color: var(--primary);
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            padding: 8px;
            border-radius: 6px;
            background: rgba(67, 97, 238, 0.1);
        }

        .view-icon:hover {
            background: rgba(67, 97, 238, 0.2);
            transform: scale(1.1);
        }

        /* بخش لاگین گزارشات */
        .reports-login-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .reports-login-modal.active {
            display: flex;
        }

        .reports-login-box {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 2rem;
            width: 90%;
            max-width: 400px;
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.2);
            border: 1px solid var(--glass-border);
        }

        /* بخش‌های مخفی */
        .hidden {
            display: none !important;
        }

        .error-message {
            color: #d32f2f;
            text-align: center;
            margin-top: 1rem;
            padding: 12px;
            background: #ffebee;
            border-radius: 8px;
            border: 1px solid #ffcdd2;
            font-weight: 500;
        }

        /* فوتر با طراحی ویژه */
        footer {
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.95), rgba(58, 12, 163, 0.95));
            backdrop-filter: blur(10px);
            color: var(--white);
            padding: 2.5rem 0 1.5rem;
            margin-top: 3rem;
            border-top: 1px solid var(--glass-border);
            position: relative;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-logo-icon {
            font-size: 2rem;
            opacity: 0.9;
        }

        .footer-info {
            text-align: left;
        }

        .footer-info p {
            margin-bottom: 0.5rem;
            opacity: 0.9;
        }

        .creator {
            text-align: center;
            margin-top: 1.5rem;
            width: 100%;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            opacity: 0.8;
            font-weight: 600;
            font-size: 1.1rem;
            background: linear-gradient(135deg, #fff, #f0f0f0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* استایل برای اطلاعات محدودیت زمانی */
        .time-limit-info {
            text-align: center;
            padding: 12px;
            background: linear-gradient(135deg, #e3f2fd, #bbdefb);
            border-radius: 10px;
            margin: 15px 0;
            color: #1976d2;
            font-weight: bold;
            border: 2px solid #90caf9;
            box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
        }

        .time-warning {
            background: linear-gradient(135deg, #ffebee, #ffcdd2);
            color: #c62828;
            border: 2px solid #ef5350;
        }

        .time-success {
            background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
            color: #2e7d32;
            border: 2px solid #66bb6a;
        }

        /* رسپانسیو */
        @media (max-width: 768px) {
            .container {
                padding: 0 10px;
            }
            
            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }
            
            .mobile-menu-btn {
                display: block;
                position: absolute;
                left: 15px;
                top: 50%;
                transform: translateY(-50%);
            }
            
            .logo h1 {
                font-size: 1.2rem;
                margin-right: 50px;
            }
            
            .datetime {
                font-size: 0.9rem;
                width: 100%;
                text-align: center;
            }
            
            .login-box {
                padding: 1.5rem;
                margin: 1rem;
            }
            
            .login-title {
                font-size: 1.5rem;
            }
            
            .dashboard-title {
                font-size: 1.5rem;
            }
            
            .partition-container {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .partition-card {
                padding: 1.5rem;
            }
            
            .partition-icon {
                font-size: 3rem;
            }
            
            .partition-title {
                font-size: 1.3rem;
            }
            
            .class-selector {
                flex-direction: column;
                padding: 1rem;
            }
            
            .class-selector select {
                min-width: 100%;
            }
            
            .classes-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .class-card {
                padding: 1.5rem;
            }
            
            .class-icon {
                font-size: 2.5rem;
            }
            
            .attendance-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .info-row {
                flex-direction: column;
                gap: 1rem;
            }
            
            .info-item {
                min-width: 100%;
            }
            
            .student-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
                padding: 1rem;
            }
            
            .student-name {
                padding: 0;
                width: 100%;
                text-align: center;
            }
            
            .attendance-actions {
                width: 100%;
                justify-content: space-between;
            }
            
            .attendance-btn {
                flex: 1;
                text-align: center;
                padding: 0.8rem;
            }
            
            .search-form {
                padding: 1.5rem;
            }
            
            .search-row {
                flex-direction: column;
                gap: 1rem;
            }
            
            .search-row .form-group {
                min-width: 100%;
            }
            
            .search-actions {
                flex-direction: column;
            }
            
            .search-actions .btn {
                width: 100%;
            }
            
            .results-container {
                padding: 1.5rem;
                overflow-x: auto;
            }
            
            .results-table {
                min-width: 600px;
            }

            .excel-btn {
                margin-left: 0;
                margin-top: 1rem;
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .login-box {
                margin: 0.5rem;
                padding: 1.5rem 1rem;
            }
            
            .partition-card, .class-card {
                padding: 1rem;
            }
            
            .student-row {
                padding: 0.8rem;
            }
        }

        /* انیمیشن‌های ظریف */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-box,
        .partition-card,
        .class-card,
        .results-container {
            animation: fadeInUp 0.6s ease-out;
        }

        /* هایلایت برای توسعه‌دهنده */
        .developer-highlight {
            position: relative;
        }

        .developer-highlight::after {
            content: '✨';
            position: absolute;
            top: -5px;
            left: -5px;
            font-size: 0.8rem;
            animation: sparkle 2s ease-in-out infinite;
        }

        @keyframes sparkle {
            0%, 100% { opacity: 0.5; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.2); }
        }

         /* بخش جزئیات دانش آموزان */
         .student-details-section {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 
                var(--shadow-lg),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid var(--glass-border);
        }

        .student-details-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid rgba(67, 97, 238, 0.2);
        }

        .student-details-title {
            font-size: 1.5rem;
            color: var(--secondary);
            font-weight: 700;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .close-details {
            background: linear-gradient(135deg, #f72585, #b5179e);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.6rem 1.2rem;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            transition: var(--transition);
        }

        .close-details:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
        }

        .student-details-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .student-details-table th,
        .student-details-table td {
            padding: 1rem;
            text-align: right;
            border-bottom: 2px solid rgba(0, 0, 0, 0.05);
        }

        .student-details-table th {
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
            font-weight: 600;
            color: var(--dark);
            border-bottom: 3px solid var(--primary);
        }

        .student-details-table tr:hover {
            background: rgba(67, 97, 238, 0.03);
            transform: translateX(-5px);
            transition: var(--transition);
        }

        .absent-student {
            color: #c62828;
            font-weight: 600;
            background: rgba(198, 40, 40, 0.05);
            padding: 0.3rem 0.6rem;
            border-radius: 6px;
            border: 1px solid rgba(198, 40, 40, 0.2);
        }

        .present-student {
            color: #2e7d32;
            font-weight: 600;
            background: rgba(46, 125, 50, 0.05);
            padding: 0.3rem 0.6rem;
            border-radius: 6px;
            border: 1px solid rgba(46, 125, 50, 0.2);
        }

        /* استایل برای صفحه کلاس‌های نیازمند حضور و غیاب */
        .pending-attendance-container {
            padding: 2rem 0;
        }

