/* style.css - Premium Theme */

/* 1. Premium Font: Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;700&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.bn-font { font-family: 'Noto Sans Bengali', sans-serif; }

/* Premium Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    background-color: #0f172a; 
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1471&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    position: relative;
    z-index: 1;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

/* Admin Tabs */
.admin-tab-content {
    display: none;
    animation: slideUp 0.4s ease-out forwards;
}
.admin-tab-content.active { display: block; }

.tab-btn {
    position: relative;
    color: #64748b;
    transition: all 0.3s ease;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #4f46e5;
    transition: width 0.3s ease;
    border-radius: 3px;
}
.tab-btn.active { color: #4f46e5; }
.tab-btn.active::after { width: 100%; }

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: translateY(-5px); }

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open { max-height: 500px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- LOADING ANIMATION --- */
#loading-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* High opacity white background */
    backdrop-filter: blur(8px);
    z-index: 9999; /* On top of everything */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.loader-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: pulse-logo 1.5s infinite ease-in-out;
    filter: drop-shadow(0 10px 15px rgba(79, 70, 229, 0.3));
}

.loader-text {
    margin-top: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fade-text 1.5s infinite ease-in-out;
}

.loader-subtext {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

@keyframes pulse-logo {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fade-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}