﻿
:root {
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --primary-accent: #60a5fa;
    --sidebar-bg: #1e293b;
}

body {
    overflow-x: hidden;
    background-color: #0f172a;
    font-family: 'Montserrat', sans-serif;
}

/* From Uiverse.io by ShaikhWahid99 */
.liquid-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically */
    gap: 5px;
    padding: 20px;
    font-family: system-ui, sans-serif;
    /* --- YE LINES ADD KAREIN --- */
    position: fixed; /* Screen ke upar fix karne ke liye */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a; /* Same as your body background */
    z-index: 9999; /* Sabse upar dikhane ke liye */
}

.loader-track {
    position: relative;
    width: 180px;
    height: 32px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(255, 255, 255, 0.1);
}

.liquid-fill {
    position: absolute;
    top: 2px;
    left: 2px;
    height: calc(100% - 4px);
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899, #f59e0b);
    border-radius: 14px;
    animation: fillProgress 4s ease-out infinite, colorShift 3s linear infinite;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: textGlow 1s ease-in-out infinite;
}

.dot {
    margin-left: 3px;
    animation: blink 1.5s infinite;
}

    .dot:nth-of-type(1) {
        animation-delay: 0s;
    }

    .dot:nth-of-type(2) {
        animation-delay: 0.3s;
    }

    .dot:nth-of-type(3) {
        animation-delay: 0.6s;
    }

@keyframes fillProgress {
    0% {
        width: 4px;
    }

    25% {
        width: 25%;
    }

    50% {
        width: 50%;
    }

    75% {
        width: 75%;
    }

    100% {
        width: calc(100% - 4px);
    }
}

@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }

    33% {
        filter: hue-rotate(120deg) brightness(1.1);
    }

    66% {
        filter: hue-rotate(240deg) brightness(0.9);
    }

    100% {
        filter: hue-rotate(360deg) brightness(1);
    }
}

@keyframes textGlow {
    0%,
    100% {
        opacity: 0.7;
        text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
    }
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}


/* --- LOGO STYLING --- */
.company-branding {
    padding: 1.5rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    background: linear-gradient(135deg, #fff 30%, var(--primary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.company-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- SIDEBAR STYLING --- */
#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: calc(-1 * var(--sidebar-width));
    top: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    background: var(--sidebar-bg) !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    /* --- SCROLLBAR SETTINGS --- */
    overflow-y: auto;
    overflow-x: hidden; /* Side mein scroll na aaye */
    /* Sidebar ke liye special scrollbar styling */
    #sidebar::-webkit-scrollbar {
        width: 5px; /* Patla scrollbar */
    }

    #sidebar::-webkit-scrollbar-track {
        background: rgba(30, 41, 59, 0.5); /* Sidebar bg se match karta hua track */
    }

    #sidebar::-webkit-scrollbar-thumb {
        background: var(--primary-accent); /* Blue accent color */
        border-radius: 10px;
    }

        #sidebar::-webkit-scrollbar-thumb:hover {
            background: #3b82f6; /* Hover par thoda dark blue */
        }
}

    #sidebar.show {
        left: 0;
    }

.nav-link {
    transition: all 0.2s;
    border-radius: 8px !important;
    margin: 2px 0;
    color: #cbd5e1 !important;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
}

    .nav-link:hover {
        background: rgba(255,255,255,0.05);
        color: #fff !important;
        transform: translateX(5px);
    }

.active-sidebar {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 100%);
    border-left: 4px solid var(--primary-accent);
    color: var(--primary-accent) !important;
    font-weight: 600;
}

/* --- SIDEBAR FOOTER --- */
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(15, 23, 42, 0.4);
}

.sidebar-bottom-actions {
    padding: 0.75rem;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bottom-icon {
    color: #64748b;
    font-size: 1rem;
    transition: all 0.2s;
}

    .bottom-icon:hover {
        color: var(--primary-accent);
    }

/* --- USER PROFILE SECTION (FIXED) --- */
.user-profile-box {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-box {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.user-info-text {
    flex-grow: 1;
    overflow: hidden;
    line-height: 1.2;
}

.logout-btn-sidebar {
    color: #ef4444;
    font-size: 1.2rem;
    transition: transform 0.2s;
    padding: 5px;
    display: flex;
    align-items: center;
}

    .logout-btn-sidebar:hover {
        transform: scale(1.1);
        color: #f87171;
    }

/* --- MAIN CONTENT --- */
#mainContent {
    margin-left: 0;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media(min - width: 992px) {
    #mainContent.sidebar-open {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
}

.topbar {
    height: var(--topbar-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@@media(min-width: 992px) {
    #sidebar button {
        display: block !important;
    }
}

.footer-custom {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
    text-align: center;
}

/* Company Text */
.footer-company {
    color: #94a3b8;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

    .footer-company span {
        color: #e2e8f0;
        font-weight: 600;
    }

/* Developer Line */
.footer-dev {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #64748b;
}

/* Name Glow */
.dev-name {
    font-weight: 700;
    margin-left: 4px;
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ❤️ Heart Animation */
.heart {
    display: inline-block;
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
    margin: 0 2px;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }
}


/* ---------------- PREMIUM SIDEBAR EFFECTS ---------------- */

.sidebar-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

/* GRADIENT GLOW */

.sidebar-gradient {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,#60a5fa55,transparent 70%);
    top: 30%;
    left: 20%;
    animation: gradientMove 12s infinite alternate;
    filter: blur(80px);
}

@keyframes gradientMove {
    0% {
        transform: translate(-20%,-20%)
    }

    100% {
        transform: translate(20%,20%)
    }
}

/* FLOATING BUBBLES */

.sidebar-bubbles span {
    position: absolute;
    bottom: -120px;
    background: rgba(96,165,250,0.18);
    border-radius: 50%;
    animation: bubbleUp linear infinite;
}

    /* random sizes */

    .sidebar-bubbles span:nth-child(1) {
        left: 10%;
        width: 25px;
        height: 25px;
        animation-duration: 15s;
    }

    .sidebar-bubbles span:nth-child(2) {
        left: 25%;
        width: 35px;
        height: 35px;
        animation-duration: 18s;
    }

    .sidebar-bubbles span:nth-child(3) {
        left: 40%;
        width: 20px;
        height: 20px;
        animation-duration: 12s;
    }

    .sidebar-bubbles span:nth-child(4) {
        left: 55%;
        width: 45px;
        height: 45px;
        animation-duration: 20s;
    }

    .sidebar-bubbles span:nth-child(5) {
        left: 70%;
        width: 28px;
        height: 28px;
        animation-duration: 16s;
    }

    .sidebar-bubbles span:nth-child(6) {
        left: 85%;
        width: 38px;
        height: 38px;
        animation-duration: 22s;
    }

    .sidebar-bubbles span:nth-child(7) {
        left: 60%;
        width: 22px;
        height: 22px;
        animation-duration: 14s;
    }

@keyframes bubbleUp {
    0% {
        transform: translateY(0) scale(.8);
        opacity: .6;
    }

    50% {
        opacity: .3;
    }

    100% {
        transform: translateY(-120vh) scale(1.3);
        opacity: 0;
    }
}

/* SIDEBAR CONTENT ABOVE EFFECTS */
#sidebar {
    position: fixed;
    overflow: hidden;
}

/* HOVER GLOW EFFECT */

.nav-link {
    position: relative;
    overflow: hidden;
}

    .nav-link:before {
        content: "";
        position: absolute;
        width: 0%;
        height: 100%;
        top: 0;
        left: 0;
        background: linear-gradient(90deg,#60a5fa22,transparent);
        transition: .4s;
    }

    .nav-link:hover:before {
        width: 100%;
    }

/* GLASS USER PROFILE */

.user-profile-box {
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

/* ICON HOVER ANIMATION */

.bottom-icon {
    transition: .3s;
}

    .bottom-icon:hover {
        transform: translateY(-3px) scale(1.2);
        color: #60a5fa;
    }

/* CURSOR GLOW */



.toast {
    border-radius: 12px !important;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.toast-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Notification body ko fixed height aur scrollbar dena */
.notif-body {
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
}

/* Dropdown ki width fix rakhne ke liye */
.notification-dropdown {
    width: 320px;
    padding: 0 !important;
}

/* Notification item hover effect */
.notif-item {
    transition: background-color 0.2s ease;
    cursor: pointer;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
}

    .notif-item:hover {
        background-color: #f8fafc;
    }

/* Numbering  */
.notif-number {
    background: #e2e8f0;
    color: #475569;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    margin-right: 8px;
}

.bi-bell-slash {
    opacity: 0.2;
    filter: drop-shadow(0 0 5px var(--primary-accent));
}


