/* ============================================
   ENHANCED ADMIN PANEL STYLES - MODERN DESIGN
   ============================================ */

/* ========== ANIMATIONS ========== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Gradient Shift */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Bounce In */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
}

/* ========== ENHANCED CARDS ========== */

.card-modern {
    background: var(--card-bg);
    border-radius: 20px !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.6s ease-out;
    color: var(--text-primary);
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-modern.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Card Header Enhancement */
.card-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0 !important;
    border: none;
    position: relative;
    overflow: hidden;
}

.card-header-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.card-header-modern h5,
.card-header-modern h4 {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Card Body Enhancement */
.card-body-modern {
    padding: 25px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* ========== STATS CARDS ========== */

.stat-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease-out;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-icon.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0;
    animation: fadeIn 0.8s ease-out;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ========== SIDEBAR ENHANCEMENT ========== */

.sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    position: relative;
    overflow-y: auto;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    text-align: center;
    background: rgba(0,0,0,0.2);
    position: relative;
    animation: slideInRight 0.6s ease-out;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.sidebar-brand {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar-brand:hover {
    color: #667eea;
    transform: scale(1.05);
}

.sidebar-brand i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.sidebar-nav {
    padding: 20px 0;
    position: relative;
}

.nav-item {
    margin: 6px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideInRight 0.4s ease-out;
    animation-fill-mode: both;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.15s; }
.nav-item:nth-child(3) { animation-delay: 0.2s; }
.nav-item:nth-child(4) { animation-delay: 0.25s; }
.nav-item:nth-child(5) { animation-delay: 0.3s; }
.nav-item:nth-child(6) { animation-delay: 0.35s; }
.nav-item:nth-child(7) { animation-delay: 0.4s; }
.nav-item:nth-child(8) { animation-delay: 0.45s; }

.nav-link {
    color: rgba(255,255,255,0.75);
    padding: 14px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
}

/* Animated Border on Hover */
.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transition: width 0.4s ease;
    border-radius: 12px 0 0 12px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transition: height 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover::after {
    height: 70%;
}

.nav-link:hover {
    color: white;
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Active State */
.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    border-color: rgba(255,255,255,0.2);
    transform: translateX(-5px);
}

.nav-link.active::before {
    width: 100%;
    background: rgba(255,255,255,0.1);
}

.nav-link.active::after {
    height: 100%;
    background: white;
    width: 3px;
}

.nav-link.active i {
    transform: scale(1.1);
}

/* Icon Styles */
.nav-link i {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.nav-link:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.nav-link.active i {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Logout Link Special Style */
.nav-link[onclick*="logout"] {
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
}

.nav-link[onclick*="logout"]:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: rgba(231, 76, 60, 0.3);
}

/* Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* User Info Section (if exists) */
.sidebar-user-info {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 10px 0;
}

.sidebar-user-info .user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sidebar-user-info .user-name {
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.sidebar-user-info .user-role {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-align: center;
}

/* Badge on Nav Items */
.nav-item .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(231, 76, 60, 0);
    }
}

/* ========== BUTTONS ENHANCEMENT ========== */

.btn-modern {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern:active {
    transform: scale(0.95);
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary-modern:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-success-modern {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.btn-danger-modern {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.btn-warning-modern {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-info-modern {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* ========== TABLE ENHANCEMENT ========== */

.table-modern {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-modern thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-modern thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.table-modern thead th:last-child {
    border-radius: 0 10px 10px 0;
}

.table-modern tbody tr {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.table-modern tbody tr:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.table-modern tbody td {
    padding: 15px;
    border: none;
    vertical-align: middle;
}

.table-modern tbody td:first-child {
    border-radius: 10px 0 0 10px;
}

.table-modern tbody td:last-child {
    border-radius: 0 10px 10px 0;
}

/* ========== FORM ENHANCEMENT ========== */

.form-control-modern {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 18px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    animation: glowPulse 1.5s ease-in-out infinite;
}

.form-label-modern {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== BADGE ENHANCEMENT ========== */

.badge-modern {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    animation: scaleIn 0.3s ease-out;
}

.badge-success-modern {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.badge-danger-modern {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.badge-warning-modern {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-info-modern {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* ========== MODAL ENHANCEMENT ========== */

.modal-content-modern {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: bounceIn 0.5s ease-out;
}

.modal-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 20px 25px;
}

.modal-body-modern {
    padding: 25px;
    background: var(--card-bg);
}

.modal-footer-modern {
    background: var(--card-bg);
    border-radius: 0 0 20px 20px;
    border: none;
    padding: 20px 25px;
}

/* ========== NOTIFICATION ========== */

.notification-modern {
    position: fixed;
    top: 80px;
    left: 20px;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideInLeft 0.5s ease-out;
    border-left: 4px solid #667eea;
    backdrop-filter: blur(10px);
    max-width: 400px;
}

.notification-modern.success {
    border-left-color: #27ae60;
}

.notification-modern.error,
.notification-modern.danger {
    border-left-color: #e74c3c;
}

.notification-modern.warning {
    border-left-color: #f39c12;
}

/* ========== LOADING SPINNER ========== */

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner-modern-large {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite, glowPulse 2s ease-in-out infinite;
}

/* ========== FLOATING ACTION BUTTON ========== */

.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    animation: float 3s ease-in-out infinite;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

/* ========== CHART CONTAINER ========== */

.chart-container {
    position: relative;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease-out;
}

/* ========== MANAGEMENT PAGES ENHANCEMENT ========== */

/* Doctors Management */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.doctor-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.doctor-card:hover::before {
    transform: scaleX(1);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.doctor-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.doctor-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
}

.doctor-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.doctor-stat-item {
    text-align: center;
}

.doctor-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.doctor-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.doctor-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

/* Subjects Management */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subject-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease-out;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 0 0 0 100%;
}

.subject-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.subject-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.subject-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subject-code {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.subject-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 10px 0;
}

.subject-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

/* Levels Management */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.level-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: bounceIn 0.6s ease-out;
}

.level-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.level-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.level-name {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.level-subjects-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.level-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Statistics Cards Enhancement */
.stats-doctor-card,
.stats-subject-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stats-doctor-card::before,
.stats-subject-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.stats-doctor-card:hover::before,
.stats-subject-card:hover::before {
    transform: scaleY(1);
}

.stats-doctor-card:hover,
.stats-subject-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stats-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stats-card-title {
    flex: 1;
}

.stats-card-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.stats-card-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stats-card-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.stats-metric {
    text-align: center;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.stats-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stats-metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Action Buttons in Cards */
.btn-card-action {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-card-edit {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-card-edit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-card-delete {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.btn-card-delete:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.btn-card-view {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.btn-card-view:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Dark Mode Fixes for Management Pages */
[data-theme="dark"] .doctor-card,
[data-theme="dark"] .subject-card,
[data-theme="dark"] .level-card,
[data-theme="dark"] .stats-doctor-card,
[data-theme="dark"] .stats-subject-card {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #34495e;
}

[data-theme="dark"] .doctor-name,
[data-theme="dark"] .subject-name,
[data-theme="dark"] .level-name,
[data-theme="dark"] .stats-card-name {
    color: #ecf0f1;
}

[data-theme="dark"] .doctor-info,
[data-theme="dark"] .subject-code,
[data-theme="dark"] .level-subjects-count,
[data-theme="dark"] .stats-card-subtitle,
[data-theme="dark"] .stats-metric-label,
[data-theme="dark"] .doctor-stat-label {
    color: #bdc3c7;
}

[data-theme="dark"] .doctor-stats,
[data-theme="dark"] .stats-metric {
    border-color: #34495e;
    background: rgba(102, 126, 234, 0.08);
}

[data-theme="dark"] .subject-level {
    background: rgba(102, 126, 234, 0.15);
    color: #a5b4fc;
}

[data-theme="dark"] .empty-state-title {
    color: #ecf0f1;
}

[data-theme="dark"] .empty-state-message {
    color: #95a5a6;
}

[data-theme="dark"] .empty-state-icon {
    color: #4a5f7f;
}

/* ========== LECTURE DETAILS IN MODAL ========== */

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

.lecture-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.lecture-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.lecture-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.lecture-detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.lecture-detail-info {
    flex: 1;
}

.lecture-detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.lecture-detail-subject {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.lecture-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.lecture-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lecture-meta-item i {
    color: #667eea;
}

.lecture-attendance-badge {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== SUBJECTS IN MODAL ========== */

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

.subject-card-in-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.subject-card-in-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.subject-card-in-modal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.2);
}

.subject-card-in-modal:hover::before {
    transform: scaleX(1);
}

.subject-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.subject-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.subject-card-title-area {
    flex: 1;
}

.subject-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.subject-card-code {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.subject-card-description {
    padding: 12px;
    background: rgba(240, 147, 251, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.subject-card-footer {
    display: flex;
    justify-content: flex-end;
}

.subject-card-badge {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Dark Mode for New Components */
[data-theme="dark"] .lecture-detail-card {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .lecture-detail-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .lecture-detail-title {
    color: #e2e8f0;
}

[data-theme="dark"] .lecture-detail-subject,
[data-theme="dark"] .lecture-meta-item {
    color: #a0aec0;
}

[data-theme="dark"] .lecture-detail-meta {
    border-color: #4a5568;
}

[data-theme="dark"] .subject-card-in-modal {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .subject-card-in-modal:hover {
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

[data-theme="dark"] .subject-card-name {
    color: #e2e8f0;
}

[data-theme="dark"] .subject-card-code,
[data-theme="dark"] .subject-card-description {
    color: #a0aec0;
}

[data-theme="dark"] .subject-card-description {
    background: rgba(240, 147, 251, 0.1);
}

/* ========== LECTURES MANAGEMENT MODERN DESIGN ========== */

.lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lecture-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.lecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.lecture-card:hover::before {
    transform: scaleX(1);
}

.lecture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* Lecture Card Header */
.lecture-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.lecture-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.lecture-icon-lecture {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lecture-icon-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.lecture-info {
    flex: 1;
    min-width: 0;
}

.lecture-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lecture-subject {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lecture-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-active i {
    animation: pulse 2s ease-in-out infinite;
}

.status-finished {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* Lecture Card Body */
.lecture-card-body {
    padding: 20px;
}

.lecture-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 14px;
}

.lecture-detail i {
    width: 20px;
    color: #667eea;
    font-size: 14px;
}

.lecture-detail span {
    flex: 1;
}

.lecture-groups {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.group-badge,
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.group-badge {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.section-badge {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    color: #f093fb;
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.lecture-warning {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #d97706;
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Lecture Card Footer */
.lecture-card-footer {
    padding: 15px 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.lecture-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 5px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action i {
    font-size: 18px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-action-qr:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.btn-action-fullscreen:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border-color: #06b6d4;
}

.btn-action-manual:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.btn-action-stats:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
}

.lecture-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-control i {
    font-size: 14px;
}

.btn-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-control-lock {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-control-unlock {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-control-finish {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-control-reopen {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-control-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Dark Mode for Lectures */
[data-theme="dark"] .lecture-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .lecture-card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom-color: #334155;
}

[data-theme="dark"] .lecture-title {
    color: #e2e8f0;
}

[data-theme="dark"] .lecture-subject {
    color: #94a3b8;
}

[data-theme="dark"] .lecture-detail {
    color: #cbd5e1;
}

[data-theme="dark"] .lecture-card-footer {
    background: #1e293b;
    border-top-color: #334155;
}

[data-theme="dark"] .btn-action {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .lecture-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .card-modern {
        margin-bottom: 20px;
    }
    
    .fab {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    
    .doctors-grid,
    .subjects-grid,
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-card-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lecture-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .lectures-grid {
        grid-template-columns: 1fr;
    }
    
    .lecture-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lecture-controls {
        grid-template-columns: 1fr;
    }
    
    .btn-action span {
        font-size: 10px;
    }
}

/* ========== UTILITY CLASSES ========== */

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

/* ========== DARK MODE FIXES ========== */

[data-theme="dark"] .notification-modern {
    background: #2c3e50;
    color: #ecf0f1;
    border: 1px solid #34495e;
}

[data-theme="dark"] .card-modern {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .stat-card {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .stat-value {
    color: #ecf0f1;
}

[data-theme="dark"] .stat-label {
    color: #bdc3c7;
}

[data-theme="dark"] .table-modern tbody tr {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .table-modern tbody td {
    color: #ecf0f1;
}

[data-theme="dark"] .modal-content-modern {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .modal-body-modern {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .modal-footer-modern {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .form-control-modern {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5f7f;
}

[data-theme="dark"] .form-control-modern:focus {
    background: #34495e;
    color: #ecf0f1;
    border-color: #667eea;
}

[data-theme="dark"] .form-label-modern {
    color: #ecf0f1;
}

[data-theme="dark"] .form-select,
[data-theme="dark"] select.form-control {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5f7f;
}

[data-theme="dark"] .form-select:focus,
[data-theme="dark"] select.form-control:focus {
    background: #34495e;
    color: #ecf0f1;
    border-color: #667eea;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] textarea {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5f7f;
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="password"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="number"]:focus,
[data-theme="dark"] input[type="date"]:focus,
[data-theme="dark"] input[type="time"]:focus,
[data-theme="dark"] textarea:focus {
    background: #34495e;
    color: #ecf0f1;
    border-color: #667eea;
}

[data-theme="dark"] .chart-container {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ecf0f1;
}

[data-theme="dark"] p {
    color: #bdc3c7;
}

[data-theme="dark"] .text-muted {
    color: #95a5a6 !important;
}

[data-theme="dark"] .text-dark {
    color: #ecf0f1 !important;
}

[data-theme="dark"] .bg-light {
    background-color: #34495e !important;
}

[data-theme="dark"] .alert {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5f7f;
}

[data-theme="dark"] .list-group-item {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #34495e;
}

[data-theme="dark"] .dropdown-menu {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #34495e;
}

[data-theme="dark"] .dropdown-item {
    color: #ecf0f1;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #34495e;
    color: #fff;
}

[data-theme="dark"] .card-header {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5f7f;
}

[data-theme="dark"] .card-body {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .card-footer {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5f7f;
}

[data-theme="dark"] .spinner-modern-large {
    border-color: #4a5f7f;
    border-top-color: #667eea;
}

[data-theme="dark"] label {
    color: #ecf0f1;
}

[data-theme="dark"] .input-group-text {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5f7f;
}

[data-theme="dark"] .page-item .page-link {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #34495e;
}

[data-theme="dark"] .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

[data-theme="dark"] hr {
    border-color: #34495e;
    opacity: 0.5;
}

/* Fix for specific Bootstrap components */
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .modal-content {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #34495e;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #34495e;
}

/* Tables in dark mode */
[data-theme="dark"] table {
    color: #ecf0f1;
}

[data-theme="dark"] .table {
    color: #ecf0f1;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* Badges in dark mode */
[data-theme="dark"] .badge {
    color: #fff;
}

[data-theme="dark"] .badge.bg-light {
    background-color: #34495e !important;
    color: #ecf0f1 !important;
}

/* Progress bars in dark mode */
[data-theme="dark"] .progress {
    background-color: #34495e;
}

/* Breadcrumb in dark mode */
[data-theme="dark"] .breadcrumb {
    background: #34495e;
}

[data-theme="dark"] .breadcrumb-item {
    color: #bdc3c7;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #ecf0f1;
}

/* Nav tabs in dark mode */
[data-theme="dark"] .nav-tabs {
    border-bottom-color: #34495e;
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: #bdc3c7;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: #34495e;
    color: #ecf0f1;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
}

/* Custom select styling for dark mode */
[data-theme="dark"] select option {
    background: #34495e;
    color: #ecf0f1;
}

/* Placeholder text in dark mode */
[data-theme="dark"] ::placeholder {
    color: #95a5a6;
    opacity: 1;
}

[data-theme="dark"] :-ms-input-placeholder {
    color: #95a5a6;
}

[data-theme="dark"] ::-ms-input-placeholder {
    color: #95a5a6;
}

/* Disabled inputs in dark mode */
[data-theme="dark"] input:disabled,
[data-theme="dark"] textarea:disabled,
[data-theme="dark"] select:disabled {
    background: #1a1a2e;
    color: #7f8c8d;
}

/* Checkboxes and radio buttons in dark mode */
[data-theme="dark"] .form-check-input {
    background-color: #34495e;
    border-color: #4a5f7f;
}

[data-theme="dark"] .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

[data-theme="dark"] .form-check-label {
    color: #ecf0f1;
}

/* Scrollbar styling for dark mode */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 6px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #4a5f7f;
}

/* ============================================
   STATISTICS PAGE - NEW MODERN DESIGN
   ============================================ */

/* Statistics Header */
.statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(94, 114, 228, 0.2);
    animation: fadeIn 0.5s ease;
}

.statistics-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.statistics-title i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.statistics-title h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.statistics-title p {
    margin: 0;
    font-size: 0.95rem;
}

/* Stats Overview Grid */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeIn 0.6s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.stat-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    transform: rotate(10deg) scale(1.1);
}

.stat-card-content {
    position: relative;
    z-index: 2;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card-bg {
    position: absolute;
    top: 50%;
    right: -20px;
    font-size: 120px;
    opacity: 0.03;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Color Variants */
.stat-card-primary {
    --accent-color: #667eea;
    --secondary-color: #764ba2;
}

.stat-card-warning {
    --accent-color: #f093fb;
    --secondary-color: #f5576c;
}

.stat-card-success {
    --accent-color: #4facfe;
    --secondary-color: #00f2fe;
}

.stat-card-info {
    --accent-color: #43e97b;
    --secondary-color: #38f9d7;
}

/* Charts Section */
.charts-section {
    margin: 2.5rem 0;
}

.chart-container-modern {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeIn 0.7s ease;
}

.chart-container-modern:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-title i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-controls {
    display: flex;
    gap: 1rem;
}

.chart-body {
    position: relative;
    min-height: 350px;
    padding: 1rem 0;
}

.chart-body canvas {
    max-height: 400px;
}

/* Detailed Statistics Section */
.statistics-detailed-section {
    margin: 3rem 0;
    animation: fadeIn 0.8s ease;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h5 i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Box in Statistics */
.search-box-stats {
    position: relative;
    width: 300px;
}

.search-box-stats i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

.search-input-stats {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.search-input-stats:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.search-input-stats:focus + i {
    color: #667eea;
}

.search-input-stats::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

[data-theme="dark"] .search-input-stats {
    background: #1e2433;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-input-stats:focus {
    border-color: #667eea;
    background: #252b3d;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Detail Stat Card */
.detail-stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease;
}

.detail-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-stat-card:hover::before {
    opacity: 1;
}

.detail-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.detail-stat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.detail-stat-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.detail-stat-avatar-subject {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.3);
}

.detail-stat-card:hover .detail-stat-avatar {
    transform: scale(1.1) rotate(5deg);
}

.detail-stat-info {
    flex: 1;
}

.detail-stat-info h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.detail-stat-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-stat-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.metric-item {
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-modern h5 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Dark Theme Adjustments for Statistics */
[data-theme="dark"] .statistics-header {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.15), rgba(255, 107, 107, 0.15));
    border-color: rgba(94, 114, 228, 0.3);
}

[data-theme="dark"] .stat-card {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .chart-container-modern {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chart-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .detail-stat-card {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .detail-stat-card::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

[data-theme="dark"] .metric-item {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .metric-item:hover {
    background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .empty-state-modern {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   DASHBOARD PAGE - MODERN REDESIGN
   ============================================ */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: fadeIn 0.5s ease;
}

.dashboard-welcome {
    flex: 1;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wave-emoji {
    display: inline-block;
    font-size: 2.5rem;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.dashboard-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.dashboard-stat-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: scaleIn 0.6s ease;
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-color-1), var(--stat-color-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.dashboard-stat-card:hover::before {
    transform: scaleX(1);
}

.dashboard-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.dashboard-stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--stat-color-1), var(--stat-color-2));
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover .dashboard-stat-icon {
    transform: rotate(15deg) scale(1.15);
}

.dashboard-stat-content {
    position: relative;
    z-index: 2;
}

.dashboard-stat-value {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.dashboard-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.dashboard-stat-bg {
    position: absolute;
    top: 50%;
    right: -30px;
    font-size: 140px;
    opacity: 0.03;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Color Variants for Dashboard Stats */
.dashboard-stat-primary {
    --stat-color-1: #667eea;
    --stat-color-2: #764ba2;
}

.dashboard-stat-success {
    --stat-color-1: #43e97b;
    --stat-color-2: #38f9d7;
}

.dashboard-stat-warning {
    --stat-color-1: #fa709a;
    --stat-color-2: #fee140;
}

.dashboard-stat-info {
    --stat-color-1: #4facfe;
    --stat-color-2: #00f2fe;
}

/* Dashboard Content Grid */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

@media (max-width: 968px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Panel */
.dashboard-panel {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeIn 0.7s ease;
}

.dashboard-panel:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dashboard-panel-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-bottom: 2px solid var(--border-color);
}

.dashboard-panel-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-panel-header h5 i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-panel-body {
    padding: 1.5rem 2rem;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--action-color-1), var(--action-color-2));
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.quick-action-card:hover::before {
    width: 300px;
    height: 300px;
}

.quick-action-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.2);
}

.quick-action-title {
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* Quick Action Colors */
.quick-action-primary {
    --action-color-1: #667eea;
    --action-color-2: #764ba2;
}

.quick-action-success {
    --action-color-1: #43e97b;
    --action-color-2: #38f9d7;
}

.quick-action-info {
    --action-color-1: #4facfe;
    --action-color-2: #00f2fe;
}

.quick-action-warning {
    --action-color-1: #fa709a;
    --action-color-2: #fee140;
}

/* Activity Item */
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(102, 126, 234, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease;
}

.activity-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateX(-5px);
    border-color: rgba(102, 126, 234, 0.2);
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.activity-item:hover .activity-icon {
    transform: scale(1.1);
}

.activity-icon-active {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.activity-icon-finished {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.3);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.activity-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.activity-subject,
.activity-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.activity-status {
    flex-shrink: 0;
}

/* Empty State Small */
.empty-state-small {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon-small {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state-small p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

/* Dark Theme Adjustments for Dashboard */
[data-theme="dark"] .dashboard-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .dashboard-date {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dashboard-stat-card {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dashboard-stat-card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .dashboard-panel {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dashboard-panel-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .activity-item {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .activity-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MODERN LECTURES MANAGEMENT PAGE
   ======================================== */

/* Modern Lectures Grid */
.lectures-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    padding: 0;
    margin-top: 24px;
}

/* Modern Lecture Card */
.lecture-modern-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.5s ease-out backwards;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.lecture-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5e72e4, #825ee4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lecture-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.lecture-modern-card:hover::before {
    opacity: 1;
}

/* Header Section */
.lecture-modern-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fe 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lecture-type-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    background: rgba(94, 114, 228, 0.1);
    color: #5e72e4;
}

.lecture-type-indicator.type-lecture {
    background: rgba(45, 206, 137, 0.1);
    color: #2dce89;
}

.lecture-type-indicator.type-section {
    background: rgba(251, 99, 64, 0.1);
    color: #fb6340;
}

.lecture-type-indicator i {
    font-size: 14px;
}

/* Status Badge */
.lecture-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lecture-status-badge i {
    font-size: 11px;
}

.lecture-status-badge.lecture-status-active {
    background: linear-gradient(135deg, #2dce89, #2dcecc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(45, 206, 137, 0.3);
    animation: pulse 2s infinite;
}

.lecture-status-badge.lecture-status-closed {
    background: linear-gradient(135deg, #fb6340, #f5365c);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(251, 99, 64, 0.3);
}

.lecture-status-badge.lecture-status-finished {
    background: linear-gradient(135deg, #8898aa, #6c757d);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

/* Main Content */
.lecture-modern-content {
    padding: 24px;
}

.lecture-modern-title {
    font-size: 20px;
    font-weight: 700;
    color: #32325d;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.lecture-modern-subject {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8898aa;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 20px 0;
}

.lecture-modern-subject i {
    color: #5e72e4;
    font-size: 13px;
}

/* Details Section */
.lecture-modern-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lecture-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.lecture-detail-item:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.lecture-detail-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5e72e4, #825ee4);
    color: #ffffff;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 14px;
}

.lecture-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.lecture-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lecture-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #32325d;
}

/* Quick Actions */
.lecture-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px 24px;
    background: #f8f9fe;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lecture-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: none;
    background: #ffffff;
    color: #525f7f;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lecture-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lecture-quick-btn.lecture-btn-qr:hover {
    background: linear-gradient(135deg, #5e72e4, #825ee4);
    color: #ffffff;
}

.lecture-quick-btn.lecture-btn-fullscreen:hover {
    background: linear-gradient(135deg, #11cdef, #1171ef);
    color: #ffffff;
}

.lecture-quick-btn.lecture-btn-add:hover {
    background: linear-gradient(135deg, #2dce89, #2dcecc);
    color: #ffffff;
}

.lecture-quick-btn.lecture-btn-stats:hover {
    background: linear-gradient(135deg, #fb6340, #f5365c);
    color: #ffffff;
}

/* Control Buttons */
.lecture-modern-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lecture-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid transparent;
    background: #f7fafc;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lecture-control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.lecture-control-btn:hover::before {
    width: 300px;
    height: 300px;
}

.lecture-control-btn span {
    position: relative;
    z-index: 1;
}

.lecture-control-btn i {
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.lecture-control-btn.lecture-btn-lock {
    color: #fb6340;
    border-color: #fb6340;
}

.lecture-control-btn.lecture-btn-lock:hover {
    background: linear-gradient(135deg, #fb6340, #f5365c);
    color: #ffffff;
    border-color: transparent;
}

.lecture-control-btn.lecture-btn-unlock {
    color: #2dce89;
    border-color: #2dce89;
}

.lecture-control-btn.lecture-btn-unlock:hover {
    background: linear-gradient(135deg, #2dce89, #2dcecc);
    color: #ffffff;
    border-color: transparent;
}

.lecture-control-btn.lecture-btn-finish {
    color: #5e72e4;
    border-color: #5e72e4;
}

.lecture-control-btn.lecture-btn-finish:hover {
    background: linear-gradient(135deg, #5e72e4, #825ee4);
    color: #ffffff;
    border-color: transparent;
}

.lecture-control-btn.lecture-btn-reopen {
    color: #11cdef;
    border-color: #11cdef;
}

.lecture-control-btn.lecture-btn-reopen:hover {
    background: linear-gradient(135deg, #11cdef, #1171ef);
    color: #ffffff;
    border-color: transparent;
}

.lecture-control-btn.lecture-btn-delete {
    color: #f5365c;
    border-color: #f5365c;
}

.lecture-control-btn.lecture-btn-delete:hover {
    background: linear-gradient(135deg, #f5365c, #d63447);
    color: #ffffff;
    border-color: transparent;
}

/* Empty State */
.lectures-empty-state {
    text-align: center;
    padding: 80px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    margin-top: 24px;
}

.empty-state-icon-modern {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.1), rgba(130, 94, 228, 0.1));
    border-radius: 50%;
    color: #5e72e4;
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
}

.empty-state-title-modern {
    font-size: 24px;
    font-weight: 700;
    color: #32325d;
    margin: 0 0 12px 0;
}

.empty-state-text-modern {
    font-size: 16px;
    color: #8898aa;
    margin: 0;
}

/* ========== DARK THEME FOR LECTURES ========== */

[data-theme="dark"] .lectures-modern-grid {
    /* No changes needed */
}

[data-theme="dark"] .lecture-modern-card {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lecture-modern-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .lecture-modern-header {
    background: linear-gradient(135deg, #16213e 0%, #1a1d2e 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lecture-type-indicator {
    background: rgba(94, 114, 228, 0.2);
    color: #8a9bff;
}

[data-theme="dark"] .lecture-type-indicator.type-lecture {
    background: rgba(45, 206, 137, 0.2);
    color: #4ade80;
}

[data-theme="dark"] .lecture-type-indicator.type-section {
    background: rgba(251, 99, 64, 0.2);
    color: #fb923c;
}

[data-theme="dark"] .lecture-modern-title {
    color: #e2e8f0;
}

[data-theme="dark"] .lecture-modern-subject {
    color: #94a3b8;
}

[data-theme="dark"] .lecture-modern-subject i {
    color: #8a9bff;
}

[data-theme="dark"] .lecture-detail-item {
    background: #16213e;
}

[data-theme="dark"] .lecture-detail-item:hover {
    background: #0f172a;
}

[data-theme="dark"] .lecture-detail-label {
    color: #94a3b8;
}

[data-theme="dark"] .lecture-detail-value {
    color: #e2e8f0;
}

[data-theme="dark"] .lecture-quick-actions {
    background: #16213e;
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lecture-quick-btn {
    background: #1a1d2e;
    color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .lecture-modern-controls {
    background: #1a1d2e;
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lecture-control-btn {
    background: #16213e;
    color: #cbd5e1;
}

[data-theme="dark"] .lecture-control-btn.lecture-btn-lock {
    color: #fb923c;
    border-color: #fb923c;
}

[data-theme="dark"] .lecture-control-btn.lecture-btn-unlock {
    color: #4ade80;
    border-color: #4ade80;
}

[data-theme="dark"] .lecture-control-btn.lecture-btn-finish {
    color: #8a9bff;
    border-color: #8a9bff;
}

[data-theme="dark"] .lecture-control-btn.lecture-btn-reopen {
    color: #38bdf8;
    border-color: #38bdf8;
}

[data-theme="dark"] .lecture-control-btn.lecture-btn-delete {
    color: #f87171;
    border-color: #f87171;
}

[data-theme="dark"] .lectures-empty-state {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .empty-state-icon-modern {
    background: linear-gradient(135deg, rgba(138, 155, 255, 0.2), rgba(130, 94, 228, 0.2));
    color: #8a9bff;
}

[data-theme="dark"] .empty-state-title-modern {
    color: #e2e8f0;
}

[data-theme="dark"] .empty-state-text-modern {
    color: #94a3b8;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1200px) {
    .lectures-modern-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .lectures-modern-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .lecture-modern-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .lecture-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lecture-modern-controls {
        grid-template-columns: 1fr;
    }
    
    .lecture-control-btn span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .lecture-modern-content {
        padding: 20px;
    }
    
    .lecture-modern-title {
        font-size: 18px;
    }
    
    .lecture-quick-actions,
    .lecture-modern-controls {
        padding: 12px 16px;
    }
}

/* ========================================
   LECTURES PAGE LAYOUT
   ======================================== */

/* Page Header */
.lectures-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 40px;
    border-radius: 20px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.lectures-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.lectures-page-title-section {
    position: relative;
    z-index: 1;
}

.lectures-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lectures-page-title i {
    font-size: 28px;
}

.lectures-page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Stats in Header */
.lectures-page-stats {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.lectures-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15);
    padding: 16px 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lectures-stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.lectures-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
}

.lectures-stat-icon.active {
    background: linear-gradient(135deg, #2dce89, #2dcecc);
}

.lectures-stat-icon.finished {
    background: linear-gradient(135deg, #8898aa, #6c757d);
}

.lectures-stat-content {
    color: #ffffff;
}

.lectures-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.lectures-stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* Main Container */
.lectures-main-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
}

/* Sidebar - Form Card */
.lectures-sidebar {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.lectures-form-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lectures-form-header {
    background: linear-gradient(135deg, #f8f9fe 0%, #ffffff 100%);
    padding: 32px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.lectures-form-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #5e72e4, #825ee4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(94, 114, 228, 0.3);
}

.lectures-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #32325d;
    margin: 0 0 8px 0;
}

.lectures-form-description {
    font-size: 14px;
    color: #8898aa;
    margin: 0;
}

/* Modern Form */
.lectures-modern-form {
    padding: 32px;
}

.form-group-modern {
    margin-bottom: 24px;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 10px;
}

.form-label-modern i {
    color: #5e72e4;
    font-size: 13px;
}

.required-star {
    color: #f5365c;
    margin-left: 4px;
}

.form-input-modern {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    color: #32325d;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-input-modern:focus {
    outline: none;
    border-color: #5e72e4;
    box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #8898aa;
    margin-top: 8px;
}

.btn-submit-modern {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2dce89, #2dcecc);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(45, 206, 137, 0.3);
    margin-top: 32px;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 206, 137, 0.4);
}

.btn-submit-modern:active {
    transform: translateY(0);
}

/* Filters Card */
.lectures-filters-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #32325d;
}

.filters-title i {
    color: #5e72e4;
}

.btn-reset-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f7fafc;
    color: #525f7f;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #5e72e4;
    color: #ffffff;
    border-color: #5e72e4;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #8898aa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label i {
    font-size: 12px;
}

.filter-select {
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    color: #32325d;
    background: #ffffff;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #5e72e4;
    box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.1);
}

/* ========== DARK THEME FOR PAGE LAYOUT ========== */

[data-theme="dark"] .lectures-page-header {
    background: linear-gradient(135deg, #4c5fd7 0%, #5e3c8f 100%);
}

[data-theme="dark"] .lectures-form-card {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lectures-form-header {
    background: linear-gradient(135deg, #16213e 0%, #1a1d2e 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lectures-form-title {
    color: #e2e8f0;
}

[data-theme="dark"] .lectures-form-description {
    color: #94a3b8;
}

[data-theme="dark"] .form-label-modern {
    color: #e2e8f0;
}

[data-theme="dark"] .form-label-modern i {
    color: #8a9bff;
}

[data-theme="dark"] .form-input-modern {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .form-input-modern:focus {
    border-color: #8a9bff;
    box-shadow: 0 0 0 4px rgba(138, 155, 255, 0.15);
}

[data-theme="dark"] .form-hint {
    color: #94a3b8;
}

[data-theme="dark"] .lectures-filters-card {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filters-title {
    color: #e2e8f0;
}

[data-theme="dark"] .filters-title i {
    color: #8a9bff;
}

[data-theme="dark"] .btn-reset-filters {
    background: #16213e;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-reset-filters:hover {
    background: #8a9bff;
    color: #ffffff;
    border-color: #8a9bff;
}

[data-theme="dark"] .filter-label {
    color: #94a3b8;
}

[data-theme="dark"] .filter-select {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .filter-select:focus {
    border-color: #8a9bff;
    box-shadow: 0 0 0 4px rgba(138, 155, 255, 0.15);
}

/* ========== RESPONSIVE DESIGN FOR PAGE LAYOUT ========== */

@media (max-width: 1400px) {
    .lectures-main-container {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 1200px) {
    .lectures-page-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .lectures-page-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .lectures-main-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .lectures-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .lectures-page-header {
        padding: 24px;
    }
    
    .lectures-page-title {
        font-size: 24px;
    }
    
    .lectures-page-stats {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .lectures-stat-item {
        width: 100%;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .lectures-form-card {
        border-radius: 16px;
    }
    
    .lectures-modern-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .lectures-page-header {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 24px;
    }
    
    .lectures-page-title {
        font-size: 20px;
    }
    
    .lectures-page-subtitle {
        font-size: 14px;
    }
    
    .lectures-stat-value {
        font-size: 24px;
    }
    
    .lectures-form-header {
        padding: 24px;
    }
    
    .lectures-form-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .lectures-form-title {
        font-size: 18px;
    }
}

/* ========================================
   MODERN MODALS REDESIGN
   ======================================== */

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-backdrop.show {
    opacity: 1;
}

/* Modal Dialog */
.modal-dialog {
    animation: modalSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Content */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: #ffffff;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 28px 32px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.modal-header .modal-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin: 0;
}

.modal-header .modal-title i {
    font-size: 26px;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.modal-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .btn-close::before,
.modal-header .btn-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
}

.modal-header .btn-close::before {
    transform: rotate(45deg);
}

.modal-header .btn-close::after {
    transform: rotate(-45deg);
}

.modal-header .btn-close:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-header .btn-close:hover::before,
.modal-header .btn-close:hover::after {
    background: #ff4444;
}

/* Modal Body */
.modal-body {
    padding: 32px;
    background: #ffffff;
}

/* Modern Form Groups in Modals */
.modal-body .mb-3 {
    margin-bottom: 24px;
}

.modal-body .form-label {
    font-size: 14px;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body .form-label i {
    color: #667eea;
    font-size: 13px;
}

.modal-body .form-label .text-danger {
    color: #f5365c;
    margin-left: 4px;
}

.modal-body .form-control,
.modal-body .form-select {
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    color: #32325d;
    background: #ffffff;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.modal-body textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.modal-body .form-text {
    font-size: 12px;
    color: #8898aa;
    margin-top: 8px;
    display: block;
}

/* Subject Selection in Modals */
.modal-body .subject-selection {
    background: #f8f9fe;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.modal-body .subject-selection label {
    font-size: 13px;
    font-weight: 600;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.modal-body .subject-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-body .subject-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.modal-body .subject-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.modal-body .subject-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: #32325d;
    font-weight: 500;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 32px;
    background: #f8f9fe;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    gap: 12px;
}

.modal-footer .btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer .btn-secondary {
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #525f7f;
}

.modal-footer .btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.modal-footer .btn-success {
    background: linear-gradient(135deg, #2dce89, #2dcecc);
    border: none;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(45, 206, 137, 0.3);
}

.modal-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 206, 137, 0.4);
}

.modal-footer .btn-danger {
    background: linear-gradient(135deg, #f5365c, #d63447);
    border: none;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(245, 54, 92, 0.3);
}

.modal-footer .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 54, 92, 0.4);
}

/* Switch/Toggle in Modals */
.modal-body .form-check-input {
    width: 48px;
    height: 24px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid #e9ecef;
    background-color: #e9ecef;
    background-image: none;
    transition: all 0.3s ease;
}

.modal-body .form-check-input:checked {
    background-color: #2dce89;
    border-color: #2dce89;
}

.modal-body .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(45, 206, 137, 0.1);
}

.modal-body .form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: #32325d;
    margin-right: 12px;
}

/* Info Box in Modals */
.modal-body .info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid #667eea;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modal-body .info-box i {
    color: #667eea;
    font-size: 20px;
    margin-top: 2px;
}

.modal-body .info-box p {
    margin: 0;
    color: #525f7f;
    font-size: 13px;
    line-height: 1.6;
}

/* Large Modal */
.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

/* Stats Modal Content */
.stats-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stats-modal-card {
    background: linear-gradient(135deg, #f8f9fe 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-modal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stats-modal-card .stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
}

.stats-modal-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #32325d;
    margin-bottom: 4px;
}

.stats-modal-card .stat-label {
    font-size: 13px;
    color: #8898aa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== DARK THEME FOR MODALS ========== */

[data-theme="dark"] .modal-content {
    background: #1a1d2e;
}

[data-theme="dark"] .modal-header {
    background: linear-gradient(135deg, #4c5fd7 0%, #5e3c8f 100%);
}

[data-theme="dark"] .modal-header .modal-title i {
    color: #ffffff;
}

[data-theme="dark"] .modal-header .btn-close::before,
[data-theme="dark"] .modal-header .btn-close::after {
    background: #ffffff;
}

[data-theme="dark"] .modal-header .btn-close:hover {
    background: rgba(255, 0, 0, 0.2);
}

[data-theme="dark"] .modal-header .btn-close:hover::before,
[data-theme="dark"] .modal-header .btn-close:hover::after {
    background: #ff4444;
}

[data-theme="dark"] .modal-body {
    background: #1a1d2e;
}

[data-theme="dark"] .modal-body .form-label {
    color: #e2e8f0;
}

[data-theme="dark"] .modal-body .form-label i {
    color: #8a9bff;
}

[data-theme="dark"] .modal-body .form-control,
[data-theme="dark"] .modal-body .form-select {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .modal-body .form-control:focus,
[data-theme="dark"] .modal-body .form-select:focus {
    border-color: #8a9bff;
    box-shadow: 0 0 0 4px rgba(138, 155, 255, 0.15);
    background: #16213e;
}

[data-theme="dark"] .modal-body .form-text {
    color: #94a3b8;
}

[data-theme="dark"] .modal-body .subject-selection {
    background: #16213e;
}

[data-theme="dark"] .modal-body .subject-selection label {
    color: #94a3b8;
}

[data-theme="dark"] .modal-body .subject-item {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-body .subject-item:hover {
    border-color: #8a9bff;
    background: rgba(138, 155, 255, 0.1);
}

[data-theme="dark"] .modal-body .subject-item label {
    color: #e2e8f0;
}

[data-theme="dark"] .modal-footer {
    background: #16213e;
    border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .modal-footer .btn-secondary {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

[data-theme="dark"] .modal-footer .btn-secondary:hover {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .modal-body .form-check-input {
    background-color: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-body .form-check-input:checked {
    background-color: #4ade80;
    border-color: #4ade80;
}

[data-theme="dark"] .modal-body .form-check-label {
    color: #e2e8f0;
}

[data-theme="dark"] .modal-body .info-box {
    background: linear-gradient(135deg, rgba(138, 155, 255, 0.15), rgba(130, 94, 228, 0.15));
    border-left-color: #8a9bff;
}

[data-theme="dark"] .modal-body .info-box i {
    color: #8a9bff;
}

[data-theme="dark"] .modal-body .info-box p {
    color: #cbd5e1;
}

[data-theme="dark"] .stats-modal-card {
    background: linear-gradient(135deg, #16213e 0%, #1a1d2e 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .stats-modal-card .stat-value {
    color: #e2e8f0;
}

[data-theme="dark"] .stats-modal-card .stat-label {
    color: #94a3b8;
}

/* ========== RESPONSIVE DESIGN FOR MODALS ========== */

@media (max-width: 768px) {
    .modal-dialog {
        margin: 16px;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-header .modal-title {
        font-size: 20px;
    }
    
    .modal-header .modal-title i {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-footer {
        padding: 16px 24px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-modal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-body .mb-3 {
        margin-bottom: 20px;
    }
}

/* ========================================
   PROFILE PAGE MODERN DESIGN
   ======================================== */

/* Profile Header */
.profile-header-modern {
    position: relative;
    margin: -32px -32px 32px -32px;
    overflow: hidden;
}

.profile-header-bg {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.profile-header-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.profile-header-content {
    position: relative;
    padding: 0 40px 32px;
    margin-top: -80px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar-modern {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    border: 6px solid var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-avatar-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.avatar-initials {
    position: relative;
    z-index: 1;
}

.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    z-index: 2;
}

.status-active {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.status-inactive {
    background: #ef4444;
}

.profile-header-info {
    flex: 1;
    color: var(--text-primary);
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 16px;
}

.profile-role i {
    font-size: 16px;
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.meta-item i {
    color: #667eea;
}

/* Profile Content */
.profile-content-modern {
    padding: 0;
}

/* Profile Cards */
.profile-card-modern {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.profile-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.profile-card-header {
    padding: 24px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.header-icon.security-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.header-icon.info-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.header-icon.subject-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.header-icon.tips-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.header-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-title p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-card-body {
    padding: 24px;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: 0;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label-modern i {
    color: #667eea;
    font-size: 14px;
}

.form-input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.form-input-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input-modern:read-only {
    background: rgba(102, 126, 234, 0.05);
    cursor: not-allowed;
}

.input-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    font-size: 14px;
    color: #d97706;
}

.security-notice i {
    font-size: 18px;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    justify-content: center;
}

.btn-save-profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-save-profile::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-save-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-save-profile:hover::before {
    width: 300px;
    height: 300px;
}

.btn-save-profile:active {
    transform: translateY(0);
}

.btn-save-profile i {
    font-size: 18px;
}

/* Status Items */
.status-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-4px);
}

.status-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.status-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Subject Info */
.subject-info-modern {
    padding: 16px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
}

.subject-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.subject-code {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.subject-code i {
    color: #8b5cf6;
}

.subject-description {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.subject-description i {
    color: #8b5cf6;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Tips Card */
.tips-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(8, 145, 178, 0.05) 100%);
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item i {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

/* Dark Mode */
[data-theme="dark"] .profile-header-bg {
    background: linear-gradient(135deg, #4c5fd7 0%, #5e3c8f 100%);
}

[data-theme="dark"] .profile-avatar-modern {
    background: linear-gradient(135deg, #4c5fd7 0%, #5e3c8f 100%);
}

[data-theme="dark"] .profile-card-modern {
    background: #1a1d2e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .profile-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-input-modern {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .form-input-modern:read-only {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .status-item {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .status-item:hover {
    background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .subject-info-modern {
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .tips-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
}

/* Responsive */
@media (max-width: 992px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .profile-header-modern {
        margin: -24px -24px 24px -24px;
    }
    
    .profile-header-content {
        padding: 0 24px 24px;
    }
    
    .profile-avatar-modern {
        width: 120px;
        height: 120px;
        font-size: 40px;
    }
    
    .profile-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .profile-header-bg {
        height: 150px;
    }
    
    .profile-avatar-modern {
        width: 100px;
        height: 100px;
        font-size: 32px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .profile-card-header {
        padding: 16px;
    }
    
    .profile-card-body {
        padding: 16px;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

