/* Quran Academy - Premium Islamic Design System */

/* CSS Variables */
:root {
    /* Colors - Islamic Palette */
    --primary: #1B4332;
    --primary-light: #2D5A47;
    --primary-dark: #0F2419;
    --secondary: #D4AF37;
    --secondary-light: #E6C757;
    --secondary-dark: #B8941F;
    --accent: #8B5A3C;
    --accent-light: #A67C52;
    --accent-dark: #6B4423;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Status Colors */
    --success: #2E7D32;
    --warning: #F57C00;
    --error: #C62828;
    --info: #1976D2;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Noto Naskh Arabic', 'Amiri', serif;
    --font-urdu: 'Jameel Noori Nastaleeq', 'Noto Naskh Arabic', serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --bottom-nav-height: 70px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.arabic {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
    font-weight: 500;
}

.urdu {
    font-family: var(--font-urdu);
    direction: rtl;
    text-align: right;
    font-weight: 400;
}

/* Loading Screen */
.premium-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FDF6E3 0%, #F5E6D3 50%, #EDD5B7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.premium-loading-screen.fade-out {
    opacity: 0;
}

.premium-loading-content {
    text-align: center;
    color: var(--primary);
}

.premium-islamic-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2.5rem;
}

.premium-crescent {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    border-right-color: transparent;
    border-top-color: transparent;
    animation: spin 1.5s linear infinite;
    position: relative;
}

.premium-crescent::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    border-left-color: transparent;
    border-bottom-color: transparent;
    animation: spin 2s linear infinite reverse;
}

.premium-star {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.premium-loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}

.premium-loading-subtitle {
    font-size: 1rem;
    color: var(--accent);
    opacity: 0.8;
    font-weight: 500;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-2px); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Header */
.premium-top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #122620;
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.premium-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-lg);
}

.premium-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.premium-logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.premium-logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-image {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}

.premium-logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF8E1;
    margin: 0;
}

.premium-logo-text .arabic {
    font-size: 0.875rem;
    color: #FFF8E1;
    opacity: 0.8;
    margin-top: -2px;
}

.premium-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* User Menu */
.premium-user-menu {
    position: relative;
}

.premium-user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
    z-index: 1001;
}

.premium-user-btn:hover {
    background: var(--gray-200);
}

.premium-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
}

.premium-user-dropdown {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: 1001;
}

.premium-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.premium-user-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition-fast);
}

.premium-user-dropdown a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-sm) 0;
}

/* Header Actions */
.premium-notification-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFF8E1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.premium-notification-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.premium-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.premium-profile-btn {
    display: flex;
    align-items: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.premium-profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.premium-profile-avatar {
    width: 32px;
    height: 32px;
    background: #1B4332;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Mobile Menu Button */
.premium-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.premium-mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #FFF8E1;
    transition: var(--transition-fast);
}

.premium-mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.premium-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.premium-mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* App Container */
.premium-app-container {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.premium-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: #122620;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    z-index: 999;
}

.premium-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.premium-sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.premium-sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.premium-sidebar-logo .premium-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.premium-sidebar-logo .premium-logo-text h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #FFF8E1;
    margin: 0;
}

.premium-sidebar-logo .premium-logo-text .arabic {
    font-size: 0.75rem;
    color: #FFF8E1;
    opacity: 0.8;
}



.premium-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.premium-sidebar-nav {
    flex: 1;
    padding: var(--space-lg) 0;
}

.premium-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: #FFF8E1;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    margin: 0 var(--space-md);
    border-radius: var(--radius-md);
}

.premium-nav-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.premium-nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.premium-nav-item.active .premium-nav-indicator {
    position: absolute;
    right: -var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--secondary);
    border-radius: 2px;
}

.premium-nav-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-nav-label {
    font-weight: 500;
    white-space: nowrap;
}

.premium-sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.premium-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.premium-user-info .premium-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.premium-user-details {
    flex: 1;
}

.premium-user-name {
    display: block;
    font-weight: 600;
    color: #FFF8E1;
    font-size: 0.875rem;
}

.premium-user-role {
    display: block;
    font-size: 0.75rem;
    color: #FFF8E1;
    opacity: 0.8;
    text-transform: capitalize;
}

.premium-sidebar-actions {
    display: flex;
    gap: var(--space-sm);
}

.premium-action-btn {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition-fast);
}

.premium-action-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.premium-logout-btn:hover {
    background: var(--error);
    color: var(--white);
}

/* Main Content */
.premium-main-content {
    margin-left: var(--sidebar-width);
    padding: var(--space-xl);
    transition: var(--transition-normal);
}

.premium-main-content.student-dashboard {
    padding: 0;
}

.premium-sidebar.collapsed + .premium-main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Bottom Navigation (Mobile) */
.premium-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #122620;
    border-top: 1px solid var(--gray-200);
    display: none;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.premium-bottom-nav-content {
    display: flex;
    height: 100%;
}

.premium-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: #FFF8E1;
    opacity: 0.7;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.premium-bottom-nav-item.active {
    color: #FFF8E1;
    opacity: 1;
}

.premium-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 2px 2px;
}

.premium-bottom-nav-item .premium-nav-icon {
    font-size: 1.25rem;
}

.premium-bottom-nav-item .premium-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.premium-more-btn {
    background: none;
    border: none;
    cursor: pointer;
}

/* More Menu Modal */
.premium-more-menu-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    transition: var(--transition-normal);
    z-index: 1001;
    max-height: 60vh;
}

.premium-more-menu-modal.show {
    transform: translateY(0);
}

.premium-more-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.premium-more-menu-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.premium-close-btn {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.premium-more-menu-items {
    padding: var(--space-lg);
    max-height: calc(60vh - 80px);
    overflow-y: auto;
}

.premium-more-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.premium-more-menu-item:hover {
    background: var(--gray-50);
}

.premium-more-menu-item.logout {
    color: var(--error);
}

.premium-more-menu-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-md) 0;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.card-body {
    padding: var(--space-xl);
}

.student-dashboard .card,
.student-dashboard .card-header,
.student-dashboard .card-title,
.student-dashboard .card-body {
    all: unset;
}

/* Premium Buttons */
.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.premium-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.premium-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.premium-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.premium-btn-secondary:hover {
    background: var(--gray-200);
}

.premium-btn-success {
    background: linear-gradient(135deg, var(--success), #4CAF50);
    color: var(--white);
}

.premium-btn-warning {
    background: linear-gradient(135deg, var(--warning), #FF9800);
    color: var(--white);
}

.premium-btn-danger {
    background: linear-gradient(135deg, var(--error), #F44336);
    color: var(--white);
}

.premium-btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
}

.premium-btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    font-family: inherit;
    font-size: 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table th,
.table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.stats-label {
    font-size: 0.875rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.student-dashboard .stats-card,
.student-dashboard .stats-number,
.student-dashboard .stats-label {
    all: unset;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.student-dashboard .grid {
    all: unset;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary { background: var(--primary); color: var(--white); }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }
.badge-success { background: var(--success); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--white); }
.badge-danger { background: var(--error); color: var(--white); }
.badge-info { background: var(--info); color: var(--white); }

/* Progress Bar */
.progress {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    transition: width 0.6s ease;
}

/* Alerts */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.alert-success {
    background: #E8F5E8;
    color: var(--success);
    border-color: var(--success);
}

.alert-warning {
    background: #FFF3E0;
    color: var(--warning);
    border-color: var(--warning);
}

.alert-error {
    background: #FFEBEE;
    color: var(--error);
    border-color: var(--error);
}

.alert-info {
    background: #E3F2FD;
    color: var(--info);
    border-color: var(--info);
}

/* Toast Notifications */
.premium-toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-lg));
    right: var(--space-lg);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.premium-toast {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    min-width: 300px;
    border-left: 4px solid;
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.premium-toast.success { border-color: var(--success); }
.premium-toast.warning { border-color: var(--warning); }
.premium-toast.error { border-color: var(--error); }
.premium-toast.info { border-color: var(--info); }

@keyframes slideIn {
    to { transform: translateX(0); }
}

/* Modal */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.premium-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.premium-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.premium-modal-overlay.show .premium-modal-content {
    transform: scale(1);
}

.premium-modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
}

.premium-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.premium-modal-body {
    padding: var(--space-xl);
}

.premium-modal-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

/* Responsive Design */
@media (min-width: 1025px) {
    .premium-sidebar {
        display: block;
        transform: translateX(0);
    }
    
    .premium-bottom-nav {
        display: none;
    }
    
    .premium-main-content {
        margin-left: var(--sidebar-width);
    }
    
    .premium-mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 1024px) {
    .premium-sidebar {
        transform: translateX(-100%);
    }
    
    .premium-sidebar.show {
        transform: translateX(0);
    }
    
    .premium-main-content {
        margin-left: 0;
    }
    
    .premium-bottom-nav {
        display: block;
    }
    
    .premium-app-container {
        padding-bottom: var(--bottom-nav-height);
    }
    
    .premium-mobile-menu-btn {
        display: flex;
    }
    
    .premium-mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-fast);
    }
    
    .premium-mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .premium-main-content {
        padding: var(--space-lg);
        padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
        margin-left: 0;
    }
    
    .premium-main-content.student-dashboard {
        padding: 0;
        padding-bottom: var(--bottom-nav-height);
    }
    
    .premium-header-content {
        padding: 0 var(--space-md);
    }
    
    .premium-logo-text h1 {
        font-size: 1.25rem;
    }
    
    .card-header {
        padding: var(--space-lg);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-body {
        padding: var(--space-lg);
    }
    
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .premium-toast-container {
        right: var(--space-md);
        left: var(--space-md);
    }
    
    .premium-toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .premium-header-actions {
        gap: var(--space-sm);
    }
    
    .premium-notification-btn,
    .premium-profile-btn {
        width: 36px;
        height: 36px;
    }
    
    .premium-profile-avatar {
        width: 28px;
        height: 28px;
    }
    
    .premium-logo-text h1 {
        font-size: 1rem;
    }
    
    .premium-logo-text .arabic {
        font-size: 0.75rem;
    }
    
    .premium-main-content {
        padding: var(--space-md);
        padding-bottom: calc(var(--bottom-nav-height) + var(--space-md));
    }
    
    .premium-main-content.student-dashboard {
        padding: 0;
        padding-bottom: var(--bottom-nav-height);
    }
    
    .card-header,
    .card-body {
        padding: var(--space-md);
    }
    
    .premium-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.75rem;
    }
    
    .stats-number {
        font-size: 1.75rem;
    }
}





/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.student-dashboard .container {
    max-width: none;
    padding: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Student Dashboard Styles */
.student-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.student-welcome-card {
    background: linear-gradient(135deg, #1B4332 0%, #2D5A47 50%, #0F2419 100%);
    color: white;
    margin-bottom: 2rem;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.3), 0 0 30px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.student-welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.9), transparent);
}

.student-welcome-content {
    padding: 2.5rem 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.student-welcome-text {
    flex: 1;
}

.student-welcome-title {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.student-id-badge {
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.student-id-text {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-welcome-subtitle {
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
}

.student-motivation-badge {
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.student-welcome-image {
    text-align: center;
    flex-shrink: 0;
}

.student-quran-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    border: 3px solid rgba(212, 175, 55, 0.4);
}

.student-date-text {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

.student-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.student-stat-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.student-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.student-stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.student-stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.student-stat-courses {
    background: linear-gradient(135deg, #8B5A3C, #A67C52);
    box-shadow: 0 15px 40px rgba(139, 90, 60, 0.4);
}

.student-stat-topics {
    background: linear-gradient(135deg, #1B4332, #2D5A47);
    box-shadow: 0 15px 40px rgba(27, 67, 50, 0.4);
}

.student-stat-points {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    color: #2C2C2C;
}

.student-stat-games {
    background: linear-gradient(135deg, #6B4423, #8B5A3C);
    box-shadow: 0 15px 40px rgba(107, 68, 35, 0.4);
}

.student-stat-calendar {
    background: linear-gradient(135deg, #1B4332, #2D5A47);
    box-shadow: 0 15px 40px rgba(27, 67, 50, 0.4);
    cursor: pointer;
}

.student-stat-prayer {
    background: linear-gradient(135deg, #8B5A3C, #A67C52);
    box-shadow: 0 15px 40px rgba(139, 90, 60, 0.4);
    cursor: pointer;
}

.student-stat-hadith {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    color: #2C2C2C;
    cursor: pointer;
}

.student-stat-verse {
    background: linear-gradient(135deg, #6B4423, #8B5A3C);
    box-shadow: 0 15px 40px rgba(107, 68, 35, 0.4);
    cursor: pointer;
}

.student-stat-calendar:hover,
.student-stat-prayer:hover,
.student-stat-hadith:hover,
.student-stat-verse:hover {
    transform: translateY(-8px);
}

/* Islamic Popup */
.student-islamic-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.student-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.student-popup-content {
    position: relative;
    background: linear-gradient(135deg, #1B4332, #2D5A47);
    color: white;
    border-radius: 24px;
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.3s ease;
    z-index: 2001;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.student-popup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-popup-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Dual Calendar Layout */
.dual-calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.calendar-section h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: #D4AF37;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Islamic Calendar Styles */
.islamic-calendar {
    text-align: center;
}

.islamic-current-date {
    background: rgba(212, 175, 55, 0.2);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.islamic-date-large {
    font-size: 3rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

.islamic-month-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.islamic-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
}

.islamic-info p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.islamic-info strong {
    color: #D4AF37;
}

@media (max-width: 768px) {
    .dual-calendar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .islamic-date-large {
        font-size: 2.5rem;
    }
}


.verse-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.verse-arabic {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 2;
    margin-bottom: 2rem;
    direction: rtl;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid #D4AF37;
}

.verse-translation {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    opacity: 0.95;
}

.verse-reference {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
    color: #D4AF37;
}

.student-actions-card {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.student-actions-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 1rem;
}

.student-actions-title {
    color: #2C2C2C;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-actions-body {
    padding: 2rem 1rem;
}

.student-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.student-action-btn {
    background: #FFF8E1;
    color: #2C3E50;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.student-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #FFFFFF;
}

.student-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.student-courses-card,
.student-activities-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.student-courses-card {
    background: linear-gradient(135deg, #1B4332, #2D5A47);
    color: white;
}

.student-activities-card {
    background: linear-gradient(135deg, #8B5A3C, #A67C52);
    color: white;
}

.student-card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.student-card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-card-body {
    padding: 2rem 1rem;
}

.student-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.student-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.student-empty-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.student-course-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-course-item:last-child {
    border-bottom: none;
}

.student-course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.student-course-title {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.student-progress-badge {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.student-course-teacher {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.student-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.student-progress-fill {
    background: linear-gradient(90deg, #D4AF37, #F4D03F);
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.student-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-course-stats {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.student-course-btn {
    background: #FFF8E1;
    color: #2C3E50;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.student-course-btn:hover {
    background: #FFFFFF;
    transform: translateY(-1px);
}

.student-activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-activity-item:last-child {
    border-bottom: none;
}

.student-activity-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.2rem;
}

.student-activity-content {
    flex: 1;
}

.student-activity-title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.student-activity-type {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.student-activity-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.student-quote-card {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #2C2C2C;
    margin-top: 2rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.student-quote-body {
    text-align: center;
    padding: 2.5rem 1rem;
}

.student-quote-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.student-quote-arabic {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
    direction: rtl;
    text-align: center;
}

.student-quote-translation {
    margin: 0;
    font-style: italic;
    opacity: 0.8;
    font-size: 1rem;
}

/* Live Class Strip */
.student-live-class-strip {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3); }
    50% { box-shadow: 0 8px 35px rgba(231, 76, 60, 0.5); }
}

.live-class-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.live-class-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.live-class-info {
    flex: 1;
}

.live-class-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.live-class-details {
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.live-class-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.live-class-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.live-class-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .student-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .student-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .student-dashboard-container {
        padding: 0;
    }
    
    .live-class-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .live-class-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .live-class-title {
        font-size: 1.1rem;
    }
    
    .live-class-details {
        font-size: 0.9rem;
    }
    
    .student-welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 0.5rem;
    }
    
    .student-welcome-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .student-welcome-subtitle {
        font-size: 0.95rem;
    }
    
    .student-quran-image {
        width: 80px;
        height: 80px;
    }
    
    .student-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .student-stat-card {
        padding: 1.25rem 1rem;
    }
    
    .student-stat-number {
        font-size: 2rem;
    }
    
    .student-stat-label {
        font-size: 0.85rem;
    }
    
    .student-actions-header,
    .student-actions-body,
    .student-card-header,
    .student-card-body {
        padding: 1.25rem 0.5rem;
    }
    
    .student-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .student-action-btn {
        padding: 0.875rem 0.5rem;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .student-action-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .student-dashboard-container {
        padding: 0;
    }
    
    .live-class-content {
        padding: 1rem;
    }
    
    .live-class-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .student-welcome-content {
        padding: 1.25rem 0.5rem;
    }
    
    .student-welcome-title {
        font-size: 1.2rem;
    }
    
    .student-welcome-subtitle {
        font-size: 0.9rem;
    }
    
    .student-id-badge {
        padding: 0.5rem 1rem;
    }
    
    .student-motivation-badge {
        padding: 0.5rem 1rem;
    }
    
    .student-stat-card {
        padding: 1rem 0.75rem;
    }
    
    .student-stat-number {
        font-size: 1.75rem;
    }
    
    .student-stat-label {
        font-size: 0.8rem;
    }
    
    .student-actions-header,
    .student-actions-body,
    .student-card-header,
    .student-card-body {
        padding: 1rem 0.5rem;
    }
    
    .student-action-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .student-quote-body {
        padding: 1.5rem 0.5rem;
    }
    
    .student-quote-arabic {
        font-size: 1.1rem;
    }
}

/* Islamic Cards Section */
.student-islamic-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.student-islamic-card {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #2C2C2C;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.student-islamic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4);
}

.student-islamic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2C2C2C;
}

.student-islamic-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.student-islamic-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Islamic Content Display */
.student-islamic-content {
    background: linear-gradient(135deg, #1B4332, #2D5A47);
    color: white;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.3);
    overflow: hidden;
}

.student-islamic-content-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-islamic-content-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-close-btn {
    background: rgba(212, 175, 55, 0.2);
    border: none;
    color: #D4AF37;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.student-close-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.1);
}

.student-islamic-content-body {
    padding: 2rem;
}

/* Calendar Styles */
.calendar-container {
    max-width: 500px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-nav {
    background: rgba(212, 175, 55, 0.2);
    border: none;
    color: #D4AF37;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.1);
}

.calendar-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.calendar-day, .calendar-header-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-header-day {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.calendar-day:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
}

.calendar-day.today {
    background: #D4AF37;
    color: #2C2C2C;
    font-weight: 700;
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* Prayer Times Styles */
.prayer-times {
    max-width: 400px;
    margin: 0 auto;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prayer-item:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.prayer-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.prayer-time {
    font-weight: 700;
    font-size: 1.2rem;
    color: #D4AF37;
}

.next-prayer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.next-prayer-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.next-prayer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 0.25rem;
}

.next-prayer-time {
    font-size: 1rem;
    opacity: 0.9;
}

/* Hadith Styles */
.hadith-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hadith-arabic {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 2rem;
    direction: rtl;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.hadith-translation {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hadith-reference {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
    color: #D4AF37;
}

@media (max-width: 1024px) {
    .student-islamic-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .student-islamic-card {
        padding: 1.5rem 1rem;
    }
    
    .student-islamic-icon {
        font-size: 2.5rem;
    }
    
    .student-islamic-title {
        font-size: 1rem;
    }
    
    .student-islamic-subtitle {
        font-size: 0.8rem;
    }
    
    .student-islamic-content-body {
        padding: 1.5rem;
    }
    
    .hadith-arabic {
        font-size: 1.2rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .student-islamic-cards {
        grid-template-columns: 1fr;
    }
    
    .student-islamic-card {
        padding: 1.25rem 1rem;
    }
    
    .student-islamic-content-body {
        padding: 1rem;
    }
}


.student-islamic-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Calendar Styles */
.student-calendar-card {
    background: linear-gradient(135deg, #1B4332, #2D5A47);
    color: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.3);
}

.student-calendar-container {
    padding: 0;
}

.student-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.student-calendar-nav {
    background: rgba(212, 175, 55, 0.2);
    border: none;
    color: #D4AF37;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.student-calendar-nav:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.1);
}

.student-calendar-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.student-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.student-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-calendar-day:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
}

.student-calendar-day.today {
    background: #D4AF37;
    color: #2C2C2C;
    font-weight: 700;
}

.student-calendar-day.other-month {
    opacity: 0.3;
}

.student-calendar-header-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Namaz Time Styles */
.student-namaz-card {
    background: linear-gradient(135deg, #8B5A3C, #A67C52);
    color: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 90, 60, 0.3);
}

.student-namaz-list {
    margin-bottom: 1.5rem;
}

.student-namaz-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-namaz-item:last-child {
    border-bottom: none;
}

.student-namaz-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.student-namaz-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: #D4AF37;
}

.student-next-prayer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.student-next-prayer-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.student-next-prayer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #D4AF37;
}

.student-next-prayer-time {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hadith Styles */
.student-hadith-card {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #2C2C2C;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

.student-hadith-content {
    text-align: center;
}

.student-hadith-arabic {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    direction: rtl;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.student-hadith-translation {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.student-hadith-reference {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}


@media (max-width: 1024px) {
    .student-islamic-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .student-islamic-features {
        gap: 1rem;
    }
    
    .student-calendar-header {
        padding: 0.75rem;
    }
    
    .student-calendar-title {
        font-size: 1rem;
    }
    
    .student-calendar-day {
        font-size: 0.8rem;
    }
    
    .student-namaz-item {
        padding: 0.75rem 0;
    }
    
    .student-namaz-name {
        font-size: 0.9rem;
    }
    
    .student-namaz-time {
        font-size: 1rem;
    }
    
    .student-hadith-arabic {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
    
    .student-hadith-translation {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .student-calendar-nav {
        width: 35px;
        height: 35px;
    }
    
    .student-calendar-title {
        font-size: 0.9rem;
    }
    
    .student-calendar-day {
        font-size: 0.75rem;
    }
    
    .student-namaz-name {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .student-namaz-time {
        font-size: 0.9rem;
    }
    
    .student-next-prayer {
        padding: 0.75rem;
    }
    
    .student-hadith-arabic {
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .student-hadith-translation {
        font-size: 0.85rem;
    }
}

.student-popup-body .loading-prayer {
    text-align: center;
    padding: 40px 20px;
    color: #D4AF37;
    font-style: italic;
    font-size: 1.1rem;
}

.student-popup-body .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.student-popup-body .location-info {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Enhanced Calendar Styles */
.calendar-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

.calendar-info i {
    margin-right: 0.5rem;
    color: #D4AF37;
}

.dual-calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .dual-calendar {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .calendar-section h4 {
        font-size: 0.9rem;
    }
    
    .calendar-title {
        font-size: 0.9rem;
    }
    
    .calendar-nav {
        width: 30px;
        height: 30px;
    }
}

.calendar-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-section h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: #D4AF37;
    font-size: 1.1rem;
    font-weight: 600;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}