/* css/style.css - NEW PREMIUM DARK THEME */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    /* Bold Red Colors */
    --emergency-red: #ff3b30;
    --dark-red: #a30000;
    --red-glow: rgba(255, 59, 48, 0.6);

    /* Backgrounds (Sleek Dark) */
    --bg-dark: #121212;
    /* Real dark */
    --card-dark: #1e1e1e;
    /* Slightly lighter dark for elements */

    /* Text */
    --text-main: #ffffff;
    --text-muted: #b0b0b0;

    /* UI Elements */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Mobil touch glow hata diya */
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Thoda bold font */
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    height: 100vh;
}

/* ========================================= */
/* 📱 GLOBAL BOTTOM NAVIGATION (Mobile First) */
/* ========================================= */

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    z-index: 9999;
    /* Sabse upar rahega */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-item {
    text-decoration: none;
    color: #94a3b8;
    /* Slate color for inactive */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Active State Styling */
.nav-item.active {
    color: #2563eb;
    /* Primary Blue */
    transform: translateY(-5px);
}

.nav-item.active i {
    text-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Hover Effect (For Desktop) */
@media (min-width: 768px) {
    .nav-item:hover {
        color: #2563eb;
    }
}

/* ========================================= */
/* 💻 DESKTOP ADJUSTMENT (Inside Card)      */
/* ========================================= */

@media (min-width: 1024px) {
    .bottom-nav {
        position: absolute;
        /* Card ke andar lock rahega */
        bottom: 30px;
        width: 450px;
    }
}

/* Notification Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 280px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 5px solid #3b82f6;
    /* Default Blue */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
    animation: slideIn 0.4s ease-out forwards;
}

/* Danger Alert (Red Zone ke liye) */
.toast.danger {
    border-left-color: #ef4444;
}

/* Success Alert */
.toast.success {
    border-left-color: #10b981;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    color: #1e293b;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    border-left: 6px solid #3b82f6;
    animation: toastSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast.danger {
    border-left-color: #ef4444;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast i {
    font-size: 1.2rem;
}

.toast.danger i {
    color: #ef4444;
}

.toast.success i {
    color: #10b981;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s ease-in;
}

#toast-container {
    position: fixed;
    bottom: 30px;
    /* Neeche se aane wala look mobile me zyada achha lagta hai */
    right: 20px;
    z-index: 99999;
}

.toast {
    background: rgba(255, 255, 255, 0.15);
    /* Glass effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1e293b;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 1.4rem;
}

/* Colors based on type */
.toast.success .toast-icon {
    color: #10b981;
}

.toast.danger .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.progress-bar::after {
    content: '';
    position: absolute;
    height: 100%;
    background: #3b82f6;
    /* Default color */
    width: 100%;
    animation: progress 4s linear forwards;
}

.toast.success .progress-bar::after {
    background: #10b981;
}

.toast.danger .progress-bar::after {
    background: #ef4444;
}

@keyframes slideUp {
    from {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.hide {
    animation: slideOut 0.5s ease forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

#toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    /* Ekdum beech mein aayega upar se */
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.pill-toast {
    display: flex;
    align-items: center;
    background: #1e293b;
    /* Dark theme for contrast */
    color: white;
    padding: 8px;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    max-width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: expandPill 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    pointer-events: auto;
}

.pill-icon {
    width: 35px;
    height: 35px;
    background: #3b82f6;
    /* Default Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pill-text {
    padding: 0 20px 0 10px;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeInText 0.3s 0.4s forwards;
}

/* Specific Colors for Type */
.pill-toast.danger .pill-icon {
    background: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.pill-toast.success .pill-icon {
    background: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.pill-toast.warning .pill-icon {
    background: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* Animations */
@keyframes expandPill {
    0% {
        width: 45px;
        opacity: 0;
        transform: translateY(-50px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        width: 100%;
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

.pill-toast.out {
    animation: shrinkPill 0.5s ease forwards;
}

@keyframes shrinkPill {
    to {
        transform: scale(0.5);
        opacity: 0;
        filter: blur(10px);
    }
}

/* 📱 SIRF MOBILE VIEW KE LIYE (480px se niche) */
@media (max-width: 480px) {
    #toast-container {
        position: fixed;
        top: 15px;
        /* Mobile par thoda upar */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        z-index: 1000000;
        pointer-events: none;
    }

    .pill-toast {
        display: flex;
        align-items: center;
        background: #1e293b;
        /* Dark theme */
        color: white;
        padding: 6px 12px;
        border-radius: 50px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        width: fit-content;
        max-width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        animation: mobilePillDrop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        pointer-events: auto;
    }

    .pill-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        margin-right: 10px;
        /* Icon pehle dikhega */
    }

    .pill-text {
        font-size: 0.8rem;
        font-weight: 500;
        white-space: normal;
        line-height: 1.3;
    }

    /* Colors for Mobile */
    .pill-toast.danger .pill-icon {
        background: #ef4444;
    }

    .pill-toast.success .pill-icon {
        background: #10b981;
    }

    .pill-toast.warning .pill-icon {
        background: #f59e0b;
    }

    /* Mobile specific animations */
    @keyframes mobilePillDrop {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .pill-toast.out {
        animation: mobilePillFlyUp 0.4s ease-in forwards;
    }

    @keyframes mobilePillFlyUp {
        to {
            transform: translateY(-100px);
            opacity: 0;
        }
    }
}

/* 💻 DESKTOP KE LIYE (Agar desktop pe pehle wala style chahiye toh ye block kaam aayega) */
@media (min-width: 481px) {
    /* Yahan apna purana desktop wala toast CSS rehne do */
}