/* CSS الأساسي للنظام */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    direction: rtl;
}

/* خلفية مع الشعار */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 300px;
    opacity: 0.05;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 70px;
    }
    
    .sidebar .logo h2 {
        font-size: 0;
    }
    
    .sidebar .logo h2::before {
        content: "NT";
        font-size: 16px;
    }
    
    .sidebar nav ul li a span {
        display: none;
    }
}

/* تصميم لوحة التحكم */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar nav ul li {
    margin-bottom: 5px;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    gap: 10px;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-right: 3px solid var(--secondary-color);
}

.main-content {
    flex: 1;
    margin-right: 250px;
    padding: 20px;
}

header {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.card-content h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.card-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark-color);
}

/* الجداول */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background-color: var(--primary-color);
    color: white;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: right;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.data-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* الأزرار */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

/* النماذج */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* التنبيهات */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* شارات الحالة */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-upcoming {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status-ongoing {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-present {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-absent {
    background-color: #ffebee;
    color: #c62828;
}

.status-late {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* تصميم صفحة QR */
.qr-scanner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.qr-container {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.qr-header h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.session-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: right;
}

.session-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.session-info p {
    color: #666;
    margin-bottom: 5px;
}

/* صفحة تسجيل الدخول */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h2 {
    color: var(--primary-color);
    font-size: 24px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* الرسوم البيانية */
.chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
/* إضافات للصفحات الجديدة */

/* صفحة الهبوط */
.landing-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s;
}

.landing-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.logo h1 {
    color: white;
    font-size: 28px;
    margin-bottom: 5px;
}

.logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.landing-header.scrolled .logo h1 {
    color: var(--primary-color);
}

.landing-header.scrolled .logo p {
    color: #666;
}

.landing-nav .btn {
    padding: 10px 25px;
    font-size: 16px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 100px 0;
}

.hero-content h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 30px;
    color: white;
    margin-bottom: 15px;
}

.feature h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.features-section {
    padding: 100px 0;
    background-color: white;
    border-radius: 30px 30px 0 0;
    position: relative;
    margin-top: -30px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 30px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.how-it-works {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    counter-reset: step-counter;
}

.step {
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0 auto 20px;
    position: relative;
}

.step-number::before {
    content: counter(step-counter);
    counter-increment: step-counter;
}

.step h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step p {
    color: #666;
    line-height: 1.6;
}

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    margin: 30px;
}

.cta-section h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.landing-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li i {
    margin-left: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* إضافات للإعدادات */
.settings-tabs {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background-color: white;
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-level {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 3px;
}

.system-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.info-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.backup-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.logs {
    background-color: #1a1a1a;
    color: #00ff00;
    padding: 20px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow: auto;
    max-height: 300px;
}

/* إضافات للتقارير */
.charts-container {
    margin-top: 30px;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.chart-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination-list li a {
    display: block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination-list li a:hover {
    background-color: #e9ecef;
}

.pagination-list li.active a {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .landing-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
        text-align: right;
    }
    
    .tab-btn.active {
        border-right-color: var(--secondary-color);
        border-bottom: none;
    }
    
    .chart-row {
        grid-template-columns: 1fr;
    }
    
    .chart-box {
        width: 100%;
    }
}
/* أنماط صفحة الطالب */
.student-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.student-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.student-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.student-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.student-details h2 {
    margin: 0;
    font-size: 24px;
}

.student-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.student-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.student-qr img {
    border: 4px solid white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.student-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.student-sections {
    padding: 30px;
}

.student-sections section {
    margin-bottom: 40px;
}

.student-sections h3 {
    color: var(--primary-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.session-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.session-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.session-header h4 {
    margin: 0;
    color: var(--primary-color);
    flex: 1;
}

.session-time {
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.session-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.session-info i {
    width: 20px;
    color: var(--secondary-color);
}

.session-status {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.attendance-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-time small {
    color: #666;
}

.session-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.inline-form {
    display: inline;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

.attendance-history .data-table {
    font-size: 14px;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.upcoming-date {
    text-align: center;
    background: white;
    padding: 10px;
    border-radius: 8px;
    min-width: 60px;
}

.date-day {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.date-month {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.upcoming-details {
    flex: 1;
}

.upcoming-details h5 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.upcoming-details p {
    margin: 3px 0;
    color: #666;
    font-size: 14px;
}

.upcoming-status .badge {
    padding: 5px 10px;
    border-radius: 15px;
}

.student-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

/* أنماط صفحة تفاصيل الطالب */
.student-profile {
    padding: 20px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-info h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.profile-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-meta span {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.profile-meta i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.profile-qr img {
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-content h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-color);
}

.tabs-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background: white;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.notes-container {
    max-width: 800px;
    margin: 0 auto;
}

.notes-items {
    margin-bottom: 30px;
}

.note-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
}

.note-text {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 12px;
}

/* أنماط صفحة تفاصيل الجلسة */
.session-details {
    padding: 20px;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.session-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.session-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.session-meta span {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.session-meta i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.session-actions {
    display: flex;
    gap: 10px;
}

.session-info-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.session-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.session-info-card .session-meta {
    margin-top: 15px;
}

.attendance-stats {
    display: flex;
    gap: 10px;
}

.attendance-stats .badge {
    padding: 8px 15px;
    font-size: 14px;
}

.attendance-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* أنماط صفحة خطأ الطالب */
.error-container {
    max-width: 500px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.error-icon {
    font-size: 60px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.error-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.error-container p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .student-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .student-info {
        flex-direction: column;
        text-align: center;
    }
    
    .student-meta {
        justify-content: center;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .session-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .session-meta {
        justify-content: center;
    }
    
    .session-actions {
        justify-content: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
        text-align: right;
    }
    
    .tab-btn.active {
        border-right-color: var(--secondary-color);
        border-bottom: none;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .student-stats,
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .student-stats,
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .student-meta,
    .profile-meta,
    .session-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}
/* ===== Modern UI Enhancements ===== */
:root{
  --radius: 18px;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
}

.glass{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(148,163,184,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-dashboard .main-content{
  background: transparent;
}

.main-content header{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(148,163,184,.30);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-section{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.data-table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

.data-table thead th{
  background: rgba(15,23,42,.90);
  color: #fff;
}

.data-table tbody tr:hover{
  background: rgba(37,99,235,.06);
}

.btn{
  border-radius: 12px !important;
}

.btn-sm{
  border-radius: 10px !important;
}

.sidebar{
  background: rgba(15,23,42,.92);
  border-left: 1px solid rgba(148,163,184,.25);
}

.sidebar .logo{
  background: transparent;
}

.sidebar a{
  border-radius: 12px;
}

.sidebar a:hover{
  background: rgba(255,255,255,.10);
}

.login-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.login-container{
  width: min(420px, 100%);
  padding: 22px 20px;
}

.login-logo h2{
  font-size: 20px;
  margin-bottom: 4px;
}

.login-logo p{
  color: #64748b;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Responsive sidebar */
@media (max-width: 992px){
  .sidebar{
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    transform: translateX(105%);
    transition: .25s ease;
    z-index: 50;
  }
  body.sidebar-open .sidebar{ transform: translateX(0); }
  .main-content{ margin-right: 0 !important; }
  .mobile-topbar{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(148,163,184,.25);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
  }
}

/* Print / PDF (Browser Print) */
@media print{
  .sidebar, .action-buttons, .btn, .filters, .pagination, .mobile-topbar{ display:none !important; }
  body{ background:#fff !important; }
  body::before{ display:none !important; }
  .content-section, header{ box-shadow:none !important; border:none !important; background:#fff !important; }
  .data-table thead th{ background:#111827 !important; color:#fff !important; }
}
