/* -----------------------------------------------------------
   PROJECT: Dev Ariful Source
   THEME: Premium Dark & Gold (Next-Gen UI)
   AUTHOR: Ariful Codes
----------------------------------------------------------- */

/* 1. ROOT VARIABLES & CONFIG
----------------------------------------------------------- */
:root {
    --color-dark: #0B1120;       /* Deep Midnight Blue */
    --color-card: #111827;       /* Card Background */
    --color-gold: #FFC107;       /* Primary Brand Color */
    --color-gold-hover: #FDB022;
    --color-text-main: #F9FAFB;
    --color-text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

/* 2. BASE RESETS & SCROLLBAR
----------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile tap */
}

html, body {
    background-color: var(--color-dark);
    color: var(--color-text-main);
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    height: 100%;
}

/* Hide Scrollbar for App Feel (Chrome/Safari/Opera) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark);
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Hide scrollbar completely for specific elements */
.hide-scroll::-webkit-scrollbar {
    display: none;
}
.hide-scroll {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 3. UTILITY CLASSES (PREMIUM UI)
----------------------------------------------------------- */

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Golden Gradient Text */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Glow Effect */
.card-glow {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.05);
    transition: all 0.3s ease;
}
.card-glow:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.1);
}

/* Input Fields Premium */
.input-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: white;
    transition: all 0.3s ease;
}
.input-box:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
    outline: none;
}

/* 4. ANIMATIONS (NEXT-GEN)
----------------------------------------------------------- */

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Slide Up */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulse Glow (For Notifications/Status) */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}
.animate-pulse-glow {
    animation: pulseGlow 2s infinite;
}

/* Float Animation (For Background Shapes) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* 5. COMPONENTS
----------------------------------------------------------- */

/* Bottom Navigation (Safe Area Fix) */
.bottom-nav {
    padding-bottom: var(--safe-area-bottom);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-gold);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notification (SweetAlert Customization) */
div:where(.swal2-container) div:where(.swal2-popup) {
    background: rgba(30, 41, 59, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px !important;
    color: #fff !important;
}
div:where(.swal2-icon).swal2-success {
    border-color: var(--color-gold) !important;
    color: var(--color-gold) !important;
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
    background-color: var(--color-gold) !important;
}

/* 6. RESPONSIVE UTILS
----------------------------------------------------------- */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Text truncate for small screens */
    .truncate-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}