/* ==========================================================================
   ShrutSeva Master CSS — Exact match to source React/Tailwind design
   Based on: shrutseva-main/src/index.css + component analysis
   Colors: Navy #012c77 | Blue #1D4ED8 | Teal #00b6be | Orange #FF6B00
   Fonts: Plus Jakarta Sans (body) | Outfit (headings)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════
   LIQUID GLASS — CSS Foundation
   Apple iOS 26 / macOS Tahoe inspired design language
   ═══════════════════════════════════════════════════════════ */
:root {
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-bg-heavy: rgba(255, 255, 255, 0.28);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-border-thin: rgba(255, 255, 255, 0.30);
    --glass-blur: saturate(200%) blur(28px);
    --glass-blur-heavy: saturate(220%) blur(40px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.10);
    --specular: linear-gradient(135deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.10) 40%, transparent 70%);
    --specular-bottom: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
    --rim-light: rgba(255, 255, 255, 0.80);
    --text-primary: rgba(15, 23, 42, 0.92);
    --text-secondary: rgba(71, 85, 105, 0.85);
    --text-muted: rgba(148, 163, 184, 0.90);
    --accent-blue: #2563EB;
    --accent-orange: #FF6B00;
    --accent-teal: #0891B2;
}

@keyframes liquid-morph {
    0% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }

    33% {
        border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    }

    66% {
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    }

    100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }
}

@keyframes orb-drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(3%, 4%) scale(1.04);
    }

    50% {
        transform: translate(-2%, 6%) scale(0.97);
    }

    75% {
        transform: translate(4%, -3%) scale(1.02);
    }
}

@keyframes border-spin {
    to {
        --border-angle: 360deg;
    }
}

@keyframes shimmer-sweep {
    0% {
        left: -80%;
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 180%;
        opacity: 0.6;
    }
}

@keyframes ripple-out {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@property --border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* ------------------------------------------------------------------
   RESET
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #EBF3FF 0%, #F0F7FF 35%, #FFF7F0 65%, #EBF3FF 100%) fixed !important;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

p {
    margin: 0;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button,
input,
select,
textarea {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

::selection {
    background: #EAF4FF;
    color: #1D4ED8;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F7FBFF;
}

::-webkit-scrollbar-thumb {
    background: #b0cfe0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #012c77;
}

/* ------------------------------------------------------------------
   BACKGROUND ANIMATIONS (matching source index.css)
   ------------------------------------------------------------------ */
@keyframes float-slow {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(15px, 25px, 0);
    }
}

@keyframes float-slower {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-20px, 10px, 0);
    }
}

.animate-float-slow {
    animation: float-slow 15s ease-in-out infinite !important;
    will-change: transform;
    backface-visibility: hidden;
}

.animate-float-slower {
    animation: float-slower 20s ease-in-out infinite !important;
    will-change: transform;
    backface-visibility: hidden;
}

/* Ambient neon blobs (position via inline style on the element) */
.ss-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

/* ------------------------------------------------------------------
   PUBLIC NAVBAR — Glassmorphism, floating pill (exact from source)
   ------------------------------------------------------------------ */
/* ══════════════════════════════════════════════════
   NAVBAR — Liquid Glass Material
   ══════════════════════════════════════════════════ */
.ss-navbar-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 14px 20px;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-navbar-wrap.scrolled {
    padding: 0;
}

.ss-navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    height: 72px;
    padding: 0 28px;

    /* Glass base — frosted white tinted with the page's navy accent */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(235, 242, 255, 0.20) 50%,
            rgba(220, 232, 255, 0.24) 100%);
    backdrop-filter: saturate(280%) blur(40px);
    -webkit-backdrop-filter: saturate(280%) blur(40px);

    /* Glass edge: bright top rim + dark bottom edge + outer shadow */
    border: 1px solid transparent;
    border-radius: 22px;
    background-clip: padding-box;
    box-shadow:
        /* outer ambient shadow */
        0 8px 32px rgba(1, 44, 119, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.08),
        /* bright top rim — simulates glass catching light */
        inset 0 1.5px 0 rgba(255, 255, 255, 0.92),
        /* dim bottom inner edge — glass thickness */
        inset 0 -1px 0 rgba(1, 44, 119, 0.12),
        /* subtle left rim */
        inset 1px 0 0 rgba(255, 255, 255, 0.40),
        /* subtle right rim */
        inset -1px 0 0 rgba(255, 255, 255, 0.20);

    /* Glass border ring (separate from box-shadow) */
    outline: 1px solid rgba(255, 255, 255, 0.55);
    outline-offset: -1px;

    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Glass-cut diagonal specular highlight (permanent) ── */
.ss-navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(118deg,
            rgba(255, 255, 255, 0.52) 0%,
            rgba(255, 255, 255, 0.16) 28%,
            rgba(255, 255, 255, 0.00) 28.5%,
            rgba(255, 255, 255, 0.00) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ── Animated shine sweep on hover ── */
.ss-navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0.00) 30%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(255, 255, 255, 0.26) 50%,
            rgba(255, 255, 255, 0.06) 55%,
            rgba(255, 255, 255, 0.00) 70%) no-repeat;
    background-size: 300% 100%;
    background-position: 100% 0;
    pointer-events: none;
    z-index: 0;
    transition: background-position 0.90s cubic-bezier(0.19, 1, 0.22, 1);
}

.ss-navbar-wrap:hover .ss-navbar::after {
    background-position: 0% 0;
}

/* Scrolled state — edge-to-edge flat glass strip */
.ss-navbar-wrap.scrolled .ss-navbar {
    max-width: 100%;
    border-radius: 0;
    height: 64px;
    outline: none;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.32) 0%,
            rgba(235, 242, 255, 0.26) 100%);
    backdrop-filter: saturate(280%) blur(40px);
    -webkit-backdrop-filter: saturate(280%) blur(40px);
    box-shadow:
        0 4px 20px rgba(1, 44, 119, 0.10),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(1, 44, 119, 0.10);
    border-left: none;
    border-right: none;
    border-top: none;
}


/* Logo */
.ss-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-right: 28px;
}

.ss-logo img {
    height: 54px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1) saturate(1.2) drop-shadow(0 1px 3px rgba(1, 44, 119, 0.15)) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: opacity, height;
}

.ss-logo:hover img {
    opacity: 0.9;
}

.ss-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #012c77 !important;
    letter-spacing: -0.5px;
    line-height: 1;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    transition: font-size 0.3s ease;
}

.ss-logo-text .orange {
    color: #FF6B00 !important;
}

/* Scrolled state logo adjustments */
.ss-navbar-wrap.scrolled .ss-logo img {
    height: 44px;
}

.ss-navbar-wrap.scrolled .ss-logo-text {
    font-size: 23px;
}

/* Nav links */
.ss-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    margin-left: 12px;
    margin-right: 12px;
}

.ss-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(1, 44, 119, 0.65);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.22s ease;
    z-index: 1;
    white-space: nowrap;
}

body.ss-logged-in .ss-nav-links {
    gap: 4px;
    margin-left: 8px;
    margin-right: 8px;
}

body.ss-logged-in .ss-nav-link {
    padding: 6px 10px;
}

.ss-nav-link:hover {
    background: rgba(255, 255, 255, 0.55);
    color: #012c77;
    box-shadow:
        0 2px 8px rgba(1, 44, 119, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ss-nav-link.active {
    background: rgba(255, 255, 255, 0.70);
    color: #1D4ED8;
    box-shadow:
        0 2px 10px rgba(29, 78, 216, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.90),
        inset 0 -1px 0 rgba(29, 78, 216, 0.08);
}

/* Vertical divider between public and admin nav links */
.ss-nav-divider {
    display: block;
    width: 1px;
    height: 20px;
    background: rgba(1, 44, 119, 0.14);
    margin: 0 6px;
    border-radius: 1px;
}

/* Navbar Dropdown styling (liquid glass style) */
.ss-nav-dropdown {
    position: relative;
}

.ss-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: saturate(180%) blur(30px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.70) !important;
    border-top: 3.5px solid #FF6B00 !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(1, 44, 119, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    padding: 10px 0 !important;
    min-width: 210px !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
    z-index: 1100;
    /* Premium diagonal/dot-grid watermark pattern */
    background-image: radial-gradient(rgba(1, 44, 119, 0.05) 1.2px, transparent 1.2px) !important;
    background-size: 12px 12px !important;
}

.ss-nav-dropdown:hover .ss-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.ss-dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
    text-align: left !important;
    border-left: 3px solid transparent !important;
    position: relative;
}

.ss-dropdown-menu a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #012c77;
    transition: all 0.22s ease;
    opacity: 0.7;
}

.ss-dropdown-menu a:nth-child(3n+1)::before {
    background: #FF6B00;
}

.ss-dropdown-menu a:nth-child(3n+2)::before {
    background: #00b6be;
}

.ss-dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%) !important;
    border-left-color: #FF6B00 !important;
    color: #012c77 !important;
    padding-left: 24px !important;
}

.ss-dropdown-menu a:hover::before {
    transform: scale(1.4);
    opacity: 1;
}

/* Sidebar hidden by default on public/non-logged-in pages;
   navbar.js overrides display for logged-in users */
.lg-sidebar-trigger,
#sidebarTrigger,
.lg-sidebar-backdrop,
#sidebarBackdrop,
.lg-sidebar,
#sidebarDrawer {
    display: none !important;
}

/* Navbar right */
.ss-navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Bhandar pill button */
.ss-bhandar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
    white-space: nowrap;
}

.ss-bhandar-btn:hover {
    background: rgba(255, 255, 255, 0.60);
    border-color: rgba(255, 255, 255, 0.80);
}

.ss-bhandar-btn i {
    color: #2563EB;
}

/* Login button (solid orange pill — fully colored) */
.ss-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 26px;
    border-radius: 9999px !important;
    background-color: #FF6B00 !important;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.40), 0 2px 6px rgba(255, 107, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

.ss-btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.30), transparent);
    border-radius: 9999px 9999px 50% 50%;
    pointer-events: none;
}

.ss-btn-login:hover {
    background-color: #E66000 !important;
    background: linear-gradient(135deg, #E66000 0%, #FF751A 100%) !important;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.40) !important;
    color: #ffffff !important;
    transform: translateZ(0) translateY(-1px);
}

/* Logout button (solid red pill — fully colored) */
.ss-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 9999px !important;
    background-color: #EF4444 !important;
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.40), 0 2px 6px rgba(239, 68, 68, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

.ss-btn-logout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.30), transparent);
    border-radius: 9999px 9999px 50% 50%;
    pointer-events: none;
}

.ss-btn-logout:hover {
    background-color: #DC2626 !important;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%) !important;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.40) !important;
    color: #ffffff !important;
    transform: translateZ(0) translateY(-1px);
}

/* Mobile hamburger */
.ss-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: #EAF4FF;
    color: #374151;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ss-hamburger:hover {
    background: #D1D5DB;
}

/* Mobile menu */
.ss-mobile-menu {
    display: none;
    position: absolute;
    top: calc(72px + 8px);
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    padding: 16px;
    flex-direction: column;
    gap: 6px;
    z-index: 55;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ss-mobile-menu.open {
    display: flex;
}

.ss-mobile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}

.ss-mobile-link:hover {
    background: #EAF4FF;
}

.ss-mobile-divider {
    height: 1px;
    background: #EAF4FF;
    margin: 6px 0;
}

/* Public pages need top padding for fixed navbar */
.ss-page,
.ss-main {
    padding-top: 120px;
    min-height: 100vh;
    position: relative;
}

.ss-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ------------------------------------------------------------------
   HOMEPAGE — HERO (exact from Hero.jsx + framer-motion)
   ------------------------------------------------------------------ */

/* Breathing / pulse animation for the logo orb — replicates framer-motion
   animate={{ scale:[1,1.03,1], opacity:[0.85,1,0.85] }} duration=6s */
@keyframes orb-breathe {

    0%,
    100% {
        transform: scale3d(1, 1, 1);
    }

    50% {
        transform: scale3d(1.03, 1.03, 1);
    }
}

/* Floating logo inside the orb — replicates animate={{ y:[0,-8,0] }} */
@keyframes logo-float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

.ss-hero-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 32px;
    margin: 0 auto;
}

.ss-hero-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Left text column */
.ss-hero-text {
    flex: 1 1 0%;
    width: 100%;
    max-width: 560px;
    text-align: left;
    z-index: 10;
}

.ss-hero-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ss-hero-heading-navy {
    display: block;
    color: #012c77;
    padding-bottom: 6px;
    filter: drop-shadow(0 1px 0 rgba(1, 44, 119, 0.08));
}

.ss-hero-heading-orange {
    display: block;
    padding-bottom: 4px;
    background: linear-gradient(to right, #FF6B00, #FF9F1C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Right logo-orb column — always on RIGHT */
.ss-hero-logo-col {
    flex-shrink: 0;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 340px;
    height: 340px;
    position: relative;
}

/* Outer breathing circle with navy glow */
.ss-logo-orb-wrap {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #F8FAFC 0%, #DBEAFE 100%);
    border: 1px solid rgba(255, 255, 255, 0.60);
    box-shadow: 0 0 80px rgba(29, 78, 216, 0.35);
    animation: orb-breathe 6s ease-in-out infinite;
}

/* Very faint inner ring */
.ss-logo-orb-wrap::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px solid rgba(219, 234, 254, 0.50);
    pointer-events: none;
}

/* Logo image — floats up/down */
.ss-logo-orb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ss-logo-orb img {
    width: 290px;
    height: 290px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    animation: logo-float 6s ease-in-out infinite;
}

/* Left text always order:1 */
.ss-hero-text {
    order: 1;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 860px) {
    .ss-hero-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ss-hero-text {
        text-align: center;
        max-width: 100%;
        order: 1;
        flex: 1 1 100%;
    }

    .ss-hero-logo-col {
        order: 2;
        width: 260px;
        height: 260px;
    }

    .ss-logo-orb img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .ss-hero-logo-col {
        width: 200px;
        height: 200px;
    }

    .ss-logo-orb img {
        width: 170px;
        height: 170px;
    }

    .ss-hero-container {
        padding: 0 16px;
    }
}

/* ------------------------------------------------------------------
   HOMEPAGE — FEATURE CARDS (exact from FeatureCards.jsx)
   ------------------------------------------------------------------ */
.ss-feature-cards-grid {
    width: 100%;
    max-width: 1240px;
    margin: 32px auto 0;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .ss-feature-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
}

/* Base card — rounded-[22px], flex row, min-height 155px */
.ss-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 20px 24px;
    min-height: 155px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-feature-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Gradient variants */
.ss-card-quick {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%),
        linear-gradient(160deg, #a8c8ff 0%, #6fa8ff 18%, #3b82f6 36%, #2563EB 55%, #1D4ED8 75%, #1e40af 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1),
        0 12px 28px -8px rgba(37, 99, 235, 0.50);
}

.ss-card-quick:hover {
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1),
        0 20px 40px -10px rgba(37, 99, 235, 0.70);
}

.ss-card-advance {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%),
        linear-gradient(160deg, #ffe0a0 0%, #ffb347 18%, #ff8c00 36%, #FF8A00 55%, #e65100 75%, #bf3c00 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1),
        0 12px 28px -8px rgba(249, 115, 22, 0.50);
}

.ss-card-advance:hover {
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1),
        0 20px 40px -10px rgba(249, 115, 22, 0.70);
}

.ss-card-index {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%),
        linear-gradient(160deg, #a0eaf0 0%, #4dd9e8 18%, #00bcd4 36%, #00ACC1 55%, #00838F 75%, #005f6b 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1),
        0 12px 28px -8px rgba(0, 172, 193, 0.50);
}

.ss-card-index:hover {
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1),
        0 20px 40px -10px rgba(0, 172, 193, 0.70);
}

/* Dot matrix texture overlay */
.ss-card-dot-texture {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image: radial-gradient(white 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

/* Giant watermark icon — bottom-right, rotated */
.ss-card-watermark-icon {
    position: absolute;
    right: -16px;
    bottom: -16px;
    opacity: 0.12;
    pointer-events: none;
    color: white;
    transform: rotate(-12deg);
}

/* Card content row */
.ss-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

/* Glowing icon badge */
.ss-card-icon-wrap {
    flex-shrink: 0;
    position: relative;
}

.ss-card-icon-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: white;
    opacity: 0.35;
    filter: blur(8px);
    pointer-events: none;
}

.ss-card-icon-circle {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.80);
}

/* Text block */
.ss-card-text-wrap {
    display: flex;
    flex-direction: column;
}

.ss-card-text-wrap .ss-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 700;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ss-card-divider {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.50);
    margin-bottom: 8px;
    border-radius: 99px;
}

.ss-card-desc {
    color: rgba(255, 255, 255, 0.90);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    max-width: 200px;
}

/* Arrow pill — left corner integrated in card content flow */
.ss-feature-card-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-feature-card-arrow--left {
    position: relative;
    bottom: auto;
    right: auto;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-feature-card:hover .ss-feature-card-arrow,
.ss-feature-card:hover .ss-feature-card-arrow--left {
    transform: scale(1.1);
}

/* Glass overlay (unused in new version but kept for compat) */
.ss-feature-card-glass {
    display: none;
}

/* ------------------------------------------------------------------
   HOMEPAGE — FOOTER
   ------------------------------------------------------------------ */
.ss-footer {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.60);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.03);
}

.ss-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ss-footer-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.ss-footer-copy {
    font-size: 12px;
    color: #9CA3AF;
}

.ss-footer-copy .navy {
    color: #012c77;
    font-weight: 700;
}

.ss-footer-copy .orange {
    color: #FF6B00;
    font-weight: 700;
}


/* ------------------------------------------------------------------
   BHANDAR OPERATOR NAVBAR (solid navy, sticky)
   ------------------------------------------------------------------ */
.bh-navbar {
    background: #012c77;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 16px rgba(1, 44, 119, 0.30);
}

.bh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.bh-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: opacity 0.2s;
}

.bh-logo:hover img {
    opacity: 1;
}

.bh-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.bh-logo-text .orange {
    color: #FF6B00;
}

.bh-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bh-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.bh-nav-link:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.bh-nav-link.active {
    background: rgba(255, 107, 0, 0.15);
    color: #fff;
    border-bottom-color: #FF6B00;
}

.bh-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bh-bhandar-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.90);
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

.bh-bhandar-pill i {
    color: #FF6B00;
}

.bh-user-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.bh-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #FCA5A5;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bh-logout:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #fff;
}

.bh-page {
    min-height: calc(100vh - 68px);
}

.bh-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 28px 80px;
}

/* ------------------------------------------------------------------
   ADMIN NAVBAR (darker navy)
   ------------------------------------------------------------------ */
.adm-navbar {
    background: #011e55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(1, 30, 85, 0.35);
}

.adm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.adm-logo img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.90;
}

.adm-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.adm-logo-text .orange {
    color: #FF6B00;
}

.adm-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

.adm-nav-right a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.adm-nav-right a:hover {
    color: #fff;
}

.adm-badge {
    background: rgba(255, 107, 0, 0.15);
    color: #FDBA74;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}

.adm-page {
    min-height: calc(100vh - 64px);
}

.adm-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 28px 80px;
}

/* ------------------------------------------------------------------
   PAGE HEADER
   ------------------------------------------------------------------ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 4vw, 34px) !important;
    font-weight: 800;
    color: #012c77;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 4px;
}

.page-title .orange {
    color: #FF6B00;
}

.page-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   STAT CARDS (exact from Dashboard.jsx — gradient + accent strip)
   ------------------------------------------------------------------ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: saturate(180%) blur(28px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(28px) !important;
    border-radius: 20px !important;
    padding: 18px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.02),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.80),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.80) !important;
    box-shadow: 0 16px 40px rgba(29, 78, 216, 0.08) !important;
}

/* Left accent vertical strip */
.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--accent-blue);
    border-radius: 0 0 0 20px;
    z-index: 2;
}

/* Top gloss reflection */
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Color variants for stat cards */
.stat-card.blue {
    background: rgba(37, 99, 235, 0.14) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
}

.stat-card.blue::before {
    background: linear-gradient(to bottom, #2563EB, #60a5fa) !important;
}

.stat-card.teal {
    background: rgba(0, 182, 190, 0.14) !important;
    border-color: rgba(0, 182, 190, 0.35) !important;
}

.stat-card.teal::before {
    background: linear-gradient(to bottom, #00b6be, #48dbfb) !important;
}

.stat-card.orange {
    background: rgba(255, 107, 0, 0.14) !important;
    border-color: rgba(255, 107, 0, 0.35) !important;
}

.stat-card.orange::before {
    background: linear-gradient(to bottom, #FF6B00, #FFD166) !important;
}

.stat-card.purple {
    background: rgba(79, 70, 229, 0.14) !important;
    border-color: rgba(79, 70, 229, 0.35) !important;
}

.stat-card.purple::before {
    background: linear-gradient(to bottom, #4F46E5, #A78BFA) !important;
}

.stat-card.green {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

.stat-card.green::before {
    background: linear-gradient(to bottom, #10B981, #34D399) !important;
}

.stat-card.red {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.stat-card.red::before {
    background: linear-gradient(to bottom, #EF4444, #FCA5A5) !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s;
}

.stat-card:hover .stat-icon {
    opacity: 0.95;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #1D4ED8, #60a5fa);
    color: #fff;
}

.stat-icon.teal {
    background: linear-gradient(135deg, #00b6be, #48dbfb);
    color: #fff;
}

.stat-icon.orange {
    background: linear-gradient(135deg, #FF6B00, #FFD166);
    color: #fff;
}

.stat-icon.purple {
    background: linear-gradient(135deg, #4F46E5, #A78BFA);
    color: #fff;
}

.stat-icon.green {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: #fff;
}

.stat-icon.red {
    background: linear-gradient(135deg, #EF4444, #FCA5A5);
    color: #fff;
}

.stat-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 6px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}

/* Gradient text for stat values */
.stat-card.blue .stat-value {
    background: linear-gradient(to right, #1D4ED8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.teal .stat-value {
    background: linear-gradient(to right, #00b6be, #00d2d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.orange .stat-value {
    background: linear-gradient(to right, #FF6B00, #FF9F1C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.purple .stat-value {
    background: linear-gradient(to right, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.green .stat-value {
    background: linear-gradient(to right, #10B981, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.red .stat-value {
    background: linear-gradient(to right, #EF4444, #DC2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-trend {
    font-size: 10px;
    font-weight: 700;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ------------------------------------------------------------------
   CARDS (exact from source — glassmorphic rounded-[24px])
   ------------------------------------------------------------------ */
.ss-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: saturate(220%) blur(40px) !important;
    -webkit-backdrop-filter: saturate(220%) blur(40px) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 12px 40px rgba(1, 44, 119, 0.08),
        0 2px 8px rgba(1, 44, 119, 0.04),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.20) !important;
    border: 1px solid rgba(1, 44, 119, 0.12) !important;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-card:hover {
    border-color: rgba(255, 255, 255, 0.80) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.90),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15) !important;
}

.ss-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30% !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent) !important;
    border-radius: 24px 24px 60% 60% !important;
    pointer-events: none;
    z-index: 0;
}

.ss-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ss-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0A2540;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ss-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ss-card-icon.blue {
    background: rgba(29, 78, 216, 0.10);
    color: #1D4ED8;
}

.ss-card-icon.orange {
    background: rgba(255, 107, 0, 0.10);
    color: #FF6B00;
}

.ss-card-icon.teal {
    background: rgba(0, 182, 190, 0.10);
    color: #00b6be;
}

.ss-card-icon.green {
    background: rgba(16, 185, 129, 0.10);
    color: #10B981;
}

.ss-card-icon.purple {
    background: rgba(79, 70, 229, 0.10);
    color: #4F46E5;
}

.ss-card-icon.red {
    background: rgba(239, 68, 68, 0.10);
    color: #EF4444;
}

.ss-card-body {
    position: relative;
    z-index: 1;
}

/* ── MODERN DASHBOARD INTERACTION & CUSTOM CHARTS SYSTEM ───────── */

/* Background ambient neon glow blobs */
.ss-glow-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.12;
}

/* Loading Overlay for City Sync Data Updates */
.ss-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.ss-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ss-loading-spinner {
    font-size: 36px;
    color: #FF6B00;
    animation: fa-spin 1s infinite linear;
}

.ss-loading-text {
    margin-top: 14px;
    font-weight: 800;
    color: #012c77;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Outfit', sans-serif;
}

/* Dashboard Stat Cards Accent Fixes */
.stat-card {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.60) !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card.blue:hover {
    border-color: rgba(29, 78, 216, 0.30) !important;
    box-shadow: 0 16px 40px rgba(29, 78, 216, 0.06) !important;
}

.stat-card.teal:hover {
    border-color: rgba(0, 182, 190, 0.30) !important;
    box-shadow: 0 16px 40px rgba(0, 182, 190, 0.06) !important;
}

.stat-card.orange:hover {
    border-color: rgba(255, 107, 0, 0.30) !important;
    box-shadow: 0 16px 40px rgba(255, 107, 0, 0.06) !important;
}

.stat-card.purple:hover {
    border-color: rgba(79, 70, 229, 0.30) !important;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.06) !important;
}

/* Tabbed View Toggler */
.ss-toggle-wrap {
    display: flex;
    align-items: center;
    padding: 2.5px;
    background: #F1F5F9;
    border-radius: 9999px;
    border: 1px solid #E2E8F0;
}

.ss-toggle-btn {
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748B;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}

.ss-toggle-btn.active {
    background: #FF6B00;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(255, 107, 0, 0.25);
}

.ss-toggle-btn:not(.active):hover {
    color: #1E293B;
}

/* Custom Chart Base & Gridlines — proper graph look */
.ss-custom-chart {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    /* Left room for Y-axis labels, bottom for X labels + baseline */
    padding: 12px 12px 38px 52px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.55) 0%, rgba(248, 250, 252, 0.85) 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.7);
}

/* Y-axis value labels column */
.ss-chart-yaxis {
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 38px;
    width: 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 8px;
    pointer-events: none;
    z-index: 5;
}

.ss-chart-ylabel {
    font-size: 9.5px;
    font-weight: 700;
    color: #94A3B8;
    line-height: 1;
    font-family: 'Outfit', monospace;
}

/* X-axis solid baseline */
.ss-chart-baseline {
    position: absolute;
    left: 52px;
    right: 12px;
    bottom: 38px;
    height: 2px;
    background: linear-gradient(to right, #CBD5E1, #E2E8F0);
    border-radius: 1px;
    z-index: 4;
}

.ss-chart-gridlines {
    position: absolute;
    left: 52px;
    right: 12px;
    top: 12px;
    bottom: 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
}

.ss-chart-gridline {
    width: 100%;
    border-bottom: 1px solid rgba(148, 163, 184, 0.20);
    position: relative;
}

.ss-chart-gridline:nth-child(odd) {
    border-bottom-color: rgba(148, 163, 184, 0.30);
}

/* Vertical Gradient Bar Widget */
.ss-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    z-index: 10;
}

.ss-bar-pill {
    width: 100%;
    max-width: 36px;
    background: linear-gradient(to top, #FF6B00, #FFB800);
    border-radius: 6px 6px 0 0;
    position: relative;
    cursor: pointer;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s, transform 0.3s;
}

.ss-bar-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.25), transparent);
    border-radius: 6px 6px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.ss-bar-pill:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.30);
    opacity: 0.95;
}

.ss-bar-pill:hover::before {
    opacity: 1;
}

.ss-bar-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #1E293B;
    margin-top: 10px;
    white-space: nowrap;
    transition: color 0.2s;
    font-family: 'Outfit', sans-serif;
}

.ss-bar-col:hover .ss-bar-label {
    color: #FF6B00;
}

/* Scrollable Horizontal Bar Layout for Languages */
.ss-scroll-chart-wrap {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    /* overflow-y must be visible so tooltips above bars aren't clipped */
    overflow-y: visible;
    padding-bottom: 4px;
    /* Extra top padding so tooltip has room to appear above chart */
    padding-top: 36px;
    margin-top: -36px;

}

.ss-scroll-chart-wrap::-webkit-scrollbar {
    height: 5px;
}

.ss-scroll-chart-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.ss-scroll-chart-wrap::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 99px;
}

.ss-scroll-chart-wrap::-webkit-scrollbar-thumb:hover {
    background: #012c77;
}

.ss-lang-bar-pill {
    width: 100%;
    max-width: 22px;
    background: linear-gradient(to top, #1565FF, #00b6be);
    border-radius: 4px 4px 0 0;
}

.ss-lang-bar-pill:hover {
    box-shadow: 0 6px 18px rgba(0, 182, 190, 0.35);
    opacity: 0.95;
}

.ss-lang-bar-label {
    font-size: 9px;
    font-weight: 800;
    color: #475569;
    margin-top: 7px;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    /* No rotation — straight label under each bar */
    transform: none;
    line-height: 1.2;
}

.ss-bar-col:hover .ss-lang-bar-label {
    color: #1565FF;
}

/* Floating Micro Tooltip styling */
.ss-chart-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #0F172A;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ss-bar-col:hover .ss-chart-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* SVG Donut Sizing & Legend Details */
.ss-donut-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    height: 100%;
    padding: 16px;
}

.ss-donut-svg-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.ss-donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ss-donut-hole-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.ss-donut-hole-subtitle {
    font-size: 9.5px;
    font-weight: 900;
    color: #94A3B8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ss-donut-hole-title {
    font-size: 24px;
    font-weight: 900;
    color: #0F172A;
    line-height: 1;
    margin: 3px 0;
    font-family: 'Outfit', sans-serif;
}

.ss-donut-hole-desc {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
}

.ss-donut-legend-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 6px;
}

.ss-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    cursor: default;
}

.ss-donut-legend-color {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Sizing Registry Table Custom Badges & Copy Toolkit */
.ss-table-size-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 900;
    color: #1D4ED8;
    background: rgba(29, 78, 216, 0.10);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

tr:hover .ss-table-size-badge {
    background: #1D4ED8;
    color: #ffffff;
}

.ss-copy-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    margin-left: 6px;
}

.ss-copy-btn:hover {
    background: #F1F5F9;
    color: #FF6B00;
}

/* Absolute Animated Clipboard copied alert badge */
.ss-copied-badge {
    position: absolute;
    margin-left: 36px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #059669;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2.5px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateX(-4px) scale(0.9);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    line-height: 1;
}

.ss-copied-badge.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Bucket Range Table - View Books Button */
.ss-bucket-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #1565FF, #1D4ED8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: 0 2px 8px rgba(21, 101, 255, 0.25);
    white-space: nowrap;
}

.ss-bucket-view-btn:hover {
    background: linear-gradient(135deg, #0D4FD9, #1E40AF);
    box-shadow: 0 5px 15px rgba(21, 101, 255, 0.35);
    color: #fff;
}

/* Sizing Table weight progress bars */
.ss-table-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 160px;
}

.ss-table-progress-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    line-height: 1;
}

.ss-table-progress-bar-bg {
    width: 100%;
    height: 5px;
    background: #F1F5F9;
    border-radius: 99px;
    overflow: hidden;
}

.ss-table-progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #1D4ED8, #00b6be);
    border-radius: 99px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ──────────────────────────────────────────────────────────────── */


/* ------------------------------------------------------------------
   TABLE with GRADIENT HEADER (exact from source Dashboard.jsx)
   ------------------------------------------------------------------ */
.ss-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.40);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.50);
    /* Prevent parent from clipping the scrollable table */
    max-width: 100%;
}

.ss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px !important;
}

.ss-table thead tr {
    background: linear-gradient(to right, #012c77 0%, #1D4ED8 50%, #00b6be 100%) !important;
    border-bottom: none !important;
}

.ss-table thead th {
    background: transparent !important;
    padding: 13px 16px;
    text-align: left;
    font-weight: 800;
    color: #ffffff !important;
    font-size: 13.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.ss-table thead th:first-child {
    border-top-left-radius: 14px !important;
}

.ss-table thead th:last-child {
    border-top-right-radius: 14px !important;
    border-right: none !important;
}

.ss-table tbody tr {
    border-bottom: 1px solid rgba(1, 44, 119, 0.18) !important;
    transition: background 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* .ss-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.12) !important;
}

.ss-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.40) !important;
} */

.ss-table tbody td {
    padding: 13px 16px;
    color: #012c77 !important;
    font-weight: 600 !important;
    vertical-align: middle;
    font-size: 15px !important;
    white-space: nowrap;
    border-right: 1px solid rgba(1, 44, 119, 0.12) !important;
}

.ss-table tbody td:last-child {
    border-right: none !important;
}

/* DataTables override to match gradient header */
.dataTables_wrapper {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
}

.dataTables_wrapper .dataTables_length select {
    display: inline-block;
    width: auto;
    height: 34px;
    padding: 0 28px 0 10px;
    border: 1px solid rgba(1, 44, 119, 0.16) !important;
    border-radius: 8px !important;
    font-size: 12px;
    font-weight: 700 !important;
    color: #012c77 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23012c77' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 8px !important;
}

.dataTables_wrapper .dataTables_filter input {
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(1, 44, 119, 0.16) !important;
    border-radius: 8px !important;
    font-size: 12.5px;
    font-weight: 700 !important;
    color: #012c77 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: rgba(37, 99, 235, 0.68) !important;
    background: rgba(255, 255, 255, 0.80) !important;
}

table.dataTable {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

table.dataTable thead tr {
    background: linear-gradient(to right, #012c77 0%, #1D4ED8 50%, #00b6be 100%) !important;
    border-bottom: none !important;
}

table.dataTable thead th,
table.dataTable thead td {
    background: transparent !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 13px 16px !important;
    white-space: nowrap !important;
}

table.dataTable thead th:first-child {
    border-top-left-radius: 14px !important;
}

table.dataTable thead th:last-child {
    border-top-right-radius: 14px !important;
    border-right: none !important;
}

table.dataTable tbody tr {
    border-bottom: 1px solid rgba(1, 44, 119, 0.18) !important;
    transition: background 0.2s ease;
}

/* table.dataTable tbody tr:nth-child(even) {
    background: rgba(247, 251, 255, 0.5) !important;
}

table.dataTable tbody tr:hover {
    background: rgba(0, 182, 190, 0.05) !important;
} */

table.dataTable tbody td {
    padding: 13px 16px !important;
    color: #012c77 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    border-right: 1px solid rgba(1, 44, 119, 0.12) !important;
    vertical-align: middle;
}

table.dataTable tbody td:last-child {
    border-right: none !important;
}

.dt-buttons {
    margin-bottom: 12px !important;
}

.dt-buttons button {
    background: linear-gradient(135deg, #012c77, #1D4ED8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9999px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px !important;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    border: 1px solid !important;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent) !important;
    pointer-events: none;
    border-radius: 12px 12px 50% 50% !important;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary,
.btn-navy {
    background: linear-gradient(135deg, #012c77 0%, #1D4ED8 100%) !important;
    border-color: #012c77 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.btn-primary:hover,
.btn-navy:hover {
    background: linear-gradient(135deg, #001f5c 0%, #173eb2 100%) !important;
    border-color: #001f5c !important;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-orange {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8F3D 100%) !important;
    border-color: #FF6B00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.btn-orange:hover {
    background: linear-gradient(135deg, #e05e00 0%, #e67d30 100%) !important;
    border-color: #e05e00 !important;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-teal {
    background: linear-gradient(135deg, #00b6be 0%, #00939a 100%) !important;
    border-color: #00b6be !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 182, 190, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.btn-teal:hover {
    background: linear-gradient(135deg, #009ea6 0%, #007c82 100%) !important;
    border-color: #009ea6 !important;
    box-shadow: 0 6px 18px rgba(0, 182, 190, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    border-color: #10B981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.btn-green:hover {
    background: linear-gradient(135deg, #0d9668 0%, #047857 100%) !important;
    border-color: #0d9668 !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    border-color: #EF4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.btn-red:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #dc2626 !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-outline {
    background: #ffffff !important;
    border-color: #CBD5E1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
}

.btn-outline:hover {
    background: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

.btn-ghost {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.30) !important;
    color: var(--text-primary) !important;
}

.btn.sm {
    padding: 6px 14px !important;
    font-size: 12px;
}

.btn.lg {
    padding: 12px 32px !important;
    font-size: 15px;
}

/* ------------------------------------------------------------------
   BADGES
   ------------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-available,
.badge-active,
.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-issued {
    background: rgba(255, 107, 0, 0.12);
    color: #E8380D;
}

.badge-overdue,
.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.badge-returned,
.badge-info {
    background: rgba(29, 78, 216, 0.10);
    color: #2563EB;
}

.badge-inactive,
.badge-gray {
    background: rgba(107, 114, 128, 0.10);
    color: #6B7280;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
}

.badge-teal {
    background: rgba(0, 182, 190, 0.12);
    color: #00b6be;
}

.badge-navy {
    background: rgba(1, 44, 119, 0.10);
    color: #012c77;
}

/* ------------------------------------------------------------------
   FORMS (from Login.jsx pattern)
   ------------------------------------------------------------------ */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-bottom: 6px;
    margin-left: 4px;
    transition: color 0.2s;
}

.form-group:focus-within .form-label {
    color: var(--accent-blue) !important;
}

.form-req {
    color: #EF4444;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(1, 44, 119, 0.16) !important;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #012c77 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    outline: none;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04),
        inset 1px 0 0 rgba(255, 255, 255, 0.55),
        inset -1px 0 0 rgba(255, 255, 255, 0.30) !important;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-input::placeholder {
    color: rgba(1, 44, 119, 0.55) !important;
    font-weight: 500 !important;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(1, 44, 119, 0.28) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.90),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(37, 99, 235, 0.68) !important;
    background: rgba(255, 255, 255, 0.80) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14),
        0 0 0 2.5px rgba(37, 99, 235, 0.10),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(37, 99, 235, 0.06) !important;
}

/* Animated orange underline on focus (from Login.jsx) */
.form-input-wrap {
    position: relative;
}

.form-input-wrap::after {
    display: none !important;
}

.form-input-wrap:focus-within::after {
    display: none !important;
}

.form-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    color: #1D4ED8;
    transition: color 0.2s;
    pointer-events: none;
    z-index: 10;
    -webkit-font-smoothing: antialiased;
}

.form-input-wrap:focus-within .form-icon {
    color: var(--accent-blue) !important;
}

.form-input-wrap .form-input {
    padding-left: 40px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23012c77' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 9px !important;
    padding-right: 38px !important;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-help {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
    margin-left: 4px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------
   QUICK ACTIONS GRID
   ------------------------------------------------------------------ */
.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qa-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(234, 244, 255, 0.80);
    border: 1px solid rgba(1, 44, 119, 0.10);
    border-radius: 12px;
    text-decoration: none;
    color: #012c77;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s;
}

.qa-btn:hover {
    background: #012c77;
    color: #fff;
    border-color: #012c77;
}

.qa-btn i {
    color: #FF6B00;
    font-size: 1.1em;
    flex-shrink: 0;
}

.qa-btn:hover i {
    color: #fff;
}

/* ------------------------------------------------------------------
   INLINE ACTIVITY TABLE (inside cards)
   ------------------------------------------------------------------ */
.act-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.act-table th {
    background: rgba(234, 244, 255, 0.70);
    color: #6B7280;
    padding: 9px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.act-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #374151;
    vertical-align: middle;
}

.act-table tr:last-child td {
    border-bottom: none;
}

.act-table tr:hover td {
    background: rgba(0, 182, 190, 0.03);
}

/* ------------------------------------------------------------------
   FILTER BAR
   ------------------------------------------------------------------ */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.filter-input {
    padding: 8px 14px !important;
    border: 1px solid rgba(1, 44, 119, 0.16) !important;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #012c77 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    outline: none;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04) !important;
}

.filter-input:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(1, 44, 119, 0.28) !important;
}

.filter-input:focus {
    border-color: rgba(37, 99, 235, 0.68) !important;
    background: rgba(255, 255, 255, 0.80) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14),
        0 0 0 2.5px rgba(37, 99, 235, 0.10),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(37, 99, 235, 0.06) !important;
}

/* ------------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------------ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #012c77;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   ALERTS
   ------------------------------------------------------------------ */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid;
    margin-bottom: 16px;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border-color: #86efac;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FCA5A5;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FDE68A;
}

.alert-info {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

/* ------------------------------------------------------------------
   AUTH / LOGIN CARD (exact from Login.jsx)
   ------------------------------------------------------------------ */
.auth-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.04), rgba(255, 255, 255, 0.95), rgba(0, 182, 190, 0.04));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(10, 37, 64, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.60);
    transition: border-color 0.3s;
}

.auth-card:hover {
    border-color: rgba(29, 78, 216, 0.25);
}

/* Left accent strip */
.auth-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4.5px;
    background: linear-gradient(to bottom, #1D4ED8, #00b6be, #FF6B00);
}

/* Top gloss */
.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.10), transparent);
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}

/* ------------------------------------------------------------------
   FOOTER (from Footer.jsx)
   ------------------------------------------------------------------ */
.ss-footer {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(8px);
    border-top: 1px solid #E5E7EB;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ss-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ss-footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: #F7FBFF;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.ss-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ss-footer-copy {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}

.ss-footer-copy .navy {
    color: #012c77;
    font-weight: 700;
}

.ss-footer-copy .orange {
    color: #FF6B00;
    font-weight: 700;
}

/* ------------------------------------------------------------------
   LAYOUT HELPERS
   ------------------------------------------------------------------ */
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.grid-2-eq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1280px) {
    .ss-navbar {
        padding: 0 16px !important;
    }

    .ss-logo-text {
        font-size: 22px !important;
    }

    .ss-logo img {
        height: 42px !important;
    }

    .ss-nav-link {
        padding: 6px 10px !important;
        font-size: 12.5px !important;
    }

    .ss-navbar-right {
        gap: 8px !important;
    }

    .ss-bhandar-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .ss-btn-login,
    .ss-btn-logout {
        padding: 7px 16px !important;
        font-size: 13.5px !important;
    }
}

@media (max-width: 1120px) {
    body:not(.ss-logged-in) .ss-nav-links {
        display: none !important;
    }

    body:not(.ss-logged-in) .ss-bhandar-btn {
        display: none !important;
    }

    /* body:not(.ss-logged-in) .ss-btn-login,
    body:not(.ss-logged-in) .ss-btn-logout {
        display: none !important;
    } */

    body:not(.ss-logged-in) .ss-hamburger {
        display: flex !important;
    }

    /* Logged-in users: reduce font size on smaller screens to fit more links */
    body.ss-logged-in .ss-nav-link {
        font-size: 11px;
        padding: 5px 8px;
    }

    body.ss-logged-in .ss-navbar {
        padding: 0 16px;
    }
}

@media (max-width: 1200px) {
    body.ss-logged-in .ss-nav-links {
        display: none !important;
    }

    body.ss-logged-in .ss-hamburger {
        display: flex !important;
    }
}

@media (max-width: 900px) {
    .bh-nav-links {
        display: none;
    }

    .bh-bhandar-pill {
        display: none;
    }

    .grid-2,
    .grid-2-eq,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qa-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bh-container,
    .adm-container,
    .ss-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ss-hero-inner {
        padding: 32px 20px;
    }

    .bh-navbar {
        padding: 0 16px;
    }

    .adm-navbar {
        padding: 0 16px;
    }
}

@media (max-width: 400px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .qa-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {


    /* Override inline styles on page-header for responsive mobile stacking */
    .page-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        height: auto !important;
    }

    .page-header>div:not(.page-actions) {
        width: 100% !important;
    }

    /* Target the action buttons div or container in page-header */
    .page-header .page-actions,
    .page-header>div:not(:first-child) {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        margin-top: 4px !important;
    }

    .page-header .page-actions .ss-btn,
    .page-header>div:not(:first-child) .ss-btn,
    .page-header>div:not(:first-child) button {
        flex: 1 !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Responsive date-filter-form stacking on mobile */
    #date-filter-form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    #date-filter-form>div {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    #date-filter-form>div input {
        flex: 1 !important;
        max-width: 180px !important;
    }

    #date-filter-form .ss-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* popup design  */
    .ss-modal-overlay {
        padding: 12px;
        align-items: center;
    }

    .ss-modal {
        width: 100% !important;
        max-width: 100% !important;

        max-height: calc(100vh - 24px);

        padding: 16px !important;

        border-radius: 18px !important;
    }

    .ss-modal-body {
        overflow-y: auto;
    }

    .ss-modal-footer {
        justify-content: center !important;
    }

    .ss-modal-footer .ss-btn {
        flex: 1 1 calc(50% - 6px);
    }
}

/* ------------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------------ */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-only {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in-only 0.4s ease forwards;
}

/* ------------------------------------------------------------------
   ADMIN SIDEBAR DRAWER (from AdminSidebar.jsx)
   ------------------------------------------------------------------ */
.ss-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    bottom: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(1, 44, 119, 0.08);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.05);
    z-index: 100;
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.ss-sidebar.open {
    left: 0;
}

/* Sidebar Backdrop overlay */
.ss-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 50, 79, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 95;
    transition: all 0.3s ease;
}

.ss-sidebar-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Trigger floating button */
.ss-sidebar-trigger {
    display: none !important;
}

.ss-sidebar-trigger:hover {
    background: linear-gradient(135deg, #0b1d3a, #163c9b) !important;
    box-shadow: 0 8px 24px rgba(1, 44, 119, 0.35);
}

/* Sidebar Header */
.ss-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ss-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ss-sidebar-logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.ss-sidebar-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #012c77 !important;
    letter-spacing: -0.5px;
}

.ss-sidebar-logo-text span {
    color: #FF6B00 !important;
}

.ss-sidebar-close {
    background: rgba(0, 0, 0, 0.03);
    border: none;
    color: #6B7280;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ss-sidebar-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Bhandar selector inside sidebar */
.ss-sidebar-bhandar {
    padding: 14px 16px;
}

.ss-sidebar-bhandar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #F7FBFF;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    color: #16324F;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ss-sidebar-bhandar-btn:hover {
    border-color: #2563EB;
    background: #fff;
}

.ss-sidebar-bhandar-dropdown {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ss-sidebar-bhandar-dropdown.open {
    display: flex;
}

.ss-sidebar-bhandar-option {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.15s;
}

.ss-sidebar-bhandar-option:hover {
    background: #F3F4F6;
    color: #111827;
}

.ss-sidebar-bhandar-option.selected {
    background: rgba(37, 99, 235, 0.08);
    color: #2563EB;
}

.ss-sidebar-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.04);
    margin: 0 16px;
}

/* Sidebar Navigation links */
.ss-sidebar-nav {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    min-height: 0;
}

.ss-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4B5563;
    text-decoration: none;
    transition: all 0.2s;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.ss-sidebar-link:hover {
    background: #EAF4FF;
    color: #012c77;
}

.ss-sidebar-link.active {
    background: rgba(255, 107, 0, 0.08);
    color: #FF6B00;
    border-left: 3px solid #FF6B00;
    padding-left: 11px;
}

.ss-sidebar-link svg {
    color: inherit;
    flex-shrink: 0;
}

/* Accordion group inside sidebar */
.ss-sidebar-group-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4B5563;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ss-sidebar-group-btn:hover {
    background: #EAF4FF;
    color: #012c77;
}

.ss-sidebar-group-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ss-sidebar-sub {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    margin-bottom: 4px;
    background: #F3F8FF;
    border-radius: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-left: 4px;
    margin-right: 4px;
    border-left: 3px solid #d1e3ff;
}

.ss-sidebar-sub.open {
    display: flex;
}

.ss-sidebar-sub-link {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.15s;
}

.ss-sidebar-sub-link:hover {
    background: #E0EDFF;
    color: #012c77;
}

.ss-sidebar-sub-link.active {
    color: #FF6B00;
    font-weight: 700;
    background: rgba(255, 107, 0, 0.04);
}

.ss-group-chevron {
    transition: transform 0.2s;
}

.ss-sidebar-group-btn.open .ss-group-chevron {
    transform: rotate(180deg);
}

.ss-sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
    text-align: center;
}

.ss-sidebar-footer p {
    margin: 0 0 2px;
    font-weight: 700;
    color: #4B5563;
}

/* Main Area Layout for logged-in user */
.ss-main {
    margin-left: 0;
    padding-top: 120px;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

/* ------------------------------------------------------------------
   MODAL COMPONENT (Vanilla fallback for add book size etc.)
   ------------------------------------------------------------------ */
.ss-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 50, 79, 0.40);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ss-modal-overlay.open {
    display: flex;
}

.ss-modal {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 64px rgba(10, 37, 64, 0.15);
    overflow: hidden;
    animation: fade-in-up 0.3s ease;
}

.ss-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ss-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #012c77;
}

.ss-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s;
}

.ss-modal-close:hover {
    color: #EF4444;
}

.ss-modal-body {
    padding: 24px;
}

/* ------------------------------------------------------------------
   CUSTOM SEARCH & PREMIUM FORM INPUT PILLS
   ------------------------------------------------------------------ */
.ss-advance-title-container {
    margin-top: 20px;
    margin-bottom: 24px;
}

.ss-advance-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #012c77;
}

.ss-advance-title .orange {
    color: #FF6B00;
}

/* Premium Navigation Active Bar Fix */
.ss-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 24px;
    border-radius: 9999px;
    background: #FF6B00;
    transition: width 0.3s ease;
}

/* Premium Language Filter Toggle Container (Unified Pill) */
.ss-lang-toggle-container {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 9999px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
    position: relative;
    z-index: 10;
}

/* Sliding active indicator backdrop */
.ss-lang-toggle-slide-bg {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: transparent;
    border-radius: 9999px;
    /* box-shadow: 0 4px 12px rgba(0, 182, 190, 0.3); */
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Shift active background to right when Hindi is selected */
.ss-lang-toggle-container.hin-active .ss-lang-toggle-slide-bg {
    transform: translateX(100%);
}

.ss-lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent !important;
    color: #00b6be;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 2;
    box-shadow: none !important;
}

.ss-lang-toggle-btn.active {
    color: #ffffff !important;
    background: #00b6be !important;
}

.ss-lang-toggle-btn.inactive {
    color: #00b6be !important;
    background: transparent !important;
}

.ss-lang-toggle-btn i {
    color: inherit !important;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-lang-toggle-btn.inactive:hover {
    color: #008f95 !important;
}

/* Floating Transliteration Suggestion Box */
.ss-suggestions-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(1, 44, 119, 0.12);
    padding: 10px 16px;
    display: none;
    /* Flex when active */
    flex-direction: row;
    /* Horizontal sleeping line */
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    z-index: 100;
    box-sizing: border-box;
    overflow-x: auto;
    /* Horizontal scroll if overflowing */
    overflow-y: hidden;
    white-space: nowrap;
    /* Prevent wrapping onto vertical lines */
    scrollbar-width: none;
    /* Firefox */
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    animation: ss-fade-in-up 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-suggestions-box::-webkit-scrollbar {
    display: none;
    /* Safari, Chrome, Opera */
}

@keyframes ss-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ss-suggestion-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(1, 44, 119, 0.05);
    border: 1px solid rgba(1, 44, 119, 0.04);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #012c77;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s ease;
}

.ss-suggestion-pill:hover {
    background: #00b6be;
    border-color: #00b6be;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 182, 190, 0.2);
}

/* Form inputs styling for inputs in all files following the pill card pattern */
.ss-input-pill-card {
    background: rgba(255, 255, 255, 0.48) !important;
    border: 1px solid rgba(1, 44, 119, 0.16) !important;
    border-radius: 14px !important;
    padding: 5px 16px 6px !important;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 42px !important;
    cursor: text;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04),
        inset 1px 0 0 rgba(255, 255, 255, 0.55),
        inset -1px 0 0 rgba(255, 255, 255, 0.30) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* dome top highlight */
.ss-input-pill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 45%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.65) 0%,
            rgba(255, 255, 255, 0.08) 100%);
    border-radius: 14px 14px 50% 50% / 14px 14px 18px 18px;
    pointer-events: none;
    z-index: 0;
}

/* bottom caustic glow */
.ss-input-pill-card::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.80), transparent);
    pointer-events: none;
    z-index: 0;
}

.ss-input-pill-card:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(1, 44, 119, 0.28) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.90),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
}

.ss-input-pill-card:focus-within {
    background: rgba(255, 255, 255, 0.80) !important;
    border-color: rgba(37, 99, 235, 0.68) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14),
        0 0 0 2.5px rgba(37, 99, 235, 0.10),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(37, 99, 235, 0.06) !important;
}

.ss-input-pill-label-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #012c77 !important;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.ss-input-pill-label-row i {
    font-size: 12px !important;
}

/* Custom color accents for icons inside fields just like the screenshot! */
.ss-input-pill-label-row i.icon-city {
    color: #00b6be;
}

.ss-input-pill-label-row i.icon-bhandar {
    color: #8B5CF6;
}

.ss-input-pill-label-row i.icon-title {
    color: #3B82F6;
}

.ss-input-pill-label-row i.icon-author {
    color: #10B981;
}

.ss-input-pill-label-row i.icon-editor {
    color: #F59E0B;
}

.ss-input-pill-label-row i.icon-publisher {
    color: #EC4899;
}

.ss-input-pill-label-row i.icon-lang {
    color: #06B6D4;
}

.ss-input-pill-label-row i.icon-subject {
    color: #14B8A6;
}

.ss-input-pill-label-row i.icon-details {
    color: #64748B;
}

.ss-input-pill-field {
    border: none !important;
    background: transparent !important;
    padding: 0 6px !important;
    margin: 0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #012c77 !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    height: 22px !important;
    line-height: 22px !important;
    position: relative;
    z-index: 1;
}

.ss-input-pill-field::placeholder {
    color: rgba(1, 44, 119, 0.55) !important;
    font-weight: 500 !important;
}

select.ss-input-pill-field {
    appearance: none !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23012c77' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center !important;
    background-size: 10px !important;
    padding-right: 20px !important;
    cursor: pointer !important;
}

select.ss-input-pill-field option {
    background-color: #ffffff !important;
    color: #012c77 !important;
    padding: 8px !important;
}

/* Spans for helper columns in Quick Search */
.ss-grid-col-6 {
    grid-column: span 6;
}

.ss-grid-col-2 {
    grid-column: span 2;
}

@media (max-width: 1399px) {
    .ss-grid-col-6 {
        grid-column: span 3;
    }

    .ss-grid-col-2 {
        grid-column: span 1;
    }
}

@media (max-width: 991px) {

    .ss-grid-col-6,
    .ss-grid-col-2 {
        grid-column: span 2 !important;
    }
}

@media (max-width: 575px) {

    .ss-grid-col-6,
    .ss-grid-col-2 {
        grid-column: span 1 !important;
    }
}

/* Actions Row styles */
.ss-search-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

.ss-action-pills-left {
    display: flex;
    gap: 12px;
}

/* Custom premium action buttons */
.ss-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.ss-search-btn:hover {
    opacity: 0.95;
}

.ss-search-btn.blue {
    background: #1565FF;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(21, 101, 255, 0.25);
}

.ss-search-btn.blue:hover {
    background: #0D47A1;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(21, 101, 255, 0.35);
}

.ss-search-btn.orange {
    background: #FF6B00;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.25);
}

.ss-search-btn.orange:hover {
    background: #E65A00;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
}

/* Search in Result Pill Box */
.ss-search-result-wrap {
    position: relative;
    width: 280px;
}

@media (max-width: 480px) {
    .ss-search-result-wrap {
        width: 100%;
    }
}

.ss-search-result-field {
    width: 100%;
    padding: 11px 44px 11px 20px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #0F172A;
    background: #ffffff;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.ss-search-result-field:focus {
    border-color: #1565FF;
    box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.08);
}

.ss-search-result-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 14px;
    pointer-events: none;
}

/* Result Placeholder Card with 3D Stacked Book */
.ss-results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(226, 232, 240, 0.8);
    border-radius: 20px;
}

.ss-stacked-book-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
}

.ss-results-placeholder-title {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #012c77;
    margin-top: 18px;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.ss-results-placeholder-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    color: #64748B;
    max-width: 480px;
    line-height: 1.5;
    font-weight: 500;
}

/* ==========================================================================
   HOMEPAGE HERO SECTION CLASSES (from Hero.jsx)
   ========================================================================== */
.ss-hero-container {
    width: 100%;
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .ss-hero-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

.ss-hero-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 1025px) {
    .ss-hero-row {
        flex-direction: row;
        gap: 64px;
    }
}

.ss-hero-text {
    flex: 1;
    width: 100%;
    max-width: 600px;
    text-align: center;
    z-index: 10;
    margin-top: 24px;
}

@media (min-width: 1025px) {
    .ss-hero-text {
        max-width: 560px;
        text-align: left;
        margin-top: 0;
    }
}

@media (min-width: 1280px) {
    .ss-hero-text {
        max-width: 620px;
    }
}

.ss-hero-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 640px) {
    .ss-hero-heading {
        font-size: 48px;
    }
}

@media (min-width: 1025px) {
    .ss-hero-heading {
        font-size: 52px;
    }
}

@media (min-width: 1280px) {
    .ss-hero-heading {
        font-size: 58px;
    }
}

.ss-hero-heading-navy {
    color: #012c77;
    display: block;
    padding-bottom: 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.ss-hero-heading-orange {
    background: linear-gradient(to right, #FF6B00, #FF9F1C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    padding-bottom: 4px;
}

.ss-hero-logo-col {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    margin-top: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .ss-hero-logo-col {
        width: 320px;
        height: 320px;
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (min-width: 1025px) {
    .ss-hero-logo-col {
        width: 380px;
        height: 380px;
    }
}

/* ==========================================================================
   HOMEPAGE FEATURE CARDS INNER ELEMENTS
   ========================================================================== */
.ss-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .ss-card-content {
        gap: 20px;
    }
}

.ss-card-icon-wrap {
    flex-shrink: 0;
    position: relative;
}

.ss-card-icon-glow {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.35;
    filter: blur(12px);
}

.ss-card-icon-circle {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

.ss-card-text-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ss-card-text-wrap .ss-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

@media (min-width: 640px) {
    .ss-card-text-wrap .ss-card-title {
        font-size: 21px;
    }
}

.ss-card-divider {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    border-radius: 9999px;
}

.ss-card-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.375;
    font-weight: 500;
    max-width: 200px;
    margin: 0;
}

@media (min-width: 640px) {
    .ss-card-desc {
        font-size: 13px;
    }
}

.ss-card-dot-texture {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image: radial-gradient(white 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    z-index: 2;
}

.ss-card-watermark-icon {
    position: absolute;
    right: -16px;
    bottom: -16px;
    opacity: 0.12;
    pointer-events: none;
    color: #ffffff;
    transform: rotate(-12deg);
    z-index: 2;
}

/* ==========================================================================
   PREMIUM FEATURE CARDS WITH SHINE & REFLECTION EFFECTS
   ========================================================================== */
.ss-feature-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 1240px;
    margin: 20px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .ss-feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1025px) {
    .ss-feature-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 30px auto 0;
    }
}

.ss-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 155px;
    text-decoration: none;
    color: #ffffff !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1;
}

@media (min-width: 640px) {
    .ss-feature-card {
        padding: 24px;
    }
}

/* Shine overlay */
.ss-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 25%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 30%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0.05) 70%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* 3D Glass Gloss overlay with a curved specular reflection line */
.ss-feature-card-glass {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 60%);
    z-index: 4;
    pointer-events: none;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -3px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;
}

/* Crisp curved gloss sheen cut overlay */
.ss-feature-card-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

/* Specific Card Gradients & Shadows */
.ss-card-quick {
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%), linear-gradient(160deg, #a8c8ff 0%, #6fa8ff 18%, #3b82f6 36%, #2563EB 55%, #1D4ED8 75%, #1e40af 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.1), 0 12px 28px -8px rgba(37, 99, 235, 0.50);
}

.ss-card-quick:hover {
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.1), 0 24px 48px -10px rgba(37, 99, 235, 0.70);
}

.ss-card-advance {
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%), linear-gradient(160deg, #ffe0a0 0%, #ffb347 18%, #ff8c00 36%, #FF8A00 55%, #e65100 75%, #bf3c00 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.1), 0 12px 28px -8px rgba(249, 115, 22, 0.50);
}

.ss-card-advance:hover {
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.1), 0 24px 48px -10px rgba(249, 115, 22, 0.70);
}

.ss-card-index {
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%), linear-gradient(160deg, #a0eaf0 0%, #4dd9e8 18%, #00bcd4 36%, #00ACC1 55%, #00838F 75%, #005f6b 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.1), 0 12px 28px -8px rgba(0, 172, 193, 0.50);
}

.ss-card-index:hover {
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.1), 0 24px 48px -10px rgba(0, 172, 193, 0.70);
}

/* Hover effects */
.ss-feature-card:hover {
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.5), inset -1px -1px 2px rgba(0, 0, 0, 0.15), 0 20px 40px -8px rgba(37, 99, 235, 0.45);
}

.ss-feature-card:hover::before {
    opacity: 1;
    animation: shine-sweep-anim 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.ss-feature-card:active {
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3), inset -1px -1px 2px rgba(0, 0, 0, 0.2), 0 8px 16px -4px rgba(37, 99, 235, 0.3);
}

.ss-feature-card-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-feature-card:hover .ss-feature-card-arrow {
    background-color: #f8fafc;
}

/* ==========================================================================
   HOMEPAGE VIEWPORT OPTIMIZATION & PREMIUM EFFECTS
   ========================================================================== */
@media (min-width: 1025px) {
    body.ss-home-body {
        overflow-y: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.ss-home-body .ss-page {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        padding-top: 120px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    body.ss-home-body .ss-page>div {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.ss-home-body .ss-page>div:first-of-type {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* ── Breathing animation keyframes (matching React framer-motion) ── */
@keyframes logo-breathe {

    0%,
    100% {
        transform: scale3d(1, 1, 1);
    }

    50% {
        transform: scale3d(1.03, 1.03, 1);
    }
}

@keyframes logo-float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

.ss-logo-orb-wrap {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 16px 0;
}

@media (max-width: 1024px) and (min-width: 641px) {
    .ss-logo-orb-wrap {
        width: 320px;
        height: 320px;
    }
}

.ss-logo-orb {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #F8FAFC, #DBEAFE);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 80px rgba(29, 78, 216, 0.35);
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logo-breathe 6s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
}

/* Faint inner ring */
.ss-logo-orb::before {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px solid rgba(191, 219, 254, 0.5);
    pointer-events: none;
    z-index: 1;
}

.ss-logo-orb img {
    position: relative;
    width: 330px;
    height: 330px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    z-index: 3;
    animation: logo-float 6s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
}

@media (max-width: 1024px) and (min-width: 641px) {
    .ss-logo-orb img {
        width: 280px;
        height: 280px;
    }
}

/* Remove the old glass and glow overlays — simplified to match React */
.ss-logo-orb-glass {
    display: none;
}

.ss-logo-glow-container {
    display: none;
}

.ss-logo-glow-1 {
    display: none;
}

.ss-logo-glow-2 {
    display: none;
}

/* Search Pages Desktop Viewport Sizing (Zero Scroll until active) */
@media (min-width: 1025px) {
    body.ss-search-body {
        overflow: hidden !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.ss-search-body .ss-page {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        padding-top: 90px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body.ss-search-body .ss-page>div {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Dynamic Release once results start feeding in */
    body.ss-search-body.results-active {
        overflow: auto !important;
        height: auto !important;
    }

    body.ss-search-body.results-active .ss-page {
        overflow: visible !important;
        height: auto !important;
        display: block !important;
    }
}


/* ==========================================================================
   QUICK SEARCH PILL BAR — Properly sized search bar
   ========================================================================== */
.qs-pill-wrap {
    position: relative;
    z-index: 20;
    margin-bottom: 28px;
    display: block;
    width: 100%;
}

.qs-pill-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 12px;
    padding: 8px 8px 8px 10px;
    border: 1.5px solid #E2E8F0;
    width: 100%;
    min-height: 56px;
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    box-sizing: border-box;
}

.qs-pill-gloss {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}

.qs-search-icon-wrap {
    position: relative;
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qs-search-input {
    position: relative;
    z-index: 10;
    flex: 1 1 0%;
    border: none !important;
    outline: none !important;
    padding: 0 20px !important;
    font-size: 15px;
    font-weight: 700;
    color: #012c77 !important;
    background: transparent !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-width: 0;
    width: 100%;
    height: 44px;
}

.qs-search-input::placeholder {
    color: rgba(1, 44, 119, 0.55) !important;
    font-weight: 500 !important;
}

.qs-divider {
    position: relative;
    z-index: 10;
    width: 1px;
    height: 24px;
    background: #E2E8F0;
    margin: 0 8px;
    flex-shrink: 0;
}

.qs-city-wrap {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.qs-city-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.qs-city-btn:hover {
    background: #F8FAFC;
}

.qs-city-label {
    color: #0A2540;
    font-weight: 800;
    font-size: 15px !important;
    font-family: 'Outfit', sans-serif;
}

.qs-city-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    width: 200px;
    max-height: 280px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px !important;
    border: 1px solid rgba(1, 44, 119, 0.12) !important;
    box-shadow: 0 12px 32px rgba(1, 44, 119, 0.15) !important;
    padding: 0 !important;
    flex-direction: column;
    z-index: 99999 !important;
}

.city-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 44, 119, 0.05) !important;
    border-radius: 12px !important;
    margin: 10px 12px 6px !important;
    padding: 6px 12px !important;
    border: 1px solid rgba(1, 44, 119, 0.08) !important;
    height: 38px !important;
    box-sizing: border-box !important;
}

.city-search-wrap i {
    color: #9CA3AF;
    font-size: 13px;
}

.city-search-wrap input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 14px !important;
    color: #012c77 !important;
    font-family: inherit !important;
    width: 100% !important;
    font-weight: 700 !important;
    padding: 0 4px !important;
    line-height: 24px !important;
    height: 24px !important;
}

.city-search-wrap input::placeholder {
    color: rgba(1, 44, 119, 0.45) !important;
    font-weight: 500 !important;
}

.city-options-list {
    overflow-y: auto;
    flex: 1;
    padding: 4px 8px 8px !important;
}

.city-options-list::-webkit-scrollbar {
    width: 6px;
}

.city-options-list::-webkit-scrollbar-thumb {
    background: rgba(1, 44, 119, 0.15);
    border-radius: 4px;
}

.city-option {
    width: 100% !important;
    text-align: left !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #012c77 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    border-radius: 12px !important;
    margin-bottom: 3px !important;
    box-shadow: none !important;
}

.city-option:hover {
    background: rgba(0, 182, 190, 0.08) !important;
    color: #00b6be !important;
}

.city-option.selected {
    background: rgba(0, 182, 190, 0.12) !important;
    color: #00b6be !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ========================================================================== */

/* ── Tablet (max-width: 768px) ── */
@media (max-width: 768px) {

    /* Page & Container */
    .ss-page {
        padding-top: 100px;
    }

    .ss-container {
        padding: 0 16px 60px;
    }

    .bh-container,
    .adm-container {
        padding: 20px 16px 60px;
    }

    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-actions {
        width: 100%;
    }

    /* Stat cards */
    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    /* Cards */
    .ss-card {
        border-radius: 18px;
        padding: 16px;
    }

    /* Tables — horizontally scrollable */
    .ss-table-wrap {
        margin: 0 -16px;
        padding: 0 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ss-table {
        min-width: 600px;
    }

    .ss-table thead th,
    .ss-table tbody td {
        padding: 10px 14px;
        font-size: 12px;
    }

    /* Quick action grid */
    .qa-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .qa-btn {
        padding: 12px;
        font-size: 12px;
        gap: 8px;
    }

    /* Buttons */
    .btn {
        padding: 8px 18px;
        font-size: 12.5px;
    }

    /* Footer */
    .ss-footer {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 8px;
    }

    /* Donut charts */
    .ss-donut-container {
        flex-direction: column;
        gap: 20px;
    }

    .ss-donut-svg-wrap {
        width: 140px;
        height: 140px;
    }

    /* Filter bar */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-input {
        width: 100%;
    }

    /* Auth card */
    .auth-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    /* Navbar */
    .ss-navbar {
        height: 60px;
        padding: 0 16px;
    }

    .ss-navbar-wrap {
        padding: 10px 12px;
    }

    .ss-logo img {
        height: 36px;
    }

    .ss-logo-text {
        font-size: 19px;
    }

    /* Bhandar operator navbar */
    .bh-navbar {
        height: 56px;
        padding: 0 14px;
    }

    .bh-logo img {
        height: 30px;
    }

    .bh-logo-text {
        font-size: 15px;
    }

    .bh-page {
        min-height: calc(100vh - 56px);
    }

    /* Search actions */
    .ss-search-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ss-action-pills-left {
        flex-direction: column;
        gap: 8px;
    }

    .ss-search-btn {
        width: 100%;
        justify-content: center;
    }

    /* Modals */
    .ss-modal {
        max-width: 95vw;
        border-radius: 20px;
    }

    .ss-modal-header {
        padding: 16px 18px;
    }

    .ss-modal-body {
        padding: 18px;
    }
}

/* ── Mobile Small (max-width: 576px) ── */
@media (max-width: 576px) {

    /* Quick search pill bar → stacks vertically */
    .qs-pill-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
        gap: 8px;
        min-height: auto;
    }

    .qs-pill-gloss {
        border-radius: 20px 20px 0 0;
    }

    .qs-search-icon-wrap {
        display: none;
    }

    .qs-search-input {
        width: 100%;
        min-width: 0;
        padding: 10px 14px;
        font-size: 14px;
        height: 44px;
        background: rgba(248, 250, 252, 0.8);
        border-radius: 12px;
    }

    .qs-divider {
        display: none;
    }

    .qs-city-wrap {
        width: 100%;
    }

    .qs-city-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        background: rgba(248, 250, 252, 0.8);
        border-radius: 12px;
    }

    .qs-city-dropdown {
        left: 0;
        right: 0;
        width: auto;
    }

    /* Page padding */
    .ss-page {
        padding-top: 96px;
    }

    .ss-container,
    .bh-container,
    .adm-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Page title */
    .page-title {
        font-size: 20px;
    }

    /* Stat grid */
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        gap: 12px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 10px;
    }

    .stat-value {
        font-size: 18px;
    }

    /* Quick actions */
    .qa-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Cards */
    .ss-card {
        border-radius: 16px;
        padding: 14px;
        margin-bottom: 14px;
    }

    .ss-card-head {
        margin-bottom: 12px;
    }

    /* Tables */
    .ss-table thead th,
    .ss-table tbody td {
        padding: 8px 10px;
        font-size: 11px;
    }

    /* Forms */
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Results placeholder */
    .ss-results-placeholder {
        padding: 40px 16px;
        border-radius: 16px;
    }

    .ss-results-placeholder-title {
        font-size: 15px;
    }

    .ss-results-placeholder-desc {
        font-size: 12px;
    }

    /* Language toggle */
    .ss-lang-toggle-container {
        margin-bottom: 16px;
    }

    .ss-lang-toggle-btn {
        padding: 7px 16px;
        font-size: 12px;
        gap: 6px;
    }

    /* Buttons */
    .btn {
        padding: 7px 16px;
        font-size: 12px;
    }

    .btn.lg {
        padding: 10px 24px;
        font-size: 14px;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 11px;
        gap: 4px;
        flex-wrap: wrap;
    }

    /* Badges */
    .badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    /* Footer */
    .ss-footer {
        padding: 14px 12px;
        font-size: 11px;
    }

    .ss-footer-logo {
        width: 24px;
        height: 24px;
    }

    /* Navbar */
    .ss-navbar {
        height: 54px;
        padding: 0 12px;
        border-radius: 12px;
    }

    .ss-navbar-wrap {
        padding: 8px 8px;
    }

    .ss-logo img {
        height: 32px;
    }

    .ss-logo-text {
        font-size: 17px;
    }

    .ss-mobile-menu {
        top: calc(54px + 8px);
        left: 8px;
        right: 8px;
        border-radius: 14px;
    }

    /* Bhandar navbar */
    .bh-navbar {
        height: 50px;
        padding: 0 12px;
    }

    .bh-logo img {
        height: 26px;
    }

    .bh-logo-text {
        font-size: 14px;
    }

    .bh-logout {
        padding: 5px 10px;
        font-size: 11px;
    }

    .bh-user-text {
        display: none;
    }

    /* Admin navbar */
    .adm-navbar {
        height: 50px;
        padding: 0 12px;
    }

    .adm-logo img {
        height: 28px;
    }

    .adm-logo-text {
        font-size: 14px;
    }

    .adm-nav-right {
        font-size: 11px;
        gap: 8px;
    }

    /* Sidebar */
    .ss-sidebar {
        width: 260px;
        left: -260px;
    }

    .ss-sidebar-trigger {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }

    /* Advance search grid */
    .ss-search-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .ss-grid-col-6,
    .ss-grid-col-2 {
        grid-column: span 1 !important;
    }

    .ss-input-pill-card {
        min-height: 54px;
        padding: 8px 14px;
    }

    /* Logo orb on homepage */
    .ss-logo-orb-wrap {
        width: 220px;
        height: 220px;
    }

    .ss-logo-orb img {
        width: 180px;
        height: 180px;
    }

    /* DataTables overrides for mobile */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left !important;
        margin-bottom: 8px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dt-info,
    .dt-info,
    .dataTables_wrapper .dataTables_paginate,
    .dt-paging {
        float: none !important;
        text-align: center !important;
        margin-top: 8px;
    }

    .dt-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .dt-buttons button {
        font-size: 11px !important;
        padding: 5px 12px !important;
    }

    /* Search result pill wrap */
    .ss-search-result-wrap {
        width: 100%;
    }

    /* Homepage body override */
    body.ss-home-body {
        overflow: auto !important;
        height: auto !important;
    }

    body.ss-home-body .ss-page {
        overflow: visible !important;
        display: block !important;
        padding-top: 96px !important;
    }

    /* Search body override */
    body.ss-search-body {
        overflow: auto !important;
        height: auto !important;
    }

    body.ss-search-body .ss-page {
        overflow: visible !important;
        display: block !important;
        padding-top: 96px !important;
    }
}

/* ── Extra small (max-width: 380px) ── */
@media (max-width: 380px) {
    .ss-logo-text {
        font-size: 15px;
    }

    .ss-navbar {
        height: 50px;
    }

    .ss-logo img {
        height: 28px;
    }

    .page-title {
        font-size: 18px;
    }

    .stat-label {
        font-size: 8.5px;
    }

    .stat-value {
        font-size: 16px;
    }

    .ss-card {
        padding: 12px;
        border-radius: 18px !important;
    }
}

/* ------------------------------------------------------------------
   FOOTER (public pages)
   ------------------------------------------------------------------ */
.ss-footer {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ss-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ss-footer-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ss-footer-copy {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 600;
    margin: 0;
}

/* Utility colour helpers used in footer and headings */
.navy {
    color: #012c77;
}

.orange {
    color: #FF6B00;
}

/* ==========================================================================
   GLOBAL PREMIUM ROUNDNESS & HIGH-CURVE OVERRIDES
   ========================================================================== */
.ss-card,
.card,
.module,
.ss-results-placeholder,
.ss-stacked-book-icon {
    border-radius: 24px !important;
}

/* Note: border-radius on tables requires wrapper to have overflow:hidden — tables themselves must not */
.dataTables_wrapper {
    border-radius: 20px !important;
    overflow: hidden !important;
}

.ss-table-wrap,
.lg-table-wrap {
    border-radius: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
select,
textarea,
.qs-search-input,
.ss-input,
.ss-select {
    border-radius: 12px !important;
}

button,
.button,
input[type="submit"],
input[type="button"],
.ss-btn,
.qs-city-btn,
.qs-city-dropdown button {
    border-radius: 12px !important;
}

.qs-city-dropdown,
.ss-sidebar,
.ss-modal,
.ss-suggestions-box,
.ss-navbar,
#mobMenu {
    border-radius: 24px !important;
}

table thead th:first-child,
table thead tr:first-child th:first-child {
    border-top-left-radius: 20px !important;
}

table thead th:last-child,
table thead tr:first-child th:last-child {
    border-top-right-radius: 20px !important;
}

table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 20px !important;
}

table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 20px !important;
}





/* ==========================================================================
   MOBILE RESPONSIVE � Complete Mobile Optimisation
   ========================================================================== */

/* -- 768px TABLET / PHONE ------------------------------------------- */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    /* Disable expensive floating blur animations on mobile viewports for performance */
    .animate-float-slow,
    .animate-float-slower {
        animation: none !important;
    }

    /* NAVBAR */
    .ss-navbar {
        height: 60px;
        padding: 0 16px;
        border-radius: 12px;
    }

    .ss-nav-links {
        display: none;
    }

    .ss-hamburger {
        display: flex;
    }

    .ss-navbar-right .ss-bhandar-btn {
        display: none;
    }

    .ss-logo-text {
        font-size: 18px;
    }

    .ss-logo img {
        height: 36px;
    }

    .ss-mobile-menu {
        left: 8px;
        right: 8px;
        border-radius: 14px;
    }

    /* PAGE */
    .ss-page,
    .ss-main {
        padding-top: 90px;
    }

    .ss-container {
        padding: 0 14px 60px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-subtitle {
        font-size: 10px;
    }

    /* HERO */
    .ss-hero-container {
        padding: 0 16px;
    }

    .ss-hero-row {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 16px;
    }

    .ss-hero-text {
        order: 2;
        text-align: center;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .ss-hero-logo-col,
    .ss-logo-orb-wrap {
        order: 1;
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto !important;
    }

    .ss-logo-orb img {
        width: 170px !important;
        height: 170px !important;
    }

    .ss-hero-heading {
        font-size: clamp(26px, 7vw, 36px);
    }

    /* FEATURE CARDS */
    .ss-feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px;
    }

    .ss-feature-card {
        padding: 16px 18px;
        border-radius: 18px;
    }

    /* STAT GRID */
    .stat-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* DASHBOARD */
    .ss-dashboard-charts-row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .ss-bottom-row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* TABLES */
    .ss-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ss-table {
        font-size: 12px;
    }

    .ss-table thead th {
        padding: 9px 10px;
        font-size: 10.5px;
        white-space: nowrap;
    }

    .ss-table tbody td {
        padding: 9px 10px;
        white-space: nowrap;
    }

    /* CARDS */
    .ss-card {
        border-radius: 16px;
        padding: 16px;
    }

    .ss-card-head {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* FORMS � 16px prevents iOS auto-zoom */
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr !important;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        padding: 11px 14px;
        border-radius: 10px;
    }

    .form-input-wrap .form-input {
        padding-left: 38px;
        font-size: 16px;
    }

    .form-label {
        font-size: 9px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    /* AUTH */
    .auth-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    /* BUTTONS */
    .btn {
        font-size: 12.5px;
        padding: 8px 18px;
    }

    .btn.sm {
        font-size: 11.5px;
        padding: 6px 12px;
    }

    /* SIDEBAR TRIGGER */
    .ss-sidebar-trigger {
        bottom: 20px;
        left: 16px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .ss-sidebar {
        width: 280px;
    }

    /* SEARCH PAGES */
    .ss-search-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .ss-search-input-wrap input,
    .ss-search-input-wrap select {
        font-size: 16px;
    }

    /* FOOTER */
    .ss-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 20px;
        gap: 8px;
    }

    .ss-footer-brand {
        justify-content: center;
    }

    .ss-footer-copy {
        font-size: 11px;
    }

    /* BOOKS */
    .tbl-actions {
        flex-wrap: wrap;
        gap: 4px;
    }

    .tbl-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .size-circle {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .book-num-pill {
        font-size: 10px;
        padding: 2px 8px;
    }

    /* ISSUE ADD */
    .issue-tbl thead th,
    .mem-tbl thead th {
        padding: 8px 10px;
        font-size: 11px;
    }

    .issue-tbl tbody td,
    .mem-tbl tbody td {
        padding: 8px 10px;
    }

    .issue-action-btns {
        gap: 5px;
    }

    .ib-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .mem-search-input {
        max-width: 100%;
        width: 100%;
    }

    /* MODAL */
    .ss-modal {
        width: calc(100vw - 32px);
        margin: 0 16px;
        padding: 20px;
        border-radius: 18px;
    }

    /* DATATABLES */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: left;
        margin-bottom: 8px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }
}

/* -- 480px SMALL PHONE ---------------------------------------------- */
@media (max-width: 480px) {
    .ss-navbar {
        border-radius: 10px;
        height: 56px;
    }

    .ss-logo-text {
        font-size: 16px;
    }

    .ss-logo img {
        height: 30px;
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 10px 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .ss-hero-logo-col,
    .ss-logo-orb-wrap {
        width: 160px !important;
        height: 160px !important;
    }

    .ss-logo-orb img {
        width: 140px !important;
        height: 140px !important;
    }

    .ss-hero-heading {
        font-size: clamp(22px, 6vw, 28px);
    }

    .ss-search-grid {
        grid-template-columns: 1fr !important;
    }

    .page-title {
        font-size: 20px;
    }

    .ss-card {
        padding: 12px !important;
        border-radius: 14px;
    }

    .auth-card {
        padding: 20px 14px;
    }

    .ss-footer {
        padding: 14px;
    }

    .ss-sidebar {
        width: 260px;
    }

    .ss-sidebar-trigger {
        width: 44px;
        height: 44px;
        bottom: 16px;
        left: 12px;
    }

    .ib-btn {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
    }
}

/* -- TOUCH TARGETS -------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {

    .form-input,
    .form-select,
    .form-textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .btn,
    .ib-btn,
    .tbl-btn {
        min-height: 40px;
    }

    .ss-nav-link,
    .ss-mobile-link {
        padding: 14px 16px;
        min-height: 44px;
    }

    .ss-sidebar-link {
        min-height: 44px;
    }

    .ss-feature-card:hover {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }
}

/* -- Status Badges for Books table -- */
.badge-available {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-size: 11.5px;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.badge-issued {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.10);
    color: #DC2626;
    font-size: 11.5px;
    font-weight: 800;
    border: 1px solid rgba(239, 68, 68, 0.20);
    white-space: nowrap;
}

/* -- Mobile: hero flex-wrap override -- */
@media (max-width: 860px) {
    .ss-hero-row-inline {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .ss-hero-row-inline>div:first-child {
        order: 2;
        text-align: center;
        flex: 1 1 100% !important;
    }

    .ss-hero-row-inline>div:last-child {
        order: 1;
        width: 200px !important;
        height: 200px !important;
    }

    .ss-hero-row-inline>div:last-child img {
        width: 170px !important;
        height: 170px !important;
    }
}

/* -- Expandable Row (Quick Search + Advance Search) -- */
.qs-expand-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 107, 0, 0.25);
    background: rgba(255, 107, 0, 0.06);
    color: #FF6B00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.25s ease;
    outline: none;
}

.qs-expand-btn:hover {
    background: #FF6B00;
    color: #fff;
    border-color: #FF6B00;
}

.qs-expand-btn.open {
    background: #FF6B00;
    color: #fff;
    border-color: #FF6B00;
    transform: rotate(45deg);
}

.qs-main-row:hover td {
    background: rgba(29, 78, 216, 0.03);
}

.qs-main-row.expanded td {
    background: rgba(29, 78, 216, 0.05);
}

.qs-detail-row {
    display: none;
}

.qs-detail-row.open {
    display: table-row;
}

.qs-detail-row td {
    padding: 0 !important;
}

.qs-detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 20px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.03), rgba(0, 182, 190, 0.03));
    border-bottom: 2px solid rgba(29, 78, 216, 0.10);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.qs-detail-row.open .qs-detail-panel {
    max-height: 600px;
    padding: 24px 20px;
}

.qs-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px 20px;
}

.qs-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qs-detail-label {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9CA3AF;
    font-family: 'Outfit', sans-serif;
}

.qs-detail-value {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 768px) {
    .qs-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
    }

    .qs-expand-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}


/* ==========================================================================
   PREMIUM UNIFIED DATATABLE CONTROLS (Vibrant, matching Home / Quick Search)
   ========================================================================== */
.dataTables_wrapper .dataTables_length select,
.dt-length select {
    border: 1.5px solid #CBD5E1 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #0F172A !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 4px rgba(10, 37, 64, 0.02) !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 8px center !important;
    background-repeat: no-repeat !important;
    background-size: 18px 18px !important;
    padding-right: 28px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.dataTables_wrapper .dataTables_length select:hover,
.dt-length select:hover {
    border-color: #94A3B8 !important;
}

.dataTables_wrapper .dataTables_length select:focus,
.dt-length select:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
    background-color: #ffffff !important;
}

.dataTables_wrapper .dataTables_filter input,
.dt-search input {
    border: 1.5px solid #CBD5E1 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #0F172A !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 7px 16px 7px 34px !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(10, 37, 64, 0.02) !important;
    width: 200px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") !important;
    background-position: left 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dt-search input:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
    width: 250px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") !important;
    background-position: left 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
}

/* Premium Unified DataTable Action Buttons (Copy, Excel, PDF, Print, Colvis) */
.dt-buttons .dt-button,
.dt-buttons button {
    background: rgba(37, 99, 235, 0.06) !important;
    color: #2563EB !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    margin-right: 6px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(10, 37, 64, 0.02) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dt-buttons .dt-button:hover,
.dt-buttons button:hover {
    background: #2563EB !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    border-color: #2563EB !important;
}


/* ==========================================================================
   PREMIUM DATATABLE PAGINATION & CONTROL ALIGNMENT
   ========================================================================== */

/* Label text styles */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dt-length label,
.dt-search label {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* Side-by-side alignment on desktop */
@media (min-width: 641px) {
    .dataTables_wrapper::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dt-length {
        float: left !important;
        margin-bottom: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .dataTables_wrapper .dataTables_filter,
    .dt-search {
        float: right !important;
        margin-bottom: 20px !important;
        margin-right: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dt-info,
    .dt-info {
        float: left !important;
        margin-top: 24px !important;
        margin-bottom: 10px !important;
        font-family: 'Plus Jakarta Sans', sans-serif !important;
        font-size: 13.5px !important;
        color: #6B7280 !important;
        font-weight: 600 !important;
    }

    .dataTables_wrapper .dataTables_paginate,
    .dt-paging {
        float: right !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
}

/* Stacking and centering on mobile */
@media (max-width: 640px) {
    .dataTables_wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dt-length,
    .dt-search,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dt-info,
    .dt-info,
    .dataTables_wrapper .dataTables_paginate,
    .dt-paging {
        float: none !important;
        text-align: center !important;
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
    }
}

/* Pagination container */
.dataTables_wrapper .dataTables_paginate,
.dt-paging {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Individual page buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dt-paging .dt-paging-button {
    background: rgba(37, 99, 235, 0.05) !important;
    color: #1E3A8A !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(10, 37, 64, 0.02) !important;
    margin: 0 2px !important;
}

/* Hover state for page buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dt-paging .dt-paging-button:hover {
    background: #2563EB !important;
    color: #ffffff !important;
    border-color: #2563EB !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

/* Current active page button */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dt-paging .dt-paging-button.current {
    background: linear-gradient(135deg, #1D4ED8, #00b6be) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25) !important;
    cursor: default !important;
}

/* Override hover for active page */
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dt-paging .dt-paging-button.current:hover {
    background: linear-gradient(135deg, #1D4ED8, #00b6be) !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25) !important;
}

/* Disabled state */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dt-paging .dt-paging-button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dt-paging .dt-paging-button.disabled:hover {
    background: rgba(241, 245, 249, 0.5) !important;
    color: #94A3B8 !important;
    border-color: #E2E8F0 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   PRINT STYLESHEET (Clean A4 report printing layout)
   ========================================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px !important;
    }

    /* Hide interactive navigation and sidebar UI controls */
    .ss-navbar-wrap,
    .ss-sidebar,
    .ss-sidebar-trigger,
    .ss-sidebar-backdrop,
    .page-actions,
    .dt-buttons,
    .dataTables_length,
    .dt-length,
    .dataTables_filter,
    .dt-search,
    .dataTables_paginate,
    .dt-paging,
    .ss-footer,
    .ss-mobile-menu,
    .ss-glow-blob,
    button,
    .btn,
    .tbl-actions {
        display: none !important;
    }

    /* Full-bleed print area alignment */
    .ss-main {
        padding-top: 0 !important;
        margin: 0 !important;
    }

    .ss-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .ss-card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }

    .ss-card-head {
        margin-bottom: 12px !important;
    }

    .ss-card-title {
        color: #000000 !important;
        font-size: 16px !important;
    }

    .ss-card-icon {
        display: none !important;
    }

    /* Grid table border outline and clean formatting */
    .ss-table {
        border: 1px solid #CBD5E1 !important;
        font-size: 11px !important;
    }

    .ss-table thead tr {
        background: #F1F5F9 !important;
        border-bottom: 2px solid #94A3B8 !important;
    }

    .ss-table thead th {
        color: #0F172A !important;
        font-weight: 700 !important;
        background: #F1F5F9 !important;
        padding: 8px 12px !important;
    }

    .ss-table tbody tr {
        border-bottom: 1px solid #E2E8F0 !important;
        page-break-inside: avoid !important;
    }

    .ss-table tbody td {
        color: #0F172A !important;
        padding: 8px 12px !important;
    }

    /* Badges formatting for raw paper printouts */
    .badge {
        border: 1px solid #94A3B8 !important;
        background: transparent !important;
        color: #0F172A !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
    }

    .ss-table-size-badge {
        border: 1px solid #94A3B8 !important;
        background: transparent !important;
        color: #0F172A !important;
        border-radius: 4px !important;
        padding: 2px 6px !important;
        min-width: unset !important;
        font-size: 9px !important;
    }


}

.book-cover {
    width: 100px;
    height: 140px;
    background: linear-gradient(145deg, #012c77 0%, #1D4ED8 50%, #7C3AED 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 32px rgba(1, 44, 119, 0.30), 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 14px 0 0 14px;
}

.book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 14px;
}

.book-cover i {
    color: rgba(255, 255, 255, 0.95);
    font-size: 42px;
    position: relative;
    z-index: 1;
}

/* ── Redesigned Expanded Detail Row Panel ── */
.qs-detail-panel,
.lg-detail-panel {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.detail-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #012C77 0%, #1E40AF 100%);
    color: white;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 13.5px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 20px rgba(1, 44, 119, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.detail-nav-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    padding: 4px 10px;
    border-radius: 8px;
}

.detail-nav-bar span:hover:not(.detail-index) {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-0.5px);
}

.detail-nav-bar .detail-index {
    cursor: default;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.detail-main-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 28px;
    background-color: rgba(255, 255, 255, 0.45) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='none'%3E%3Cpath fill='%232563EB' fill-opacity='0.06' d='M0,0 C360,180 720,60 1080,180 C1260,240 1380,180 1440,150 L1440,0 L0,0 Z'/%3E%3Cpath fill='%2300B6BE' fill-opacity='0.05' d='M0,450 C240,420 540,540 840,460 C1140,380 1320,520 1440,480 L1440,600 L0,600 Z'/%3E%3C/svg%3E") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-top: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.detail-image-sec {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
    align-self: center;
    position: relative;
    padding: 0 8px;
}

/* Side navigation arrows beside the book image */
.detail-nav-side-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #012c77;
    border: 1.5px solid #012c77;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(1, 44, 119, 0.25);
}

.detail-nav-side-arrow:hover {
    /* No hover effect */
}

.detail-nav-side-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.detail-image-card {
    width: 160px;
    max-width: 160px;
    aspect-ratio: 3/4;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(1, 44, 119, 0.10), 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.detail-image-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to bottom, #012c77, #00b6be);
    z-index: 2;
    border-radius: 16px 0 0 16px;
}

.detail-image-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.detail-image-card i.main-book-icon {
    font-size: 72px;
    color: #3B82F6;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    position: relative;
    z-index: 1;
}

.detail-image-card .image-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 3;
}

.detail-image-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #007AFF;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    z-index: 10;
    font-size: 11px;
    transition: background 0.2s, transform 0.2s;
}

.detail-image-arrow:hover {
    background: #0062CC;
    transform: translateY(-50%) scale(1.08);
}

.detail-image-arrow.arrow-left {
    left: -15px;
}

.detail-image-arrow.arrow-right {
    right: -15px;
}

.detail-content-sec {
    flex: 1;
    width: 100%;
}

.detail-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #012c77;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.detail-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 32px;
    height: 3px;
    background: #FF6B00;
    border-radius: 1.5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 1300px) {
    .detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detail-tile {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #2563EB;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12), 0 2px 10px rgba(1, 44, 119, 0.04);
}

.detail-tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    font-size: 14px;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

.detail-tile:hover .detail-tile-icon {
    background: #2563EB;
    color: white;
}

.detail-tile-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.detail-tile-label {
    font-size: 8.5px;
    font-weight: 800;
    color: #94A3B8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.detail-tile-value {
    font-size: 12px;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Teal Circle Next Button */
.detail-teal-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00B6BE;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 182, 190, 0.3);
    align-self: center;
    justify-self: center;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
}

.detail-teal-next:hover {
    background: #009EA6;
    transform: scale(1.08);
}

/* Bhandar Availability Table */
.detail-bhandar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin-top: 36px;
    border-radius: 12px;
    overflow: visible;
    border: aqua;
    box-shadow: none;
}

.detail-bhandar-table th,
.detail-bhandar-table td {
    padding: 20px 36px !important;
    text-align: left;
    font-size: 13px;
}

.detail-bhandar-table thead,
.detail-bhandar-table thead tr {
    background: linear-gradient(to right, #012c77 0%, #1D4ED8 45%, #00B6BE 100%) !important;
}

.detail-bhandar-table thead tr th:first-child {
    border-radius: 8px 0 0 8px;
}

.detail-bhandar-table thead tr th:last-child {
    border-radius: 0 8px 8px 0;
}

.detail-bhandar-table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: white !important;
    background: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.detail-bhandar-table th:last-child {
    border-right: none !important;
}

/* Remove old separate column color classes (kept for compatibility) */
.detail-bhandar-table th.col-blue-dark,
.detail-bhandar-table th.col-blue-light {
    background: transparent !important;
}

.detail-bhandar-table td {
    background-color: white !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-left: none !important;
    border-right: none !important;
}

.detail-bhandar-table tbody tr td:first-child {
    border-left: 1px solid #E2E8F0 !important;
    border-radius: 8px 0 0 8px;
}

.detail-bhandar-table tbody tr td:last-child {
    border-right: 1px solid #E2E8F0 !important;
    border-radius: 0 8px 8px 0;
}

.detail-bhandar-table tbody tr {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.detail-bhandar-table tbody tr:hover td {
    background-color: #EFF6FF !important;
}

/* Contact Number Badge Styling */
.contact-number {
    color: #1D4ED8 !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.contact-phone-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FCE7F3;
    /* Soft Pink */
    color: #DB2777;
    /* Deep Pink */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* ==========================================================================
   UNIFIED DESIGN SYSTEM (BUTTONS, DROPDOWNS, SEARCH BARS, MODALS)
   ========================================================================== */

/* 1. Unified Buttons */
.ss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(1, 44, 119, 0.08);
    color: #ffffff;
}

.ss-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
    border-radius: inherit;
}

.ss-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 44, 119, 0.16);
}

.ss-btn:active {
    transform: translateY(0);
}

.ss-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Three Colors for Buttons */
.ss-btn-navy,
.ss-btn-blue {
    background: linear-gradient(135deg, #3374F0 0%, #1e5ad4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(51, 116, 240, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.ss-btn-navy:hover,
.ss-btn-blue:hover {
    background: linear-gradient(135deg, #1e5ad4 0%, #174ab2 100%) !important;
}

.ss-btn-teal {
    background: linear-gradient(135deg, #00b6be 0%, #00939a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 182, 190, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.ss-btn-teal:hover {
    background: linear-gradient(135deg, #009ea6 0%, #007c82 100%) !important;
}

.ss-btn-orange {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8F3D 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.ss-btn-orange:hover {
    background: linear-gradient(135deg, #e05e00 0%, #e67d30 100%) !important;
}

/* 2. Unified Select / Dropdowns */
.ss-select,
.form-select {
    width: 100%;
    height: 42px;
    padding: 0 38px 0 16px;
    border: 1px solid rgba(1, 44, 119, 0.16) !important;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #012c77 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    outline: none;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04) !important;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23012c77' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 9px !important;
}

.ss-select:hover,
.form-select:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(1, 44, 119, 0.28) !important;
}

.ss-select:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.68) !important;
    background: rgba(255, 255, 255, 0.80) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14),
        0 0 0 2.5px rgba(37, 99, 235, 0.10) !important;
}

/* 3. Unified Inputs / Search Bars */
.ss-search-bar,
.form-input {
    width: 100%;
    height: 42px;
    padding: 0 20px;
    line-height: 40px !important;
    border: 1px solid rgba(1, 44, 119, 0.16) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #012c77 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    outline: none;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(1, 44, 119, 0.16) !important;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #012c77 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    outline: none;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ss-search-bar:hover,
.form-input:hover,
.form-textarea:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(1, 44, 119, 0.28) !important;
}

.ss-search-bar:focus,
.form-input:focus,
.form-textarea:focus {
    border-color: rgba(37, 99, 235, 0.68) !important;
    background: rgba(255, 255, 255, 0.80) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14),
        0 0 0 2.5px rgba(37, 99, 235, 0.10) !important;
}

/* 4. Unified Dialog Boxes (Modals) */
.ss-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 44, 119, 0.22) !important;
    backdrop-filter: saturate(180%) blur(12px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ss-modal-overlay.open {
    display: flex !important;
    opacity: 1;
}

.ss-modal {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: saturate(200%) blur(40px) !important;
    -webkit-backdrop-filter: saturate(200%) blur(40px) !important;
    border: 1px solid rgba(255, 255, 255, 0.70) !important;
    border-top: 4px solid #FF6B00 !important;
    /* Brand orange top bar */
    border-radius: 24px !important;
    box-shadow: 0 24px 64px rgba(1, 44, 119, 0.16), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    width: 90% !important;
    max-width: 550px !important;

    display: flex;
    flex-direction: column;

    max-height: calc(100vh - 40px);

    padding: 24px !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
    animation: ssModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

}

@keyframes ssModalIn {
    from {
        transform: scale(0.9) translateY(10px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.ss-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.ss-modal-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #012c77 !important;
}

.ss-modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    color: #94A3B8 !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    line-height: 1 !important;
    padding: 4px !important;
}

.ss-modal-close:hover {
    color: #FF6B00 !important;
}

.ss-modal-body {
    flex: 1 1 auto;

    overflow-y: auto;
    overflow-x: hidden;

    margin-bottom: 0 !important;

    padding: 0 !important;

    min-height: 0;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: transparent !important;
    padding: 0 !important;
}

.ss-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    flex-wrap: wrap !important;

    margin-top: 20px;

    flex-shrink: 0;

    padding-top: 16px !important;
    border-top: none !important;
    background: transparent !important;
}

/* Global input caret alignment override */
input,
textarea,
select {
    caret-color: #00b6be !important;
}

.ss-pill-dropdown.open {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

.form-input-wrap .form-input {
    padding-left: 40px !important;
}

/* Action Buttons Size Standard (Print, Search, Clear, Export, etc.) */
.ss-action-btn {
    height: 38px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    width: auto !important;
    flex: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

/* ═══════════════════════════════════════════════════════════
   SHRUTSEVA GLOBAL NOTIFICATION SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* Page blur overlay */
#shr-notify-blur {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px) saturate(0.7);
    -webkit-backdrop-filter: blur(10px) saturate(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#shr-notify-blur.active {
    opacity: 1;
    pointer-events: auto;
}

/* Toast card */
#shr-notify-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.82);
    z-index: 99999;
    min-width: 340px;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.22),
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 24px 36px 24px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
}

#shr-notify-toast.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Icon wrap */
.shr-toast-icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}

/* Text body */
.shr-toast-body {
    flex: 1;
    min-width: 0;
}

.shr-toast-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.shr-toast-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 4px;
}

.shr-toast-message {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.5;
}

/* Close button */
.shr-toast-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s;
}

.shr-toast-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Progress bar */
.shr-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    border-radius: 0 0 20px 20px;
    background: var(--shr-color, #00B6BE);
    transform-origin: left;
    animation: shrProgressShrink var(--shr-duration, 3000ms) linear forwards;
}

@keyframes shrProgressShrink {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* About & Contact Animations and Styles */
@keyframes radar-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes pin-ping {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 36px 0 28px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #E2E8F0, transparent);
}

.section-divider span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94A3B8;
    white-space: nowrap;
}

/* Stat Cards Hover Style */
.ss-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.08) !important;
    border-color: rgba(1, 44, 119, 0.15) !important;
}

/* Liquid Glass Tiles */
.ss-liquid-glass-tile {
    background: rgba(255, 255, 255, 0.28) !important;
    backdrop-filter: saturate(220%) blur(40px) !important;
    -webkit-backdrop-filter: saturate(220%) blur(40px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ss-liquid-glass-tile:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
}

/* ═══════════════════════════════════════════════════════════
   SHRUTSEVA LOGIN & CHANGE PASSWORD UPDATED DESIGN
   ═══════════════════════════════════════════════════════════ */


/* autocomplete design dropdown  */
.ui-autocomplete {
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow:
        0 12px 32px rgba(15, 23, 42, .12),
        0 2px 6px rgba(15, 23, 42, .06);
    padding: 12px;
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99999 !important;
}

/* Scrollbar */
.ui-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.ui-autocomplete::-webkit-scrollbar-track {
    background: transparent;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background: #d9e1ef;
    border-radius: 20px;
}

/* Remove default spacing */
.ui-autocomplete .ui-menu-item {
    margin: 0;
}

/* Item */
.ui-autocomplete .ui-menu-item-wrapper {
    border: none !important;
    border-radius: 10px;
    padding: 6px 12px !important;
    margin: 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #173A86;
    background: transparent;
    transition: .2s;
    cursor: pointer;
}

/* Hover */
.ui-autocomplete .ui-menu-item-wrapper:hover {
    background: #EEF8FB;
    color: #18B4C9;
    font-size: 14px;
    font-weight: 600;
}

/* Selected */
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background: #EEF8FB !important;
    color: #18B4C9 !important;
    border: none !important;
    margin: 4px 0 !important;
    font-size: 14px;
    font-weight: 600;
}

/* Remove jQuery UI focus outline */
.ui-autocomplete .ui-menu .ui-state-focus {
    border: none !important;
}

.login-page #login-form,
.login-page #changepassword-form {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding:20px; */
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: radial-gradient(#1D4ED8 1px, transparent 1px);
    background-size: 16px 16px;
}

.login-page .bg-blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .10;
    animation: float 8s ease-in-out infinite;
}

.login-page .bg-blob.one {
    top: 12%;
    left: 10%;
    background: #1565FF;
}

.login-page .bg-blob.two {
    bottom: 10%;
    right: 10%;
    background: #00b6be;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-35px);
    }

    100% {
        transform: translateY(0px);
    }

}

.login-page .login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.login-page .login-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(29, 78, 216, .04), rgba(255, 255, 255, .96), rgba(0, 182, 190, .04));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 25px 60px rgba(15, 23, 42, .08);
}

.login-page .login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .45), rgba(255, 255, 255, .10), transparent);
}

.login-page .brand-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #1D4ED8, #00b6be, #FF6B00);
}

.login-page .login-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 28px;
}

.login-page .login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.login-page .login-logo img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.login-page .login-logo span {
    font-size: 22px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: #012c77;
}

.login-page .login-logo span b {
    color: #FF6B00;
}

.login-page .login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #0A2540;
    margin-top: 8px;
}

.login-page .login-header p {
    font-size: 12.5px;
    color: #9CA3AF;
    margin-top: 4px;
    font-weight: 700;
}

.login-page .form-label {
    margin-left: 2px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

@media(max-width:576px) {
    .login-page .login-card {
        padding: 30px 24px;
    }

    .login-page .login-logo span {
        font-size: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD UPDATED DESIGN
   ═══════════════════════════════════════════════════════════ */
/* Quick Stat Tiles — Exact replica of reference image  */
#dashboardContent .qs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
    position: relative;
}

@media (max-width: 1100px) {
    #dashboardContent .qs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #dashboardContent .qs-grid {
        grid-template-columns: 1fr;
    }
}

/* Card base — gradient directly on the tile so it always covers 100% */
#dashboardContent .qs-tile {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 16px 18px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 152px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    user-select: none;
}

/* Full-tile gradients — applied directly so they always fill edge-to-edge */
#dashboardContent .qs-tile.blue {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(140deg, #021C8A 0%, #0F45D0 45%, #2A6AFF 100%);
    background-size: 16px 16px, auto;
}

#dashboardContent .qs-tile.teal {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(140deg, #065C4A 0%, #0A8C6E 50%, #12B08E 100%);
    background-size: 16px 16px, auto;
}

#dashboardContent .qs-tile.orange {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(140deg, #B83A00 0%, #E85E10 50%, #FF8C35 100%);
    background-size: 16px 16px, auto;
}

#dashboardContent .qs-tile.sky {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(140deg, #1578C8 0%, #3AABF5 50%, #72CCFF 100%);
    background-size: 16px 16px, auto;
}

#dashboardContent .qs-tile:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

/* Glass overlay container — transparent by default, only used for liquid-glass filter / WebGL canvas */
#dashboardContent .qs-tile-glass-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    background: transparent;
}

/* SVG Filter (Chrome): layer displacement on top of the gradient */
body.use-svg-filter #dashboardContent .qs-tile-glass-bg {
    filter: url(#liquid-glass-tile-filter);
    -webkit-filter: url("#liquid-glass-tile-filter");
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* WebGL: canvas rendered inside glass-bg sits on top of gradient */
body.use-webgl #dashboardContent .qs-tile-glass-bg canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: block;
}

#dashboardContent .qs-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0) 35.5%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Animated diagonal shine sweep on hover */
#dashboardContent .qs-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.04) 20%,
            rgba(255, 255, 255, 0.28) 50%,
            rgba(255, 255, 255, 0.04) 80%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-30deg);
    pointer-events: none;
    z-index: 2;
    transition: left 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

#dashboardContent .qs-tile:hover::after {
    left: 150%;
}

/* ROW 1: label + action icon */
.qs-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 8px;
}

#dashboardContent .qs-tile-label {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.70);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1;
}

#dashboardContent .qs-tile-action {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.70);
    font-size: 10px;
    transition: all 0.18s;
}

#dashboardContent .qs-tile:hover .qs-tile-action {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}

/* ROW 2: icon badge + big number side-by-side */
.qs-tile-mid {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 4px 0;
}

#dashboardContent .qs-tile-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

#dashboardContent .qs-tile.blue .qs-tile-icon {
    background: rgba(3, 25, 115, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

#dashboardContent .qs-tile.teal .qs-tile-icon {
    background: rgba(3, 46, 36, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

#dashboardContent .qs-tile.orange .qs-tile-icon {
    background: rgba(120, 28, 0, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

#dashboardContent .qs-tile.sky .qs-tile-icon {
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#dashboardContent .qs-tile-number {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* ROW 3: mini chart — full width, bottom */
#dashboardContent .qs-tile-chart {
    position: relative;
    z-index: 2;
    height: 52px;
    display: flex;
    align-items: flex-end;
}

#dashboardContent .qs-tile-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Layout Grid Overhaul (Charts Side-by-Side row + Full-Width Table bottom) — Drag to Resize Split Panel  */

#dashboardContent .ss-dashboard-charts-row {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    align-items: stretch;
    position: relative;
    width: 100%;
}

#dashboardContent .ss-dashboard-charts-row>.ss-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-width: 250px;
    flex-shrink: 0;
    box-sizing: border-box;
}

#dashboardContent .ss-charts-row-divider {
    width: 16px;
    margin: 0 4px;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    user-select: none;
    z-index: 10;
}

#dashboardContent .ss-charts-row-divider::after {
    content: '';
    width: 4px;
    height: 60px;
    background: rgba(1, 44, 119, 0.15);
    border-radius: 2px;
    transition: background 0.2s, height 0.2s, width 0.2s;
}

#dashboardContent .ss-charts-row-divider:hover::after,
#dashboardContent .ss-charts-row-divider.dragging::after {
    background: #FF6B00;
    height: 80px;
    width: 6px;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

@media (max-width: 1024px) {
    #dashboardContent .ss-dashboard-charts-row {
        flex-direction: column;
    }

    #dashboardContent .ss-charts-row-divider {
        display: none;
    }

    #dashboardContent .ss-dashboard-charts-row>.ss-card {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

/* Bottom Row: Book Sizes Registry (left) + placeholder for future table (right) — Drag to Resize Split Panel  */
#dashboardContent .ss-bottom-row {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    align-items: stretch;
    position: relative;
    width: 100%;
}

#dashboardContent .ss-bottom-row>.ss-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-width: 250px;
    flex-shrink: 0;
    box-sizing: border-box;
}

#dashboardContent .ss-bottom-row-divider {
    width: 16px;
    margin: 0 4px;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    user-select: none;
    z-index: 10;
}

#dashboardContent .ss-bottom-row-divider::after {
    content: '';
    width: 4px;
    height: 60px;
    background: rgba(1, 44, 119, 0.15);
    border-radius: 2px;
    transition: background 0.2s, height 0.2s, width 0.2s;
}

#dashboardContent .ss-bottom-row-divider:hover::after,
#dashboardContent .ss-bottom-row-divider.dragging::after {
    background: #FF6B00;
    height: 80px;
    width: 6px;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

@media (max-width: 1100px) {
    #dashboardContent .ss-bottom-row {
        flex-direction: column;
    }

    #dashboardContent .ss-bottom-row-divider {
        display: none;
    }

    #dashboardContent .ss-bottom-row>.ss-card {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

/* ===========================
    CUSTOM MODAL FOR Book Copy Summary
    =========================== */

#bookDetailspopup .ss-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    padding: 25px;
}

#bookDetailspopup .ss-modal.show {
    display: flex;
    animation: fadeIn .25s ease;
}

#bookDetailspopup .ss-modal-content {
    width: 95%;
    max-width: 1500px;
    height: 90vh;
    display: flex;
    animation: zoomIn .25s ease;
}

#bookDetailspopup .ss-modal-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .18);
    padding: 1rem;
}

/* Header */

#bookDetailspopup .ss-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}

#bookDetailspopup .ss-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

#bookDetailspopup .ss-modal-title h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #012c77;
    line-height: 1.2;
    margin: 0;
}

#bookDetailspopup .ss-modal-title small {
    font-size: 11px;
    color: #64748B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
}

#bookDetailspopup .ss-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    cursor: pointer;
    transition: .2s;
}

#bookDetailspopup .ss-modal-close:hover {
    background: #E2E8F0;
    transform: rotate(90deg);
}

/* Body */

#bookDetailspopup .ss-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Table */

#bookDetailspopup .ss-table-wrap {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

div#booksDetailModal {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0.2rem !important;
}

#bookDetailspopup .copy-count-badge {
    font-size: 11px;
    font-weight: 700;
    background: #00b6be;
    color: #fff;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    box-sizing: border-box;
}

/* Blur page when modal is open */

#dashboardContent {
    transition: .25s;
}

body.modal-open #dashboardContent {
    filter: blur(6px);
    transform: scale(.995);
    pointer-events: none;
    user-select: none;
}

/* Animation */

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes zoomIn {

    from {
        transform: translateY(25px) scale(.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

}

/* Quick search design start */
#quick-search table.dataTable td.dt-control:before {
    display: none !important;
}

/* City Dropdown Search */
#quick-search .qs-city-dropdown {
    padding: 0 !important;
    display: none;
    flex-direction: column;
    max-height: 280px;
    overflow: hidden;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(1, 44, 119, 0.12) !important;
    box-shadow: 0 12px 32px rgba(1, 44, 119, 0.15) !important;
}

#quick-search .city-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 44, 119, 0.05);
    border-radius: 12px;
    margin: 10px 12px 6px;
    padding: 6px 12px;
    border: 1px solid rgba(1, 44, 119, 0.08);
}

#quick-search .city-search-wrap i {
    color: #9CA3AF;
    font-size: 13px;
}

#quick-search .city-search-wrap input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #0A2540;
    font-family: inherit;
    width: 100%;
    font-weight: 600;
}

#quick-search .city-options-list {
    overflow-y: auto;
    flex: 1;
    padding: 0 4px 8px;
}

#quick-search .city-options-list::-webkit-scrollbar {
    width: 6px;
}

#quick-search .city-options-list::-webkit-scrollbar-thumb {
    background: rgba(1, 44, 119, 0.15);
    border-radius: 4px;
}

/* Modal buttons styling to match screenshot precisely */
#quick-search .bn-modal-btn-blue {
    background-color: #1e90ff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: background 0.15s !important;
}

#quick-search .bn-modal-btn-blue:hover {
    background-color: #1a7fe6 !important;
}

#quick-search .bn-modal-btn-grey {
    background-color: #6b7280 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: background 0.15s !important;
}

/* Clean Open Book Image card styling */
#quick-search .detail-image-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 300px !important;
    height: 250px !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
}

#quick-search .detail-image-card::before,
#quick-search .detail-image-card::after {
    display: none !important;
}

#quick-search .detail-bhandar-table .book-number-badge {
    background: linear-gradient(135deg, #00B6BE, #008F95);
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 182, 190, 0.2);
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
}

#quick-search .detail-bhandar-table .book-number-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    /* allow wrapping */
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    #quick-search .detail-image-card {
        width: 240px !important;
        height: 240px !important;
    }

}

#quick-search .qs-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
}


@media (max-width: 768px) {
    #quick-search .detail-tile-value {
        font-size: 12px !important;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    #quick-search .detail-content-sec .detail-bhandar-table {
        font-size: 12px !important;
    }

    #quick-search .detail-heading {
        font-size: 14px !important;
    }
}

@media (max-width: 600px) {
    #quick-search .qs-actions-row {
        width: 100%;
    }

    #quick-search .qs-actions-row .ss-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #quick-search .ss-table thead {
        display: none !important;
    }

    #quick-search .ss-table-container {
        padding: 24px 12px !important;
    }

    /* Table: card layout to prevent overflow & scroll */
    #quick-search #resultsTableContainer {
        overflow-x: visible !important;
    }

    #quick-search .ss-table {
        min-width: 100% !important;
        display: block !important;
    }

    /* .ss-table thead {
        display: none !important;
      } */

    #quick-search .ss-table tbody {
        display: block !important;
        width: 100% !important;
        /* overflow: auto; */
    }

    #quick-search .ss-table tbody tr.qs-main-row {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 12px 14px !important;
        border-bottom: 1px solid rgba(1, 44, 119, 0.08) !important;
        gap: 6px !important;
        align-items: center !important;
        position: relative !important;
        /* background: rgba(255, 255, 255, 0.4) !important; */
        border-radius: 12px !important;
        /* margin-bottom: 8px !important; */
        /* box-shadow: 0 2px 8px rgba(1, 44, 119, 0.04) !important; */

        background: #82828224 !important;
        border: 1px solid rgba(1, 44, 119, 0.08) !important;
        margin-bottom: 20px !important;
        box-shadow: 0px 2px 8px rgba(1, 44, 119, 0.08), 0 6px 16px rgba(1, 44, 119, 0.08) !important;
    }


    #quick-search .ss-table tbody tr.qs-main-row td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        background: transparent !important;
    }

    /* Expand button cell */
    #quick-search .ss-table tbody tr.qs-main-row td:nth-child(1) {
        order: 1 !important;
        margin-right: 8px !important;
    }

    /* Book Name cell */
    #quick-search .ss-table tbody tr.qs-main-row td:nth-child(2) {
        order: 2 !important;
        flex: 1 1 auto !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        min-width: 130px !important;
        max-width: calc(100% - 100px) !important;
    }

    /* Part cell */
    #quick-search .ss-table tbody tr.qs-main-row td:nth-child(3) {
        order: 3 !important;
        font-size: 11px !important;
        background: rgba(1, 44, 119, 0.08) !important;
        padding: 2px 8px !important;
        border-radius: 6px !important;
        font-weight: 800 !important;
        color: #012c77 !important;
        margin-left: auto !important;
        /* Push to right */
    }

    /* Author cell */
    #quick-search .ss-table tbody tr.qs-main-row td:nth-child(4) {
        order: 4 !important;
        flex: 1 1 100% !important;
        font-size: 12.5px !important;
        padding-left: 28px !important;
        color: var(--text-secondary) !important;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    /* Publisher cell */
    #quick-search .ss-table tbody tr.qs-main-row td:nth-child(5) {
        order: 5 !important;
        flex: 1 1 100% !important;
        font-size: 12px !important;
        padding-left: 28px !important;
        color: var(--text-muted) !important;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    /* Language badge cell */
    #quick-search .ss-table tbody tr.qs-main-row td:nth-child(6) {
        order: 6 !important;
        margin-left: 28px !important;
        margin-top: 4px !important;
    }

    #quick-search .ss-table tbody tr.qs-detail-row {
        display: none !important;
        border-bottom: 1px solid rgba(1, 44, 119, 0.08) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        padding: 0 !important;
    }

    #quick-search .ss-table tbody tr.qs-detail-row.open {
        display: block !important;
    }

    #quick-search .ss-table tbody tr.qs-detail-row td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        padding: 0 !important;
    }

    /* Tiles: full single column inside a single large box */
    #quick-search .detail-grid {
        grid-template-columns: 1fr !important;
        background: linear-gradient(135deg, #DBEAFE, #CCFBF1) !important;
        border: 1px solid rgba(1, 44, 119, 0.16) !important;
        border-radius: 16px !important;
        padding: 8px 16px !important;
        gap: 0 !important;
        /* Stack tiles directly */
        box-shadow: 0 4px 15px rgba(1, 44, 119, 0.05) !important;
    }

    #quick-search .detail-grid .detail-tile {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(1, 44, 119, 0.22) !important;
    }

    #quick-search .detail-grid .detail-tile:last-child {
        border-bottom: none !important;
    }

    #quick-search .detail-main-layout {
        padding: 12px 10px !important;
    }

    /* Nav arrows */
    #quick-search .detail-nav-side-arrow {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
    }

    /* Available In Bhandar Table Stacked layout on Mobile */
    #quick-search .detail-bhandar-table {
        min-width: 100% !important;
        display: block !important;
        width: 100% !important;
        border: none !important;
    }

    #quick-search .detail-bhandar-table thead {
        display: none !important;
    }

    #quick-search .detail-bhandar-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #quick-search .detail-bhandar-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border: 1px solid rgba(1, 44, 119, 0.08) !important;
        border-radius: 10px !important;
        padding: 10px 12px !important;
        gap: 6px !important;
    }

    #quick-search .detail-bhandar-table tbody tr td {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        border: none !important;
        font-size: 12.5px !important;
        background: transparent !important;
        width: 100% !important;
    }

    #quick-search .detail-bhandar-table tbody tr td::before {
        font-weight: 800 !important;
        color: #012c77 !important;
        width: 85px !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }

    #quick-search .detail-bhandar-table tbody tr td:nth-child(1)::before {
        content: "Book No:" !important;
    }

    #quick-search .detail-bhandar-table tbody tr td:nth-child(2)::before {
        content: "Bhandar:" !important;
    }

    #quick-search .detail-bhandar-table tbody tr td:nth-child(3)::before {
        content: "City:" !important;
    }

    #quick-search .detail-bhandar-table tbody tr td:nth-child(4)::before {
        content: "Contact:" !important;
    }
}

#quick-search .zoomImg {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#quick-search .zoom-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

#quick-search .zoomed {
    width: 100%;
    max-width: 90vw;
    max-height: 68vh;
}

#quick-search #close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50% !important;
    height: 24px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1002;
    align-items: center;
    display: flex;
}

#quick-search .dataTables_info {
    display: none !important;
}

/* Pagination */
#quick-search #DataTables_Table_1_wrapper .lg-pagination {
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    margin-top: 24px !important;
    position: relative !important;
    z-index: 1 !important;
    float: none !important;
}

#quick-search #DataTables_Table_1_wrapper .lg-page-btn {
    padding: 6px 12px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.60) !important;
    background: rgba(255, 255, 255, 0.30) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.20s !important;
    backdrop-filter: blur(8px) !important;
}

#quick-search #DataTables_Table_1_wrapper .lg-page-btn.active {
    background: rgba(37, 99, 235, 0.15) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
    color: var(--accent-blue) !important;
}

#quick-search #DataTables_Table_1_wrapper .lg-page-btn:hover {
    background: rgba(255, 255, 255, 0.50) !important;
}

#quick-search #DataTables_Table_1 td,
#quick-search #DataTables_Table_1 th {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#quick-search #DataTables_Table_1 thead th:nth-child(3),
/* PART */
#quick-search #DataTables_Table_1 tbody td:nth-child(3) {
    min-width: 80px;
}

#quick-search #DataTables_Table_1 thead th:nth-child(6),
/* LANGUAGE */
#quick-search #DataTables_Table_1 tbody td:nth-child(6) {
    min-width: 120px;
}

#quick-search .ss-table tbody tr.qs-main-row td:nth-child(2) {
    font-weight: bolder !important;
    color: #012c77 !important;
}

#quick-search .ss-table tbody tr.qs-main-row td {
    color: #475569d9 !important;
}

@media print {

    /* Hide first header column */
    #quick-search #DataTables_Table_1 thead th:first-child,
    #quick-search #DataTables_Table_1 tbody td:first-child {
        display: none !important;
    }

}


/* quick search design start  */


/* Advance search design start  */


.advsearchbooks-page table.dataTable td.dt-control:before {
    display: none !important;
}

/* ────────────────────────────────────────────────────
       PAGE LAYOUT
    ──────────────────────────────────────────────────── */
.advsearchbooks-page .lg-page {
    position: relative;
    z-index: 10;
    padding-top: 90px;
    min-height: 100vh;
}

.advsearchbooks-page .lg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ────────────────────────────────────────────────────
       PAGE HEADER
    ──────────────────────────────────────────────────── */
.advsearchbooks-page .lg-page-header {
    padding: 28px 0 20px;
}

.advsearchbooks-page .lg-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #012c77;
}

.advsearchbooks-page .lg-page-title span {
    background: linear-gradient(135deg, var(--accent-orange), #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advsearchbooks-page .lg-page-subtitle {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ────────────────────────────────────────────────────
       LANGUAGE TOGGLE — Liquid Glass Pill
    ──────────────────────────────────────────────────── */
/* Premium Language Filter Toggle Container (Unified Pill) */
.advsearchbooks-page .ss-lang-toggle-container {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 9999px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
    position: relative;
    z-index: 10;
}

.advsearchbooks-page .ss-lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent !important;
    color: #00b6be;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 2;
    box-shadow: none !important;
}

.advsearchbooks-page .ss-lang-toggle-btn.active {
    color: #ffffff !important;
    background: #00b6be !important;
}

.advsearchbooks-page .ss-lang-toggle-btn i {
    color: inherit !important;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.advsearchbooks-page .ss-lang-toggle-btn.inactive:hover {
    color: #008f95 !important;
}

.advsearchbooks-page .lg-sticky-wrap {
    position: relative;
    z-index: 100;
    margin-bottom: 24px;
}


/* ─── Animated iridescent rotating border (true liquid glass) ─── */
.advsearchbooks-page .lg-search-card {
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: saturate(220%) blur(40px);
    -webkit-backdrop-filter: saturate(220%) blur(40px);
    border-radius: 22px;
    border: 1.5px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 0.90),
        inset 0 -1px 0 rgba(255, 255, 255, 0.25),
        inset 1px 0 0 rgba(255, 255, 255, 0.60),
        inset -1px 0 0 rgba(255, 255, 255, 0.35);
    padding: 14px 16px 12px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

/* Rotating iridescent border ring */
.advsearchbooks-page .lg-search-card-border {
    position: absolute;
    inset: -1px;
    border-radius: 23px;
    background: conic-gradient(from var(--border-angle, 0deg),
            rgba(37, 99, 235, 0.55) 0deg,
            rgba(255, 255, 255, 0.80) 60deg,
            rgba(251, 146, 60, 0.50) 120deg,
            rgba(255, 255, 255, 0.90) 180deg,
            rgba(96, 165, 250, 0.55) 240deg,
            rgba(255, 255, 255, 0.75) 300deg,
            rgba(37, 99, 235, 0.55) 360deg);
    z-index: -1;
    pointer-events: none;
    animation: border-spin 5s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1.5px;
}

@keyframes border-spin {
    to {
        --border-angle: 360deg;
    }
}

/* Specular glass reflection — responds to mouse movement */
.advsearchbooks-page .lg-search-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 350px at var(--mx, 50%) var(--my, 20%), rgba(255, 255, 255, 0.35) 0%, transparent 80%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    transition: background 0.15s ease;
}

/* Drifting liquid shimmer */
.advsearchbooks-page .lg-shimmer {
    position: absolute;
    top: -60%;
    left: -80%;
    width: 55%;
    height: 220%;
    background: linear-gradient(108deg,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 25%,
            rgba(255, 255, 255, 0.22) 50%,
            rgba(255, 255, 255, 0.04) 75%,
            transparent 100%);
    animation: shimmer-sweep 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer-sweep {
    0% {
        left: -80%;
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 180%;
        opacity: 0.6;
    }
}

/* ────────────────────────────────────────────────────
       SEARCH GRID
    ──────────────────────────────────────────────────── */
.advsearchbooks-page .lg-search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

@media (max-width: 1100px) {
    .advsearchbooks-page .lg-search-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 800px) {
    .advsearchbooks-page .lg-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .advsearchbooks-page .lg-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── INPUT PILL — Ultra compact liquid chip ─── */
.advsearchbooks-page .lg-pill {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(1, 44, 119, 0.16);
    border-radius: 14px;
    padding: 6px 20px 7px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 42px;
    cursor: text;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04),
        inset 1px 0 0 rgba(255, 255, 255, 0.55),
        inset -1px 0 0 rgba(255, 255, 255, 0.30);
}

/* curved specular – top dome highlight */
.advsearchbooks-page .lg-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 45%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.65) 0%,
            rgba(255, 255, 255, 0.08) 100%);
    border-radius: 14px 14px 50% 50% / 14px 14px 18px 18px;
    pointer-events: none;
    z-index: 0;
}

/* wet-surface bottom caustic glow */
.advsearchbooks-page .lg-pill::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.80), transparent);
    pointer-events: none;
    z-index: 0;
}

.advsearchbooks-page .lg-pill:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(1, 44, 119, 0.28);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.90),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.advsearchbooks-page .lg-pill:focus-within {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(37, 99, 235, 0.68);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14),
        0 0 0 2.5px rgba(37, 99, 235, 0.10),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(37, 99, 235, 0.06);
}

/* Ripple on click */
.advsearchbooks-page .lg-pill .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0);
    animation: ripple-out 0.5s linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes ripple-out {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.advsearchbooks-page .lg-pill-label {
    display: flex;
    align-items: center;
    gap: 5px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #012c77 !important;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.advsearchbooks-page .lg-pill-label i {
    font-size: 12px !important;
}

.advsearchbooks-page .lg-pill-field {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #012c77 !important;
    width: 100%;
    height: 16px;
    padding: 0 8px !important;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.advsearchbooks-page .lg-pill-field::placeholder {
    color: rgba(1, 44, 119, 0.55) !important;
    font-weight: 500 !important;
}

.advsearchbooks-page select.lg-pill-field {
    appearance: none !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23012c77' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center !important;
    background-size: 10px !important;
    padding-right: 20px !important;
    cursor: pointer !important;
}

.advsearchbooks-page select.lg-pill-field option {
    background-color: #ffffff !important;
    color: #012c77 !important;
    padding: 8px !important;
}

/* Icon accent colors */
.advsearchbooks-page .icon-city {
    color: #0891B2;
}

.advsearchbooks-page .icon-title {
    color: #2563EB;
}

.advsearchbooks-page .icon-author {
    color: #059669;
}

.advsearchbooks-page .icon-editor {
    color: #D97706;
}

.advsearchbooks-page .icon-pub {
    color: #DB2777;
}

.advsearchbooks-page .icon-lang {
    color: #0891B2;
}

.advsearchbooks-page .icon-subject {
    color: #0D9488;
}

.advsearchbooks-page .icon-details {
    color: #64748B;
}

/* Clean Open Book Image card styling */
.advsearchbooks-page .detail-image-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 300px !important;
    height: 250px !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
}

.advsearchbooks-page .detail-image-card::before,
.advsearchbooks-page .detail-image-card::after {
    display: none !important;
}

@media (max-width: 480px) {
    .advsearchbooks-page .detail-image-card {
        width: 240px !important;
        height: 240px !important;
    }
}

/* ────────────────────────────────────────────────────
       ACTION ROW — Glass Buttons
    ──────────────────────────────────────────────────── */
.advsearchbooks-page .lg-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.advsearchbooks-page .lg-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.advsearchbooks-page .lg-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.advsearchbooks-page .lg-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent);
    pointer-events: none;
    border-radius: 12px 12px 50% 50%;
}

.advsearchbooks-page .lg-btn-blue {
    background: #2563EB;
    border-color: #1D4ED8;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.advsearchbooks-page .lg-btn-blue:hover {
    background: #1D4ED8;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.advsearchbooks-page .lg-btn-orange {
    background: #FF6B00;
    border-color: #e05e00;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.advsearchbooks-page .lg-btn-orange:hover {
    background: #e05e00;
    border-color: #c75500;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* Search-in-result glass field */
.advsearchbooks-page .lg-search-inline {
    position: relative;
}

.advsearchbooks-page .lg-search-inline input {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(1, 44, 119, 0.16);
    border-radius: 12px;
    padding: 7px 12px 7px 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #012c77;
    outline: none;
    width: 220px;
    transition: all 0.22s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.advsearchbooks-page .lg-search-inline input:focus {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(37, 99, 235, 0.68);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.80);
    width: 260px;
}

.advsearchbooks-page .lg-search-inline input::placeholder {
    color: rgba(1, 44, 119, 0.55);
    font-weight: 500;
}

.advsearchbooks-page .lg-search-inline i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.80);
    font-size: 11px;
    pointer-events: none;
}

/* ────────────────────────────────────────────────────
       RESULTS CARD — Liquid Glass
    ──────────────────────────────────────────────────── */
.advsearchbooks-page .lg-results-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.80),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    padding: 24px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.advsearchbooks-page .lg-results-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent);
    border-radius: 24px 24px 60% 60%;
    pointer-events: none;
    z-index: 0;
}

/* ────────────────────────────────────────────────────
       EMPTY STATE
    ──────────────────────────────────────────────────── */
.advsearchbooks-page .lg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(226, 232, 240, 0.8);
    border-radius: 20px;
}

.advsearchbooks-page .lg-empty-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.advsearchbooks-page .lg-empty-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #012c77;
    margin-top: 8px;
    margin-bottom: 4px;
}

.advsearchbooks-page .lg-empty-desc {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    max-width: 420px;
    line-height: 1.4;
}

/* ────────────────────────────────────────────────────
       TABLE — Glass Rows
    ──────────────────────────────────────────────────── */
.advsearchbooks-page .lg-table-wrap {
    position: relative;
    z-index: 1;
    overflow-x: auto;
}

.advsearchbooks-page .lg-table {
    width: 100%;
    border-collapse: collapse;
}

.advsearchbooks-page .lg-table thead tr {
    background: linear-gradient(to right, #012c77 0%, #1D4ED8 50%, #00b6be 100%) !important;
}

.advsearchbooks-page .lg-table th {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff !important;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    border: none !important;
    background: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.advsearchbooks-page .lg-table th:first-child {
    border-top-left-radius: 14px !important;
}

.advsearchbooks-page .lg-table th:last-child {
    border-top-right-radius: 14px !important;
    border-right: none !important;
}

.advsearchbooks-page .lg-table tbody tr.main-row {
    border-bottom: 1px solid rgba(1, 44, 119, 0.12);
    cursor: pointer;
    transition: all 0.20s;
}

.advsearchbooks-page .lg-table tbody tr.main-row:hover {
    background: rgba(255, 255, 255, 0.30);
}

.advsearchbooks-page .lg-table td {
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    vertical-align: middle;
    border-right: 1px solid rgba(1, 44, 119, 0.12) !important;
    border-bottom: 1px solid rgba(1, 44, 119, 0.12) !important;
}

.advsearchbooks-page .lg-table td:last-child {
    border-right: none !important;
}

/* Glass badge */
.advsearchbooks-page .lg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.advsearchbooks-page .lg-badge-teal {
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(8, 145, 178, 0.25);
    color: #0891B2;
}


/* Result header */
.advsearchbooks-page .lg-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.advsearchbooks-page .lg-match-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.advsearchbooks-page .lg-match-count strong {
    color: #012c77;
    font-size: 15px;
}

.advsearchbooks-page .lg-sort-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Pagination */
.advsearchbooks-page #DataTables_Table_1_wrapper .lg-pagination,
.advsearchbooks-page #DataTables_Bhandar_Table_wrapper .lg-pagination {
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    margin-top: 24px !important;
    position: relative !important;
    z-index: 1 !important;
    float: none !important;
}

.advsearchbooks-page #DataTables_Table_1_wrapper .lg-page-btn,
.advsearchbooks-page #DataTables_Bhandar_Table_wrapper .lg-page-btn {
    padding: 6px 12px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.60) !important;
    background: rgba(255, 255, 255, 0.30) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.20s !important;
    backdrop-filter: blur(8px) !important;
}

.advsearchbooks-page #DataTables_Table_1_wrapper .lg-page-btn.active,
.advsearchbooks-page #DataTables_Bhandar_Table_wrapper .lg-page-btn.active {
    background: rgba(37, 99, 235, 0.15) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
    color: var(--accent-blue) !important;
}

.advsearchbooks-page #DataTables_Table_1_wrapper .lg-page-btn:hover,
.advsearchbooks-page #DataTables_Bhandar_Table_wrapper .lg-page-btn:hover {
    background: rgba(255, 255, 255, 0.50) !important;
}


.advsearchbooks-page .detail-bhandar-table .book-number-badge {
    background: linear-gradient(135deg, #00B6BE, #008F95);
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 182, 190, 0.2);
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
}

.advsearchbooks-page .detail-bhandar-table .book-number-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    /* allow wrapping */
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.advsearchbooks-page .zoomImg {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.advsearchbooks-page .zoom-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.advsearchbooks-page .zoomed {
    width: 100%;
    max-width: 90vw;
    max-height: 68vh;
}

.advsearchbooks-page #close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50% !important;
    height: 24px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1002;
    align-items: center;
    display: flex;
}

/* ────────────────────────────────────────────────────
       RESPONSIVE
    ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .advsearchbooks-page .lg-nav-links {
        display: none;
    }

    .advsearchbooks-page .lg-hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .advsearchbooks-page .lg-container {
        padding: 0 12px 60px !important;
    }

    .advsearchbooks-page .lg-results-card {
        padding: 12px !important;
        border-radius: 16px !important;
        min-height: auto !important;
    }

    .advsearchbooks-page .lg-search-card {
        padding: 12px 14px !important;
        border-radius: 16px !important;
    }

    /* Search grid: 2 columns on tablet */
    .advsearchbooks-page .lg-search-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Actions row: stack vertically */
    .advsearchbooks-page .lg-actions-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .advsearchbooks-page .lg-btn-group {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .advsearchbooks-page .lg-btn-group .ss-btn {
        flex: 1;
        justify-content: center;
    }

    .advsearchbooks-page .lg-search-inline {
        width: 100% !important;
    }

    .advsearchbooks-page .lg-search-inline input {
        width: 100% !important;
    }

    /* Main results table */
    .advsearchbooks-page .lg-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .advsearchbooks-page .lg-table th,
    .advsearchbooks-page .lg-table td {
        padding: 8px 10px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    /* Expanded detail panel */
    .advsearchbooks-page .detail-main-layout {
        padding: 16px !important;
        gap: 16px !important;
    }

    .advsearchbooks-page .detail-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .advsearchbooks-page .detail-tile {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .advsearchbooks-page .detail-tile-label {
        font-size: 10px !important;
    }

    .advsearchbooks-page .detail-tile-value {
        font-size: 12px !important;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Book image section: arrows smaller, image card compact */
    .advsearchbooks-page .detail-image-sec {
        padding: 0 !important;
    }

    .advsearchbooks-page .detail-nav-side-arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }

    .advsearchbooks-page .detail-image-card {
        padding: 16px 12px !important;
    }

    .advsearchbooks-page .detail-image-card i.main-book-icon {
        font-size: 52px !important;
    }

    /* Bhandar table scrollable */
    .advsearchbooks-page .detail-content-sec .detail-bhandar-table {
        font-size: 12px !important;
    }

    .advsearchbooks-page .detail-heading {
        font-size: 14px !important;
    }
}

@media (max-width: 640px) {

    /* Search grid: single column on phone */
    .advsearchbooks-page .lg-search-grid {
        grid-template-columns: 1fr !important;
    }

    .advsearchbooks-page .lg-pill {
        min-width: 0 !important;
    }

    /* Compact search + action buttons */
    .advsearchbooks-page .lg-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    .advsearchbooks-page .lg-search-inline input {
        font-size: 13px !important;
    }

    /* Detail panel: single-column tiles */
    .advsearchbooks-page .detail-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .advsearchbooks-page .detail-image-sec {
        padding: 0 4px !important;
    }
}

@media (max-width: 480px) {

    /* Table: card layout to prevent overflow & scroll */
    .advsearchbooks-page .lg-table-wrap {
        overflow-x: visible !important;
        padding: 24px 12px !important;
    }

    .advsearchbooks-page .lg-table {
        min-width: 100% !important;
        display: block !important;
    }

    .advsearchbooks-page .lg-table thead {
        display: none !important;
    }

    .advsearchbooks-page .lg-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .advsearchbooks-page .lg-table tbody tr.main-row {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 12px 14px !important;
        border-bottom: 1px solid rgba(1, 44, 119, 0.08) !important;
        gap: 6px !important;
        align-items: center !important;
        position: relative !important;
        /* background: rgba(255, 255, 255, 0.4) !important; */
        border-radius: 12px !important;
        /* margin-bottom: 8px !important; */
        /* box-shadow: 0 2px 8px rgba(1, 44, 119, 0.04) !important; */

        background: #82828224 !important;
        border: 1px solid rgba(1, 44, 119, 0.08) !important;
        margin-bottom: 20px !important;
        box-shadow: 0px 2px 8px rgba(1, 44, 119, 0.08), 0 6px 16px rgba(1, 44, 119, 0.08) !important;
    }


    .advsearchbooks-page .lg-table tbody tr.main-row td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        background: transparent !important;
    }

    /* Expand button cell */
    .advsearchbooks-page .lg-table tbody tr.main-row td:nth-child(1) {
        order: 1 !important;
        margin-right: 8px !important;
    }

    /* Book Name cell */
    .advsearchbooks-page .lg-table tbody tr.main-row td:nth-child(2) {
        order: 2 !important;
        flex: 1 1 auto !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        min-width: 130px !important;
        max-width: calc(100% - 100px) !important;
    }

    /* Part cell */
    .advsearchbooks-page .lg-table tbody tr.main-row td:nth-child(3) {
        order: 3 !important;
        font-size: 11px !important;
        background: rgba(1, 44, 119, 0.08) !important;
        padding: 2px 8px !important;
        border-radius: 6px !important;
        font-weight: 800 !important;
        color: #012c77 !important;
        margin-left: auto !important;
        /* Push to right */
    }

    /* Author cell */
    .advsearchbooks-page .lg-table tbody tr.main-row td:nth-child(4) {
        order: 4 !important;
        flex: 1 1 100% !important;
        font-size: 12.5px !important;
        padding-left: 28px !important;
        color: var(--text-secondary) !important;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    /* Publisher cell */
    .advsearchbooks-page .lg-table tbody tr.main-row td:nth-child(5) {
        order: 5 !important;
        flex: 1 1 100% !important;
        font-size: 12px !important;
        padding-left: 28px !important;
        color: var(--text-muted) !important;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    /* Language badge cell */
    .advsearchbooks-page .lg-table tbody tr.main-row td:nth-child(6) {
        order: 6 !important;
        margin-left: 28px !important;
        margin-top: 4px !important;
    }

    .advsearchbooks-page .lg-table tbody tr.lg-detail-row {
        display: none !important;
        border-bottom: 1px solid rgba(1, 44, 119, 0.08) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        padding: 0 !important;
    }

    .advsearchbooks-page .lg-table tbody tr.lg-detail-row.open {
        display: block !important;
    }

    .advsearchbooks-page .lg-table tbody tr.lg-detail-row td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        padding: 0 !important;
    }

    /* Available In Bhandar Table Stacked layout on Mobile */
    .advsearchbooks-page .detail-bhandar-table {
        min-width: 100% !important;
        display: block !important;
        width: 100% !important;
        border: none !important;
    }

    .advsearchbooks-page .detail-bhandar-table thead {
        display: none !important;
    }

    .advsearchbooks-page .detail-bhandar-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .advsearchbooks-page .detail-bhandar-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border: 1px solid rgba(1, 44, 119, 0.08) !important;
        border-radius: 10px !important;
        padding: 10px 12px !important;
        gap: 6px !important;
    }

    .advsearchbooks-page .detail-bhandar-table tbody tr td {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        border: none !important;
        font-size: 12.5px !important;
        background: transparent !important;
        width: 100% !important;
    }

    .advsearchbooks-page .detail-bhandar-table tbody tr td::before {
        font-weight: 800 !important;
        color: #012c77 !important;
        width: 85px !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }

    .advsearchbooks-page .detail-bhandar-table tbody tr td:nth-child(1)::before {
        content: "Book No:" !important;
    }

    .advsearchbooks-page .detail-bhandar-table tbody tr td:nth-child(2)::before {
        content: "Bhandar:" !important;
    }

    .advsearchbooks-page .detail-bhandar-table tbody tr td:nth-child(3)::before {
        content: "City:" !important;
    }

    .advsearchbooks-page .detail-bhandar-table tbody tr td:nth-child(4)::before {
        content: "Contact:" !important;
    }

    /* Tiles: full single column inside a single large box */
    .advsearchbooks-page .detail-grid {
        grid-template-columns: 1fr !important;
        background: linear-gradient(135deg, #DBEAFE, #CCFBF1) !important;
        border: 1px solid rgba(1, 44, 119, 0.16) !important;
        border-radius: 16px !important;
        padding: 8px 16px !important;
        gap: 0 !important;
        /* Stack tiles directly */
        box-shadow: 0 4px 15px rgba(1, 44, 119, 0.05) !important;
    }

    .advsearchbooks-page .detail-grid .detail-tile {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(1, 44, 119, 0.22) !important;
    }

    .advsearchbooks-page .detail-grid .detail-tile:last-child {
        border-bottom: none !important;
    }

    /* Compact padding overall */
    .advsearchbooks-page .lg-page {
        padding: 100px 8px 24px !important;
    }

    .advsearchbooks-page .detail-main-layout {
        padding: 12px 10px !important;
    }

    /* Nav arrows */
    .advsearchbooks-page .detail-nav-side-arrow {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
    }
}

/* Logged-in only fields visibility control */
body:not(.ss-logged-in) .bh-logged-in-only,
body:not(.ss-logged-in) .ss-logged-in-only {
    display: none;
}

/* ── Print styles ── */
@media print {

    .advsearchbooks-page .lg-bg,
    .advsearchbooks-page .lg-nav-wrap,
    .advsearchbooks-page .lg-sidebar-trigger,
    .advsearchbooks-page .lg-sidebar,
    .advsearchbooks-page .lg-sidebar-backdrop,
    .advsearchbooks-page .lg-footer {
        display: none !important;
    }

    .advsearchbooks-page .lg-page {
        padding-top: 0 !important;
    }

    .advsearchbooks-page .lg-search-card,
    .advsearchbooks-page .lg-results-card {
        background: #fff !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
}

/* Modal buttons styling to match screenshot precisely */
.advsearchbooks-page .bn-modal-btn-blue {
    background-color: #1e90ff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: background 0.15s !important;
}

.advsearchbooks-page .bn-modal-btn-blue:hover {
    background-color: #1a7fe6 !important;
}

.advsearchbooks-page .bn-modal-btn-grey {
    background-color: #6b7280 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: background 0.15s !important;
}

.advsearchbooks-page .bn-modal-btn-grey:hover {
    background-color: #555c66 !important;
}

/* ─── CUSTOM DROPDOWN SYSTEM ─── */
.advsearchbooks-page .lg-pill-dropdown {
    overflow: visible !important;
    position: relative;
}

.advsearchbooks-page .lg-pill-dropdown.open {
    z-index: 1000 !important;
}

.advsearchbooks-page .lg-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #012c77 !important;
    height: 20px;
    padding: 0 !important;
    cursor: pointer;
    text-align: left;
}

.advsearchbooks-page .lg-dropdown-arrow {
    font-size: 10px;
    color: rgba(1, 44, 119, 0.6);
    transition: transform 0.2s;
}

.advsearchbooks-page .lg-pill-dropdown.open .lg-dropdown-arrow {
    transform: rotate(180deg);
}

.advsearchbooks-page .lg-dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 8px;
    max-height: 240px;
    overflow: hidden;
    background: #ffffff !important;
    border-radius: 16px;
    border: 1px solid rgba(1, 44, 119, 0.12);
    box-shadow: 0 12px 32px rgba(1, 44, 119, 0.15);
    z-index: 1000;
}

.advsearchbooks-page .lg-dropdown-menu.open {
    display: flex;
}

.advsearchbooks-page .lg-dropdown-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 44, 119, 0.05);
    border-radius: 10px;
    margin: 8px 10px 4px;
    padding: 5px 10px;
    border: 1px solid rgba(1, 44, 119, 0.08);
}

.advsearchbooks-page .lg-dropdown-search i {
    color: #9CA3AF;
    font-size: 11px;
}

.advsearchbooks-page .lg-dropdown-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 11.5px;
    color: #012c77;
    font-family: inherit;
    width: 100%;
    font-weight: 600;
}

.advsearchbooks-page .lg-dropdown-options {
    overflow-y: auto;
    flex: 1;
    padding: 4px;
}

.advsearchbooks-page .lg-dropdown-options::-webkit-scrollbar {
    width: 5px;
}

.advsearchbooks-page .lg-dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(1, 44, 119, 0.15);
    border-radius: 4px;
}

.advsearchbooks-page .lg-dropdown-option {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #012c77;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.advsearchbooks-page .lg-dropdown-option:hover {
    background: rgba(1, 44, 119, 0.05);
}

.advsearchbooks-page .lg-dropdown-option.selected {
    background: rgba(0, 182, 190, 0.1);
    color: #00b6be;
    font-weight: 800;
}


/* Book Name cell */
.advsearchbooks-page .lg-table tbody tr.main-row td:nth-child(2) {
    font-weight: bolder !important;
    color: #012c77 !important;
}

.advsearchbooks-page .lg-table tbody tr.main-row td {
    color: #475569d9 !important;
}

.advsearchbooks-page .dataTables_info {
    display: none !important;
}

.advsearchbooks-page #DataTables_Table_1 td,
.advsearchbooks-page #DataTables_Table_1 th,
.advsearchbooks-page #DataTables_Bhandar_Table td,
.advsearchbooks-page #DataTables_Bhandar_Table th {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.advsearchbooks-page #DataTables_Table_1 thead th:nth-child(3),
/* PART */
.advsearchbooks-page #DataTables_Table_1 tbody td:nth-child(3),
.advsearchbooks-page #DataTables_Bhandar_Table thead th:nth-child(3),
/* PART */
.advsearchbooks-page #DataTables_Bhandar_Table tbody td:nth-child(3) {
    min-width: 80px;
}

.advsearchbooks-page #DataTables_Table_1 thead th:nth-child(6),
/* LANGUAGE */
.advsearchbooks-page #DataTables_Table_1 tbody td:nth-child(6),
.advsearchbooks-page #DataTables_Bhandar_Table thead th:nth-child(6),
/* LANGUAGE */
.advsearchbooks-page #DataTables_Bhandar_Table tbody td:nth-child(6) {
    min-width: 120px;
}

@media print {

    /* Hide first header column */
    .advsearchbooks-page #DataTables_Table_1 thead th:first-child,
    .advsearchbooks-page #DataTables_Table_1 tbody td:first-child,
    .advsearchbooks-page #DataTables_Bhandar_Table thead th:first-child,
    .advsearchbooks-page #DataTables_Bhandar_Table tbody td:first-child {
        display: none !important;
    }

}



/* Advance search design end  */

/* Issue book (members page ) */
#members-page .issue-section-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#members-page .issue-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

#members-page .issue-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#members-page .issue-tbl thead tr {
    background: linear-gradient(to right, #012c77 0%, #1D4ED8 50%, #00b6be 100%) !important;
}

#members-page .issue-tbl thead th {
    padding: 11px 16px;
    text-align: left;
    font-weight: 800;
    color: #fff !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

#members-page .issue-tbl thead th:first-child {
    border-top-left-radius: 14px !important;
}

#members-page .issue-tbl thead th:last-child {
    border-top-right-radius: 14px !important;
}

#members-page .issue-tbl tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    color: #374151;
}

#members-page .issue-tbl tbody tr:last-child td {
    border-bottom: none;
}

#members-page .issue-tbl tbody tr:hover td {
    background: rgba(29, 78, 216, 0.03);
}

#members-page .mem-tbl {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
}

#members-page .mem-tbl thead tr {
    background: linear-gradient(to right, #012c77 0%, #1D4ED8 50%, #00b6be 100%) !important;
}

#members-page .mem-tbl thead th {
    padding: 11px 16px !important;
    text-align: left !important;
    font-weight: 800 !important;
    color: #fff !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
}

#members-page .mem-tbl thead th:first-child {
    border-top-left-radius: 14px !important;
}

#members-page .mem-tbl thead th:last-child {
    border-top-right-radius: 14px !important;
}

#members-page .mem-tbl tbody td {
    padding: 11px 14px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle !important;
    color: #374151 !important;
}

#members-page .mem-tbl tbody tr:hover td {
    background: rgba(29, 78, 216, 0.04) !important;
    cursor: pointer !important;
}

#members-page .mem-tbl tbody tr.selected-row td {
    background: rgba(29, 78, 216, 0.08) !important;
}



#members-page .mem-name-link {
    color: #1D4ED8 !important;
    font-weight: 700;
    cursor: pointer;
}

#members-page .mem-name-link:hover {
    text-decoration: underline;
}

#members-page .issue-action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

#members-page .ib-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

#members-page .ib-btn-print {
    background: #4B5563 !important;
    color: #fff !important;
}

#members-page .ib-btn-print:hover {
    background: #374151 !important;
}

#members-page .ib-btn-add {
    background: #1D4ED8 !important;
    color: #fff !important;
}

#members-page .ib-btn-add:hover {
    background: #1e40af !important;
}

#members-page .ib-btn-edit {
    background: #F59E0B !important;
    color: #fff !important;
}

#members-page .ib-btn-edit:hover {
    background: #D97706 !important;
}

#members-page .ib-btn-delete {
    background: #EF4444 !important;
    color: #fff !important;
}

#members-page .ib-btn-delete:hover {
    background: #DC2626 !important;
}

#members-page .ib-btn-issue {
    background: linear-gradient(135deg, #00b6be, #48dbfb) !important;
    color: #fff !important;
}

#members-page .ib-btn-issue:hover {
    box-shadow: 0 4px 12px rgba(0, 182, 190, 0.35) !important;
    transform: translateY(-1px) !important;
}

#members-page .mem-search-input {
    padding: 7px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    max-width: 340px;
}

#members-page .mem-search-input:focus {
    border-color: #1D4ED8;
}

#members-page .issue-hint {
    text-align: center;
    font-size: 12.5px;
    color: #9CA3AF;
    font-weight: 600;
    padding: 8px 0;
}

#members-page .show-entries-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #6B7280;
    margin-left: auto;
}

#members-page .show-entries-wrap select {
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
}

/* issue table input fields */
#members-page .issue-tbl td input[type=text] {
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    width: 100%;
    min-width: 90px;
    transition: border-color 0.2s;
}

#members-page .issue-tbl td input[type=text]:focus {
    border-color: #1D4ED8;
}

#members-page .dataTables_info {
    font-size: 12px !important;
    color: #9CA3AF !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
}

#members-page .member-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

#members-page .member-search {
    flex: 1;
    max-width: 360px;
}

#members-page .member-length {
    display: flex;
    align-items: center;
}

#members-page .dataTables_filter {
    position: relative;
    margin: 0;
}

#members-page .dataTables_filter label {
    margin: 0;
}

#members-page .dataTables_filter input {
    width: 100%;
    padding-left: 36px;
}

#members-page .members-tbl .dataTables_wrapper .dataTables_filter input {
    width: 360px !important;
    margin-left: 2% !important;
}

#members-page .members-tbl .dataTables_wrapper .dataTables_filter {
    float: none !important;
}

#members-page .dataTables_wrapper .dataTables_filter input:focus {
    background-repeat: no-repeat !important;
    background-position: 12px center !important;
    background-size: 16px 16px !important;
    padding-left: 40px !important;
}

body.modal-open #members-page {
    filter: blur(6px);
    transition: .25s;
}

#members-page button.dt-button.buttons-excel.buttons-html5.buttons-excel-hide {
    display: none !important;
}

#members-page .book-no {
    color: #1D4ED8 !important;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* Datatable scroll */
.datatable-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.datatable-scroll table {
    min-width: 850px;
}

.datatable-scroll th,
.datatable-scroll td {
    white-space: nowrap;
}

@media print {

    #members-page .ss-main {
        margin: 10px !important;
    }

    /* Space between sections */
    #members-page #issue-book {
        margin-bottom: 30px !important;
        page-break-after: avoid;
    }

    #members-page #members {
        margin-top: 30px !important;
        padding-top: 20px !important;
    }

    /* Tables */
    #members-page table {
        width: 100% !important;
        border-collapse: collapse;
    }

    #members-page th,
    #members-page td {
        padding: 8px;
        border: 1px solid #ccc;
    }
}

/* Issue book (members page ) end */


/* button disabled for search  */
.disabled-book-btn {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
    /* Prevent click */
}

/* Add book design start */


#addBook .modal-header {
    padding: 10px 20px !important;
}

#addBook .modal-body {
    padding: 5px 20px !important;
}

#addBook .col-custom-1-5 {
    flex: 0 0 16%;
    max-width: 16%;
}

#addBook .col-custom-1-6 {
    flex: 0 0 12%;
    max-width: 12%;
}

#addBook #toggleIcon {
    flex-shrink: 0;
    cursor: pointer;
    margin-left: 10px;
    align-self: center;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #012c77;
    font-size: 20px;
    transition: all 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}



#addBook .toggle-icon.plus::before {
    content: '+';
    display: block;
    transform: translateY(-2px);
}

#addBook .toggle-icon.minus::before {
    content: '−';
    display: block;
    transform: translateY(-2px);
}

#addBook .img-custom {
    width: 350px;
    height: 350px;
}

#addBook #ADDBOOK {
    border-radius: 24px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, .125);
    padding: 24px;
    background: rgba(255, 255, 255, 0.88) !important;
}

#addBook #ADDBOOK:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1.5px 0 rgba(255, 255, 255, 0.90), inset 0 -1px 0 rgba(255, 255, 255, 0.15) !important;
}

#addBook .card {
    border: none;
    box-shadow: none;
    background: transparent;
}

#addBook .bg-body {
    background-color: transparent !important;
}

#addBook .ss-input-pill-card {
    padding: 14px;
    min-height: auto;
    border-radius: 16px;
}

#addBook .row {
    --bs-gutter-x: 0.5rem;
}

#addBook .col-sm-2 {
    flex: 0 0 auto;
    width: 13%;
}

#addBook .form-group .form-line {
    border-bottom: none;
}

#addBook #searchloader {
    height: 8vh;
}

#addBook .ss-input-pill-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    gap: 6px;
    font-weight: 800;
    color: #012c77;
    text-transform: uppercase;
    letter-spacing: .5px;
}

#addBook .ss-input-pill-label-row i {

    font-size: 13px;
}

#addBook .ss-input-pill-card .form-group,
#addBook .ss-input-pill-card .form-line {
    margin: 0;
}

#addBook .ss-input-pill-field {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: 28px;
    font-size: 15px;
    font-weight: 700;
}

#addBook .ss-input-pill-field select {
    color: #00B6BE !important;
}

#addBook .ss-input-pill-field input {
    color: #012c77 !important;
}

#addBook .ss-input-pill-field:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#addBook .ss-input-pill-field::placeholder {
    color: #7b8ba6;
    font-weight: 600;
}

#addBook .dropdown-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #012c77;
    font-size: 12px;
}



/* Tablet */


/* ===========================
		   Master ID Button
		=========================== */

#addBook .book-num-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(255, 107, 0, 0.12) !important;
    color: #FF6B00 !important;
    border: 1px solid rgba(255, 107, 0, 0.25) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 0.03em !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(255, 107, 0, 0.05) !important;
    text-decoration: none !important;
}

#addBook .book-num-pill:hover {
    background: #FF6B00 !important;
    color: #ffffff !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.25) !important;
    transform: translateY(-0.5px) !important;
}


/* ===========================
		   Info
		=========================== */

#addBook #master_data_table_wrapper .dataTables_info {
    font-size: 13px !important;
    color: #666 !important;
}



/* new kruti model design  */
#addBook #krutiModal .modal-dialog {
    max-width: 1200px;
}

#addBook #krutiModal .modal-content {
    border: none;
    background: transparent;
    box-shadow: none;
}

#addBook #krutiModal .ss-modal {
    width: 100%;
    max-width: none !important;
}

#addBook #krutiModal .form-input {
    width: 100%;
    padding-left: 15px !important;
}

#addBook #krutiModal select.form-input {
    appearance: auto;
}

#addBook #krutiModal .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #fff !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 14px !important;
}

/*==========================
		    IMAGE MODAL
		==========================*/

#addBook #imageModal .modal-dialog {
    max-width: 900px;
}

#addBook #imageModal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border-top: 4px solid #ff6b00;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

/* Header */

#addBook #imageModal .modal-header {
    padding: 22px 28px 12px;
    border: none;
    background: #fff;
}

#addBook #imageModal .modal-title {
    color: #012c77;
    font-size: 30px;
    font-weight: 800;
}

#addBook #imageModal .btn-close {
    opacity: .7;
    transition: .25s;
}

#addBook #imageModal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Body */

#addBook #imageModal .modal-body {
    padding: 20px 28px 30px;
    background: #fff;
}

/* Heading */

#addBook #imageModal h5 {
    color: #012c77;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

/* Image Card */

#addBook #coverImageContainer,
#addBook #indexImageContainer {
    height: 420px;
    border: 2px dashed rgba(1, 44, 119, .15);
    border-radius: 20px;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: .3s;
}

#addBook #coverImageContainer:hover,
#addBook #indexImageContainer:hover {
    border-color: #00b6be;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

/* Image */

#addBook #coverImageContainer img,
#addBook #indexImageContainer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* Placeholder */

#addBook #coverImageContainer p,
#addBook #indexImageContainer p {
    color: #8d97aa;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Responsive */


#addBook select.form-control {
    appearance: auto;
    /* Restores the default select dropdown */
    -webkit-appearance: auto;
    /* For Safari */
    -moz-appearance: auto;
    /* For Firefox */
}

#addBook #master_data_table td,
#addBook #master_data_table th {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 10px 8px !important;
    font-size: 12.5px !important;
}

#addBook .dataTables_wrapper {
    overflow: auto !important;
}

#master_data_table th:nth-child(15),
#master_data_table td:nth-child(15) {
    display: none;
}

#addBook #master_data_table thead th,
#addBook #master_data_table tbody td {
    min-width: 50px;
    max-width: 60px;
}


#addBook .book-container {
    background-color: #fff !important;
    padding: 31px;
}

/* Bootstrap modal */
#addBook #addBookSizeModal .modal-dialog {
    max-width: 650px;
}

#addBook #addBookSizeModal .modal-content {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Reuse your custom modal design */
#addBook #addBookSizeModal .ss-modal {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

#addBook .box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Reverted Button Colors classes with Shine Effects */
#addBook .btn-navy {
    background: #012c77 !important;
    border: 1px solid #012c77 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(1, 44, 119, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#addBook .btn-navy:hover {
    background: #083e9b !important;
    border-color: #083e9b !important;
    box-shadow: 0 6px 18px rgba(1, 44, 119, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

#addBook .btn-teal {
    background: #00b6be !important;
    border: 1px solid #00b6be !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 182, 190, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#addBook .btn-teal:hover {
    background: #00c9d2 !important;
    border-color: #00c9d2 !important;
    box-shadow: 0 6px 18px rgba(0, 182, 190, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

#addBook .btn-orange {
    background: #FF6B00 !important;
    border: 1px solid #FF6B00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#addBook .btn-orange:hover {
    background: #ff7e1a !important;
    border-color: #ff7e1a !important;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

#addBook .btn-navy,
#addBook .btn-teal,
#addBook .btn-orange {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}

#addBook .btn-navy::before,
#addBook .btn-teal::before,
#addBook .btn-orange::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50% !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent) !important;
    border-radius: 4px 4px 50% 50% !important;
    pointer-events: none !important;
}

@media (max-width:991px) {

    #addBook .col-custom-1-5,
    #addBook .col-custom-1-6,
    #addBook .add-book .col-sm-2,
    #addBook .add-book .col-sm-3 {

        flex: 0 0 50%;
        max-width: 50%;
        width: 50% !important;
        margin-bottom: 12px;
    }

}

@media (max-width:576px) {

    #addBook .col-custom-1-5,
    #addBook .col-custom-1-6,
    #addBook .add-book .col-sm-2,
    #addBook .add-book .col-sm-3 {

        flex: 0 0 100%;
        max-width: 100%;
        width: 100% !important;
    }

    #addBook .ss-input-pill-card {

        padding: 12px;
        margin-bottom: 10px;
    }

    #addBook .ss-input-pill-label-row {

        font-size: 11px;
    }

    #addBook .ss-input-pill-field {

        font-size: 14px;
        height: 36px;
    }

}

@media(max-width:768px) {
    #addBook .add-book-body {
        padding: 0 !important;
    }

    #addBook .ss-container {
        padding: 0 12px 40px !important;
    }

    #addBook #coverImageContainer,
    #addBook #indexImageContainer {
        height: 260px;
        margin-bottom: 20px;
    }

    #addBook .book-container {
        padding: 15px;
    }

    #addBook #krutiModal .ss-modal {
        padding: 10px 5px !important;
    }

    #addBook .img-custom {
        width: 400px;
        height: 300px;
    }
}

@media (max-width: 575.5px) {
    #addBook .col-custom-1-5 {
        flex: 0 0 100%;
        /* Adjust to fit better on smaller screens */
        max-width: 100%;
    }

    #addBook .col-custom-1-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Add book design end */

/* Book Registry design start */
#BookRegistry table#DataTables_Bhandar_Table td.dt-control {
    text-align: left !important;
}

#BookRegistry table.dataTable td.dt-control:before {
    display: none !important;
}

/* ──  NEW CSS Books table sizing ── */
/* SIZE circle badge */
#BookRegistry .size-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: rgba(0, 182, 190, 0.12);
    color: #00838F;
    border: 1.5px solid rgba(0, 182, 190, 0.25);
    transition: transform 0.2s;
}

#BookRegistry #DataTables_Bhandar_Table tbody tr:hover .size-circle {
    transform: scale(1.1);
}

#BookRegistry .size-circle.a3 {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
    border-color: rgba(245, 158, 11, 0.3);
}

#BookRegistry .size-circle.a4 {
    background: rgba(0, 182, 190, 0.12);
    color: #00838F;
    border-color: rgba(0, 182, 190, 0.3);
}

#BookRegistry .size-circle.a5 {
    background: rgba(79, 70, 229, 0.12);
    color: #4F46E5;
    border-color: rgba(79, 70, 229, 0.3);
}

#BookRegistry .size-circle.folio {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

#BookRegistry .part {
    background: rgba(1, 44, 119, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 800;
    color: #012c77;
    font-size: 11.5px;
    font-family: 'Outfit', sans-serif;
}

/* Book number pill */
#BookRegistry .book-num-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(29, 78, 216, 0.10);
    color: #1D4ED8 !important;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s;
}

#BookRegistry .book-num-pill:hover {
    background: #1D4ED8;
    color: #fff !important;
}

/* Book name strong */
#BookRegistry #DataTables_Bhandar_Table td strong {
    color: #0A2540;
    font-size: 13.5px;
}

/* Action buttons row */
#BookRegistry .tbl-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

#BookRegistry .tbl-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

#BookRegistry .tbl-btn-edit {
    background: rgba(1, 44, 119, 0.08);
    color: #012c77;
    border: 1px solid rgba(1, 44, 119, 0.15);
}

#BookRegistry .tbl-btn-edit:hover {
    background: #012c77;
    color: #fff;
}

#BookRegistry .tbl-btn-issue {
    background: linear-gradient(135deg, #00b6be, #48dbfb);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 182, 190, 0.30);
}

#BookRegistry .tbl-btn-issue:hover {
    box-shadow: 0 5px 14px rgba(0, 182, 190, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

#BookRegistry .dataTables_wrapper .dt-buttons {
    margin-bottom: 12px;
}

#BookRegistry .dataTables_wrapper {
    overflow-x: auto;
}

/* Detail panel grid */
#BookRegistry .lg-detail-row td {
    vertical-align: top;
}

#BookRegistry .lg-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid rgba(1, 44, 119, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
}

#BookRegistry .lg-detail-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748B;
}

#BookRegistry .lg-detail-value {
    font-size: 12.5px;
    font-weight: 700;
    color: #0A2540;
    line-height: 1.4;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Contact badge in Bhandar table */
#BookRegistry .contact-phone-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.10);
    color: #2563EB;
    font-size: 10px;
    flex-shrink: 0;
}

/* Floating bulk action toolbar styling */
#BookRegistry .bulk-actions-toolbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 100px);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(10, 37, 64, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 14px 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    opacity: 0;
    pointer-events: none;
    color: #fff;
}

#BookRegistry .bulk-actions-toolbar.active {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

#BookRegistry .bulk-count-badge {
    background: #FF6B00;
    color: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    font-weight: 800;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
}

#BookRegistry .bulk-btn-issue {
    background: linear-gradient(135deg, #00b6be, #0097a7);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 182, 190, 0.3);
}

#BookRegistry .bulk-btn-issue:hover {
    box-shadow: 0 6px 18px rgba(0, 182, 190, 0.45);
    transform: translateY(-1px);
}

#BookRegistry .bulk-btn-return {
    background: linear-gradient(135deg, #FF6B00, #e05e00);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

#BookRegistry .bulk-btn-return:hover {
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45);
    transform: translateY(-1px);
}

#BookRegistry .lg-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px 20px;
    margin-bottom: 20px;
}

/* Book Registry design end */

/* Member History design start */
#MemberHistory #DataTables_Table_1 tfoot {
    display: none !important;
}

#MemberHistory .pull-left {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0A2540 !important;
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* #MemberHistory #DataTables_Table_1 {
        overflow-x: auto !important;
    }

    #MemberHistory .dataTables_wrapper {
        overflow: auto !important;
    } */

    #MemberHistory .modal-header {
        display: block;
    }

    #MemberHistory h5 {
        font-size: 23px !important;
    }

    #MemberHistory .modal-header button {
        width: 100% !important;
        margin: 22px 186px 0px 0px !important;
    }

    #MemberHistory .search-field-wrap {
        width: 100% !important;
    }

    #MemberHistory #filterData {
        margin-top: 7px !important;
        margin-left: 11px;
        width: 93% !important;
    }
}

/* Member History design end */

/* Edit Book design start */


#editbook body {
    -webkit-user-select: none;
    /* Chrome/Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* Standard */
}

#editbook .edit-book [class^="col-sm-"] {
    margin-bottom: 2px !important;
}

#editbook .edit-book .form-group {
    margin-bottom: 10px;
}

/* custom style for input filed */
#editbook .col-custom-1-5 {
    flex: 0 0 12.5%;
    /* 1.5/12 = 0.125 or 12.5% */
    max-width: 12.5%;
}

@media (max-width: 575.5px) {
    #editbook .col-custom-1-5 {
        flex: 0 0 100%;
        /* Adjust to fit better on smaller screens */
        max-width: 100%;
    }

    #editbook .ss-search-grid {
        display: block !important;
    }

    #editbook .ss-input-pill-card {
        margin-top: 17px;
    }

    #editbook #id_updatebookform {
        margin: 20px;
    }
}

/* ========== NEW UI STYLES ========== */
#editbook .ss-main {
    position: relative;
    z-index: 10;
}

#editbook .ss-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

#editbook .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* #editbook .page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

#editbook .page-title .orange {
    color: #ff6b00;
} */

#editbook .ss-search-bar {
    width: 220px;
    border-radius: 20px !important;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    outline: none;
}

#editbook .ss-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

#editbook .ss-btn-teal {
    background: #00b6be;
    color: white;
}

#editbook .ss-btn-teal:hover {
    background: #009da4;
}

#editbook .ss-btn-orange {
    background: #ff6b00;
    color: white;
}

#editbook .ss-btn-orange:hover {
    background: #e66000;
}

#editbook .ss-action-btn {
    padding: 10px 28px;
    font-size: 15px;
}

#editbook .ss-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px;
    overflow: visible !important;
    position: relative;
    z-index: 10 !important;
}

#editbook .ss-search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 991px) {
    #editbook .ss-search-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    #editbook .ss-search-grid {
        grid-template-columns: 1fr !important;
    }

    #editbook .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

#editbook .ss-input-pill-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s;
}

#editbook .ss-input-pill-card:focus-within {
    border-color: #00b6be;
}

#editbook .ss-input-pill-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#editbook .ss-input-pill-field {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14.5px;
    font-weight: 700;
    color: #012c77;
    padding: 4px 0;
    font-family: inherit;
}

#editbook .ss-input-pill-field::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Year Type Select styling inside pill */
#editbook .ss-input-pill-card select {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14.5px;
    font-weight: 700;
    color: #012c77;
    padding: 4px 0;
    font-family: inherit;
    cursor: pointer;
}

/* Edition dropdown icon */
#editbook .edition-wrap,
#editbook .language-wrap {
    position: relative;
}

#editbook .edition-wrap .dropdown-icon,
#editbook .language-wrap .dropdown-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #012c77;
    font-size: 12px;
}

/* Animations */
#editbook .animate-fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Size dropdown start */

#editbook #sizeDropdownWrapper {
    position: relative;
    overflow: visible !important;
    z-index: 1000;
}

#editbook .ss-size-trigger {
    position: relative;
}

#editbook .ss-size-input {
    width: 100%;
    height: auto;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #012c77;
    outline: none;
    cursor: pointer;
    padding-right: 40px;
}

#editbook .ss-size-input::placeholder {
    color: #012c77;
}

#editbook #dropdownIconSize {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
    font-size: 12px;
}

#editbook #sizeDropdownWrapper.open #dropdownIconSize {
    transform: translateY(-50%) rotate(180deg);
}

/* popup */
#editbook .ss-size-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: 100%;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #dfe6f1;
    padding: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    z-index: 99999;
}

#editbook #sizeDropdownWrapper.open {
    z-index: 99999;
}

#editbook #sizeDropdownWrapper.open .ss-size-dropdown {
    display: block;
}

/* search */
#editbook .ss-size-search {
    display: flex;
    align-items: center;
    background: #f5f7fb;
    border: 1px solid #d9e2ee;
    border-radius: 16px;
    padding: 6px 12px;
    /* margin-bottom: 12px; */
}

#editbook .ss-size-search i {
    color: #a5acb8;
    margin-right: 10px;
}

#editbook .ss-size-search input {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
}

/* list */
#editbook .ss-size-list {
    max-height: 180px;
    overflow-y: auto;
}

/* option */
#editbook .ss-size-item {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #012c77;
    cursor: pointer;
}

#editbook .ss-size-item:hover {
    background: rgba(0, 182, 190, 0.08) !important;
    color: #00b6be !important;
}

/* scrollbar */

#editbook .ss-size-list::-webkit-scrollbar {
    width: 8px;
}

#editbook .ss-size-list::-webkit-scrollbar-track {
    background: #edf2f8;
    border-radius: 20px;
}

#editbook .ss-size-list::-webkit-scrollbar-thumb {
    background: #c5cfdb;
    border-radius: 20px;
}

/* Size dropdown end */

/* Edit Book design end */

.dt-buttons .dt-button,
.dt-buttons button {
    background: linear-gradient(135deg, #00b6be 0%, #00939a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 182, 190, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
    margin-left: 29px !important;
    border: none !important;
}

.dt-buttons .dt-button:hover,
.dt-buttons button:hover {
    background: linear-gradient(135deg, #009ea6 0%, #007c82 100%) !important;
}

#issued-book-page .badge-returned {
    background: #DBEAFE;
    color: #2563EB;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

/* Blur the background */
.modal-backdrop.show {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 1 !important;
}