/* ============================================================
   Flex Secure Portal - Master Stylesheet
   Sidebar theme: Kesariya (saffron) + White + India Green
   (Indian flag inspired tricolor)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    --saffron:        #FF9933;   /* Kesariya */
    --saffron-deep:   #E67E09;
    --white:          #FFFFFF;
    --india-green:    #138808;   /* India green */
    --india-green-dk: #0C6006;
    --ashoka-blue:    #000080;   /* Ashoka Chakra blue accent (subtle) */

    --ink:           #1b1f24;
    --ink-soft:      #4a5159;
    --line:          #e3e6ea;
    --bg:            #f6f7f9;
    --bg-panel:      #ffffff;
    --accent:        #1f6feb;

    --sidebar-w:     260px;
    --radius:        10px;
    --shadow-sm:     0 1px 2px rgba(16,24,40,.06);
    --shadow-md:     0 6px 18px rgba(16,24,40,.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   SIDEBAR — kesariya / white / green vertical tricolor
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Vertical tricolor: saffron -> white -> green */
    background: linear-gradient(
        to bottom,
        var(--saffron) 0%,
        var(--saffron) 18%,
        var(--white)   36%,
        var(--white)   72%,
        var(--india-green) 92%,
        var(--india-green) 100%
    );
    box-shadow: var(--shadow-md);
    z-index: 100;
    overflow: hidden;
}

/* Subtle Ashoka Chakra watermark in white band */
.sidebar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 0, 128, 0.06);
    background:
        radial-gradient(circle at center, rgba(0,0,128,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ---------- Brand block (on saffron band) ---------- */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    position: relative;
    z-index: 1;
}
.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--white);
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--white);
}
.brand-text small {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.92);
    margin-top: 2px;
    font-weight: 600;
}

/* ---------- Nav (on white band) ---------- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin: 2px 0;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
    text-decoration: none;
}
.nav-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--saffron);
    flex-shrink: 0;
    transition: background .15s ease, transform .15s ease;
}
.nav-item:hover {
    background: linear-gradient(90deg, rgba(255,153,51,0.12), rgba(19,136,8,0.10));
    text-decoration: none;
    transform: translateX(2px);
}
.nav-item:hover::before { background: var(--india-green); transform: scale(1.4); }
.nav-item.active {
    background: linear-gradient(90deg, var(--saffron), var(--india-green));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.nav-item.active::before { background: var(--white); }

.nav-logout {
    margin-top: auto;
    color: var(--india-green-dk);
    font-weight: 600;
}
.nav-logout::before { background: var(--india-green); }
.nav-logout:hover {
    background: var(--india-green);
    color: var(--white);
}
.nav-logout:hover::before { background: var(--white); }

/* ---------- Sidebar footer (on green band) ---------- */
.sidebar-footer {
    padding: 14px 20px;
    color: rgba(255,255,255,0.95);
    font-size: 11px;
    letter-spacing: .4px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.18);
    position: relative;
    z-index: 1;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.container {
    margin-left: var(--sidebar-w);
    padding: 28px 36px 40px;
    min-height: 100vh;
    max-width: 1280px;
}

/* ---------- Page heading ---------- */
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    flex-wrap: wrap;
}
.page-heading h1 {
    margin: 4px 0 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
}
.eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--saffron-deep);
    text-transform: uppercase;
}
.muted { color: var(--ink-soft); font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .12s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; background: #f1f3f5; }
.btn:active { transform: translateY(1px); }
.btn.primary {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--india-green) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255,153,51,0.25);
}
.btn.primary:hover {
    background: linear-gradient(135deg, var(--saffron-deep) 0%, var(--india-green-dk) 100%);
}

/* ---------- Stats row ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 28px;
}
.stat {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--saffron), var(--india-green));
}
.stat span { font-size: 12px; color: var(--ink-soft); letter-spacing: .4px; }
.stat strong { font-size: 28px; font-weight: 700; color: var(--ink); }

/* ---------- Panels ---------- */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 0 0 24px;
    box-shadow: var(--shadow-sm);
}
.panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}
.section-head h2 { margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead th {
    text-align: left;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(255,153,51,0.08), rgba(19,136,8,0.08));
    color: var(--ink);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--line);
}
tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    vertical-align: top;
}
tbody tr:hover { background: #fafbfc; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Pill / event badges ---------- */
.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,153,51,0.18), rgba(19,136,8,0.18));
    color: var(--india-green-dk);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    border: 1px solid rgba(19,136,8,0.25);
    text-transform: uppercase;
}

/* ---------- Endpoint blocks ---------- */
.endpoint {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin: 10px 0;
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-left: 4px solid var(--saffron);
    border-radius: 8px;
    flex-wrap: wrap;
}
.endpoint code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    color: var(--india-green-dk);
    word-break: break-all;
    flex: 1 1 auto;
}
.endpoint span {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 700;
    background: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

/* ---------- Alert / flash ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 20px;
    border: 1px solid var(--line);
    background: #fff8e1;
    border-left: 4px solid var(--saffron);
    color: var(--ink);
    font-size: 14px;
}
.alert.success { background: #e8f5e9; border-left-color: var(--india-green); }
.alert.error   { background: #fdecea; border-left-color: #c62828; }
.alert.info    { background: #e3f2fd; border-left-color: #1976d2; }

/* ---------- Main footer (under content) ---------- */
.main-footer {
    margin-left: var(--sidebar-w);
    padding: 18px 36px;
    text-align: center;
    font-size: 12px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    background: var(--white);
}

/* ============================================================
   RESPONSIVE — collapse sidebar on small screens
   ============================================================ */
@media (max-width: 860px) {
    :root { --sidebar-w: 220px; }
    .container, .main-footer { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: column;
    }
    .sidebar::after { display: none; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 12px; }
    .nav-item { flex: 1 1 auto; justify-content: center; }
    .nav-logout { margin-top: 0; }
    .container, .main-footer { margin-left: 0; }
    .page-heading { flex-direction: column; align-items: stretch; }
}
/* ============================================================
   Flex Secure Portal - Master Stylesheet
   Sidebar theme: Kesariya (saffron) + White + India Green
   (Indian flag inspired tricolor)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    --saffron:        #FF9933;   /* Kesariya */
    --saffron-deep:   #E67E09;
    --white:          #FFFFFF;
    --india-green:    #138808;   /* India green */
    --india-green-dk: #0C6006;
    --ashoka-blue:    #000080;   /* Ashoka Chakra blue accent (subtle) */

    --ink:           #1b1f24;
    --ink-soft:      #4a5159;
    --line:          #e3e6ea;
    --bg:            #f6f7f9;
    --bg-panel:      #ffffff;
    --accent:        #1f6feb;

    --sidebar-w:     260px;
    --radius:        10px;
    --shadow-sm:     0 1px 2px rgba(16,24,40,.06);
    --shadow-md:     0 6px 18px rgba(16,24,40,.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   SIDEBAR — kesariya / white / green vertical tricolor
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Vertical tricolor: saffron -> white -> green */
    background: linear-gradient(
        to bottom,
        var(--saffron) 0%,
        var(--saffron) 18%,
        var(--white)   36%,
        var(--white)   72%,
        var(--india-green) 92%,
        var(--india-green) 100%
    );
    box-shadow: var(--shadow-md);
    z-index: 100;
    overflow: hidden;
}

/* Subtle Ashoka Chakra watermark in white band */
.sidebar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 0, 128, 0.06);
    background:
        radial-gradient(circle at center, rgba(0,0,128,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ---------- Brand block (on saffron band) ---------- */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    position: relative;
    z-index: 1;
}
.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--white);
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--white);
}
.brand-text small {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.92);
    margin-top: 2px;
    font-weight: 600;
}

/* ---------- Nav (on white band) ---------- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin: 2px 0;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
    text-decoration: none;
}
.nav-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--saffron);
    flex-shrink: 0;
    transition: background .15s ease, transform .15s ease;
}
.nav-item:hover {
    background: linear-gradient(90deg, rgba(255,153,51,0.12), rgba(19,136,8,0.10));
    text-decoration: none;
    transform: translateX(2px);
}
.nav-item:hover::before { background: var(--india-green); transform: scale(1.4); }
.nav-item.active {
    background: linear-gradient(90deg, var(--saffron), var(--india-green));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.nav-item.active::before { background: var(--white); }

.nav-logout {
    margin-top: auto;
    color: var(--india-green-dk);
    font-weight: 600;
}
.nav-logout::before { background: var(--india-green); }
.nav-logout:hover {
    background: var(--india-green);
    color: var(--white);
}
.nav-logout:hover::before { background: var(--white); }

/* ---------- Sidebar footer (on green band) ---------- */
.sidebar-footer {
    padding: 14px 20px;
    color: rgba(255,255,255,0.95);
    font-size: 11px;
    letter-spacing: .4px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.18);
    position: relative;
    z-index: 1;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.container {
    margin-left: var(--sidebar-w);
    padding: 28px 36px 40px;
    min-height: 100vh;
    max-width: 1280px;
}

/* ---------- Page heading ---------- */
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    flex-wrap: wrap;
}
.page-heading h1 {
    margin: 4px 0 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
}
.eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--saffron-deep);
    text-transform: uppercase;
}
.muted { color: var(--ink-soft); font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .12s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; background: #f1f3f5; }
.btn:active { transform: translateY(1px); }
.btn.primary {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--india-green) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255,153,51,0.25);
}
.btn.primary:hover {
    background: linear-gradient(135deg, var(--saffron-deep) 0%, var(--india-green-dk) 100%);
}

/* ---------- Stats row ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 28px;
}
.stat {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--saffron), var(--india-green));
}
.stat span { font-size: 12px; color: var(--ink-soft); letter-spacing: .4px; }
.stat strong { font-size: 28px; font-weight: 700; color: var(--ink); }

/* ---------- Panels ---------- */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 0 0 24px;
    box-shadow: var(--shadow-sm);
}
.panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}
.section-head h2 { margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead th {
    text-align: left;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(255,153,51,0.08), rgba(19,136,8,0.08));
    color: var(--ink);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--line);
}
tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    vertical-align: top;
}
tbody tr:hover { background: #fafbfc; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Pill / event badges ---------- */
.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,153,51,0.18), rgba(19,136,8,0.18));
    color: var(--india-green-dk);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    border: 1px solid rgba(19,136,8,0.25);
    text-transform: uppercase;
}

/* ---------- Endpoint blocks ---------- */
.endpoint {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin: 10px 0;
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-left: 4px solid var(--saffron);
    border-radius: 8px;
    flex-wrap: wrap;
}
.endpoint code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    color: var(--india-green-dk);
    word-break: break-all;
    flex: 1 1 auto;
}
.endpoint span {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 700;
    background: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

/* ---------- Alert / flash ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 20px;
    border: 1px solid var(--line);
    background: #fff8e1;
    border-left: 4px solid var(--saffron);
    color: var(--ink);
    font-size: 14px;
}
.alert.success { background: #e8f5e9; border-left-color: var(--india-green); }
.alert.error   { background: #fdecea; border-left-color: #c62828; }
.alert.info    { background: #e3f2fd; border-left-color: #1976d2; }

/* ---------- Main footer (under content) ---------- */
.main-footer {
    margin-left: var(--sidebar-w);
    padding: 18px 36px;
    text-align: center;
    font-size: 12px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    background: var(--white);
}

/* ============================================================
   RESPONSIVE — collapse sidebar on small screens
   ============================================================ */
@media (max-width: 860px) {
    :root { --sidebar-w: 220px; }
    .container, .main-footer { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: column;
    }
    .sidebar::after { display: none; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 12px; }
    .nav-item { flex: 1 1 auto; justify-content: center; }
    .nav-logout { margin-top: 0; }
    .container, .main-footer { margin-left: 0; }
    .page-heading { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   LOGIN PAGE — Flex Secure tricolor theme
   ============================================================ */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 0%,   rgba(255,153,51,0.18), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(19,136,8,0.18),  transparent 45%),
        linear-gradient(135deg, #fff7ef 0%, #ffffff 45%, #f1f8ee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Subtle Ashoka-chakra style decorative ring in background */
.login-page::before {
    content: "";
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 520px; height: 520px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 0, 128, 0.07);
    background: radial-gradient(circle at center, rgba(0,0,128,0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

/* ---------- Login card ---------- */
.login-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(16, 24, 40, 0.12),
        0 4px 14px rgba(255, 153, 51, 0.10);
    overflow: hidden;
    border: 1px solid var(--line);
}

/* Tricolor strip across the top of the card */
.login-tricolor {
    display: flex;
    height: 6px;
    width: 100%;
}
.login-tricolor .band { flex: 1 1 33.333%; }
.login-tricolor .band.saffron { background: var(--saffron); }
.login-tricolor .band.white   { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.login-tricolor .band.green   { background: var(--india-green); }

.login-card-body { padding: 32px 36px 30px; }

/* ---------- Brand block ---------- */
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}
.login-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(255,153,51,0.20);
    object-fit: contain;
    background: var(--white);
    padding: 4px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.login-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.login-brand .brand-text strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    background: linear-gradient(135deg, var(--saffron-deep) 0%, var(--india-green-dk) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--india-green-dk); /* fallback */
}
.login-brand .brand-text small {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--ink-soft);
    font-weight: 700;
    margin-top: 4px;
}

/* ---------- Heading ---------- */
.login-head { margin-bottom: 20px; }
.login-head h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}
.login-head .muted { margin: 0; font-size: 13.5px; }

/* ---------- Form ---------- */
.login-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--ink);
    text-transform: uppercase;
}
.field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ink);
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: inherit;
}
.field input::placeholder { color: #9aa0a6; }
.field input:focus {
    border-color: var(--saffron);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.18);
}

/* ---------- Full-width primary button ---------- */
.btn.full { width: 100%; justify-content: center; padding: 12px 16px; font-size: 15px; }

/* ---------- Security hint ---------- */
.login-hint {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-soft);
    justify-content: center;
}
.login-hint .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--india-green);
    box-shadow: 0 0 0 3px rgba(19,136,8,0.18);
    animation: pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(19,136,8,0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(19,136,8,0.06); }
}

/* ---------- Card-footer (year/brand) ---------- */
.login-foot {
    text-align: center;
    font-size: 12px;
    color: var(--ink-soft);
    margin: 0;
    letter-spacing: .3px;
}

/* ---------- Login responsive ---------- */
@media (max-width: 480px) {
    .login-card-body { padding: 24px 22px 22px; }
    .login-brand { gap: 10px; }
    .login-logo { width: 48px; height: 48px; }
    .login-brand .brand-text strong { font-size: 17px; }
    .login-head h1 { font-size: 21px; }
}

/* Flex Secure Premium 3D Theme */
:root {
    --fs-bg: #080d1a;
    --fs-panel: #111a2e;
    --fs-border: rgba(148, 163, 184, .17);
    --fs-text: #f1f5ff;
    --fs-muted: #96a5c4;
    --fs-blue: #6985ff;
    --fs-cyan: #55e5ff;
}

.flex-secure-body {
    background: radial-gradient(ellipse at 75% 0%, #17264a 0%, #080d1a 48%);
    color: var(--fs-text);
    min-height: 100vh;
}

.fs-sidebar {
    background: linear-gradient(160deg, #131d34, #090f1e 75%);
    border-right: 1px solid var(--fs-border);
    box-shadow: 12px 0 45px rgba(0, 0, 0, .22);
}

.fs-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 24px 18px;
    border-bottom: 1px solid var(--fs-border);
}

.fs-logo-3d {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 19px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #7b8cff, #4145c9 55%, #252b70);
    border: 1px solid rgba(255,255,255,.32);
    box-shadow: 0 8px 0 #20275d, 0 14px 28px rgba(82, 104, 255, .3);
    transform: translateY(-2px);
}

.fs-brand .brand-text strong {
    display: block;
    letter-spacing: 1.5px;
    font-size: 14px;
}

.fs-brand .brand-text small {
    display: block;
    color: var(--fs-cyan);
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

.fs-sidebar .nav-item {
    display: block;
    margin: 6px 12px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #bac7e2;
    text-decoration: none;
    transition: .25s ease;
}

.fs-sidebar .nav-item:hover {
    color: #fff;
    background: linear-gradient(110deg, rgba(105,133,255,.2), rgba(85,229,255,.06));
    border-color: rgba(105,133,255,.3);
    transform: translateX(4px);
}

.fs-container {
    padding: 30px;
}

.fs-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.fs-eyebrow {
    color: var(--fs-cyan);
    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 800;
}

.fs-topbar h1 {
    margin: 9px 0 5px;
    font-size: clamp(25px, 4vw, 36px);
    letter-spacing: -.8px;
}

.fs-topbar p {
    color: var(--fs-muted);
    margin: 0;
    font-size: 13px;
}

.fs-admin-badge {
    padding: 11px 15px;
    border: 1px solid var(--fs-border);
    border-radius: 30px;
    background: rgba(17, 26, 46, .8);
    color: #dce6ff;
    font-size: 10px;
    letter-spacing: 1px;
}

.fs-online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #4ce6a2;
    box-shadow: 0 0 12px rgba(76, 230, 162, .7);
}

.fs-hero-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 240px;
    padding: 30px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,.25);
    background:
        radial-gradient(circle at 85% 20%, rgba(85,229,255,.28), transparent 27%),
        linear-gradient(125deg, #283c9d 0%, #242b69 45%, #10182e 100%);
    box-shadow:
        0 3px 0 rgba(255,255,255,.08) inset,
        0 12px 0 #0a1024,
        0 25px 55px rgba(0,0,0,.32);
    transform: perspective(1000px) rotateX(1deg);
    transition: transform .3s ease, box-shadow .3s ease;
}

.fs-hero-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-4px);
    box-shadow: 0 5px 0 rgba(255,255,255,.1) inset,
                0 12px 0 #0a1024,
                0 34px 65px rgba(0,0,0,.38);
}

.fs-card-glow {
    position: absolute;
    z-index: -1;
    width: 270px;
    height: 270px;
    right: 5%;
    top: -130px;
    border-radius: 50%;
    background: rgba(85,229,255,.18);
    filter: blur(20px);
}

.fs-card-content {
    position: relative;
    z-index: 2;
}

.fs-card-label {
    color: var(--fs-cyan);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 800;
}

.fs-hero-card h2 {
    margin: 25px 0 8px;
    font-size: clamp(25px, 4vw, 39px);
    letter-spacing: -1px;
}

.fs-hero-card p {
    color: #d0dcff;
    font-size: 14px;
}

.fs-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 38px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.2);
    color: #c4d0ff;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.fs-card-symbol {
    position: absolute;
    right: 35px;
    bottom: 35px;
    font-size: clamp(70px, 12vw, 130px);
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,.07);
    text-shadow: 0 8px 0 rgba(0,0,0,.12);
    pointer-events: none;
}

.fs-footer {
    color: var(--fs-muted);
    border-top: 1px solid var(--fs-border);
    padding: 18px 30px;
    font-size: 11px;
}

@media (max-width: 700px) {
    .fs-container { padding: 18px; }
    .fs-hero-card { padding: 23px; min-height: 220px; }
    .fs-card-symbol { right: 20px; bottom: 48px; }
    .fs-footer { padding: 18px; }
}
/* ============================================================
   Flex Secure LICENCE KEY Portal - Master Stylesheet
   - Sidebar: Kesariya (saffron) + White + India Green tricolor
              (Indian flag inspired)  -- PRESERVED, unchanged
   - Main content: full advanced 3D card look (depth, layered
     shadows, hover lifts, gradient accents, glassmorphism)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    --saffron:        #FF9933;   /* Kesariya */
    --saffron-deep:   #E67E09;
    --saffron-light:  #FFB066;
    --saffron-tint:   #FFF3E6;
    --white:          #FFFFFF;
    --india-green:    #138808;   /* India green */
    --india-green-dk: #0C6006;
    --india-green-lt: #1FA30F;
    --ashoka-blue:    #000080;   /* Ashoka Chakra blue accent (subtle) */

    --ink:           #1b1f24;
    --ink-soft:      #4a5159;
    --ink-light:     #6b7280;
    --line:          #e3e6ea;
    --line-soft:     #eef0f3;
    --bg:            #f6f7f9;
    --bg-soft:       #fafbfd;
    --bg-panel:      #ffffff;
    --accent:        #1f6feb;

    --sidebar-w:     260px;
    --radius:        14px;
    --radius-sm:     10px;

    /* 3D shadow system (light from top-left) */
    --shadow-xs:  0 1px 2px rgba(16,24,40,.04);
    --shadow-sm:  0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.06);
    --shadow-md:  0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.06), 0 16px 32px rgba(16,24,40,.04);
    --shadow-lg:  0 2px 4px rgba(16,24,40,.06), 0 8px 18px rgba(16,24,40,.08), 0 24px 48px rgba(16,24,40,.06);
    --shadow-xl:  0 4px 8px rgba(16,24,40,.08), 0 16px 32px rgba(16,24,40,.10), 0 40px 80px rgba(16,24,40,.08);
    --shadow-saffron: 0 4px 12px rgba(255,153,51,.30), 0 12px 28px rgba(255,153,51,.18);
    --shadow-green:   0 4px 12px rgba(19,136,8,.22),  0 12px 28px rgba(19,136,8,.12);

    /* Inset highlights for 3D depth */
    --inset-top:    inset 0 1px 0 rgba(255,255,255,.95);
    --inset-bot:    inset 0 -2px 0 rgba(0,0,0,.04);
    --inset-glass:  inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.03);

    /* 3D transitions */
    --ease-3d:     cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background:
        radial-gradient(circle at 0% 0%,   rgba(255,153,51,0.06), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(19,136,8,0.06),  transparent 50%),
        var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   SIDEBAR — kesariya / white / green vertical tricolor
   (UNCHANGED — preserved as user requested)
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Vertical tricolor: saffron -> white -> green */
    background: linear-gradient(
        to bottom,
        var(--saffron) 0%,
        var(--saffron) 18%,
        var(--white)   36%,
        var(--white)   72%,
        var(--india-green) 92%,
        var(--india-green) 100%
    );
    box-shadow: var(--shadow-md);
    z-index: 100;
    overflow: hidden;
}

/* Subtle Ashoka Chakra watermark in white band */
.sidebar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 0, 128, 0.06);
    background:
        radial-gradient(circle at center, rgba(0,0,128,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ---------- Brand block (on saffron band) ---------- */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    position: relative;
    z-index: 1;
}
.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--white);
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--white);
}
.brand-text small {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.92);
    margin-top: 2px;
    font-weight: 600;
}

/* ---------- Nav (on white band) ---------- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin: 2px 0;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
    text-decoration: none;
}
.nav-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--saffron);
    flex-shrink: 0;
    transition: background .15s ease, transform .15s ease;
}
.nav-item:hover {
    background: linear-gradient(90deg, rgba(255,153,51,0.12), rgba(19,136,8,0.10));
    text-decoration: none;
    transform: translateX(2px);
}
.nav-item:hover::before { background: var(--india-green); transform: scale(1.4); }
.nav-item.active {
    background: linear-gradient(90deg, var(--saffron), var(--india-green));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.nav-item.active::before { background: var(--white); }

.nav-logout {
    margin-top: auto;
    color: var(--india-green-dk);
    font-weight: 600;
}
.nav-logout::before { background: var(--india-green); }
.nav-logout:hover {
    background: var(--india-green);
    color: var(--white);
}
.nav-logout:hover::before { background: var(--white); }

/* ---------- Sidebar footer (on green band) ---------- */
.sidebar-footer {
    padding: 14px 20px;
    color: rgba(255,255,255,0.95);
    font-size: 11px;
    letter-spacing: .4px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.18);
    position: relative;
    z-index: 1;
}

/* ============================================================
   MAIN CONTENT AREA — full advanced 3D look
   ============================================================ */
.container {
    margin-left: var(--sidebar-w);
    padding: 32px 40px 48px;
    min-height: 100vh;
    max-width: 1320px;
    perspective: 1400px;   /* enables 3D transforms on cards */
}

/* ---------- Page heading (3D card with LICence KEY watermark) ---------- */
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 28px;
    flex-wrap: wrap;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(255,247,239,0.92) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md), var(--inset-top);
    position: relative;
    overflow: hidden;
}
/* Tricolor top accent strip */
.page-heading::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--white), var(--india-green));
    box-shadow: 0 1px 6px rgba(255,153,51,0.25);
}
/* "LICENCE KEY" branding watermark via CSS (no code change needed) */
.page-heading::after {
    content: "LICENCE KEY";
    position: absolute;
    top: 14px; right: 24px;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: rgba(19,136,8,0.30);
    font-weight: 800;
    pointer-events: none;
    padding: 4px 10px;
    border: 1px dashed rgba(19,136,8,0.25);
    border-radius: 4px;
    background: rgba(255,255,255,0.6);
}
.page-heading > div { position: relative; z-index: 1; }
.page-heading h1 {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(180deg, #1b1f24 0%, #4a5159 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    letter-spacing: -0.3px;
}
.eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 2.8px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--saffron-deep), var(--india-green-dk));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}
.muted { color: var(--ink-soft); font-size: 13px; }

/* ---------- 3D Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s var(--ease-3d);
    text-decoration: none;
    box-shadow: var(--shadow-xs), var(--inset-top);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #eef1f5 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}

.btn.primary {
    background: linear-gradient(180deg, var(--saffron-light) 0%, var(--saffron) 50%, var(--saffron-deep) 100%);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.15),
        0 4px 12px rgba(255,153,51,0.35),
        0 8px 20px rgba(255,153,51,0.20);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
/* Shine sweep on hover */
.btn.primary::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left .6s ease;
}
.btn.primary:hover::before { left: 150%; }
.btn.primary:hover {
    background: linear-gradient(180deg, #FFC080 0%, #FFA94D 50%, #E88B19 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -2px 0 rgba(0,0,0,0.18),
        0 6px 16px rgba(255,153,51,0.45),
        0 12px 28px rgba(255,153,51,0.25);
}
.btn.primary:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 1px 2px rgba(0,0,0,0.2);
}

/* ---------- 3D Stat cards ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 0 0 32px;
}
.stat {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md), var(--inset-top);
    transition: transform .25s var(--ease-3d), box-shadow .25s ease;
    transform-style: preserve-3d;
}
/* Tricolor side accent */
.stat::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--saffron) 0%, var(--white) 50%, var(--india-green) 100%);
    box-shadow: 0 0 8px rgba(255,153,51,0.3);
}
/* Glass shine highlight at top */
.stat::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    pointer-events: none;
    border-radius: var(--radius) var(--radius) 0 0;
}
.stat span {
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: .5px;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 1;
    position: relative;
}
.stat strong {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--saffron-deep) 0%, var(--india-green-dk) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    z-index: 1;
    position: relative;
    letter-spacing: -0.5px;
}
.stat:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 4px rgba(16,24,40,0.06),
        0 12px 24px rgba(16,24,40,0.10),
        0 32px 56px rgba(255,153,51,0.15),
        inset 0 1px 0 rgba(255,255,255,1);
}

/* ---------- 3D Panels ---------- */
.panel {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin: 0 0 28px;
    box-shadow: var(--shadow-md), var(--inset-top);
    transition: transform .25s var(--ease-3d), box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
/* Tricolor top accent */
.panel::before {
    content: "";
    position: absolute;
    top: 0; left: 26px; right: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--white), var(--india-green));
    border-radius: 0 0 2px 2px;
    box-shadow: 0 1px 6px rgba(255,153,51,0.25);
}
.panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.panel h2 {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.section-head h2 { margin: 0; }
.section-head a {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff7ef 0%, #fafbfd 100%);
    border: 1px solid var(--line);
    transition: all .18s var(--ease-3d);
    box-shadow: var(--shadow-xs), var(--inset-top);
}
.section-head a:hover {
    text-decoration: none;
    transform: translateX(2px);
    background: linear-gradient(135deg, var(--saffron) 0%, var(--india-green) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255,153,51,0.30);
}

/* ---------- 3D Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm), var(--inset-top);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid var(--line);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead th {
    text-align: left;
    padding: 13px 16px;
    background: linear-gradient(180deg, #fff7ef 0%, #fafbfd 100%);
    color: var(--ink);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--saffron), var(--white), var(--india-green)) 1;
    box-shadow: var(--inset-top), 0 2px 4px rgba(16,24,40,0.04);
    position: sticky;
    top: 0;
}
tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    vertical-align: top;
}
tbody tr { transition: all .15s ease; }
tbody tr:hover {
    background: linear-gradient(90deg, rgba(255,153,51,0.06), rgba(19,136,8,0.04));
    transform: translateX(2px);
    box-shadow: inset 2px 0 0 var(--saffron);
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- 3D Pill / event badges ---------- */
.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,153,51,0.20) 0%, rgba(19,136,8,0.20) 100%);
    color: var(--india-green-dk);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid rgba(19,136,8,0.30);
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 1px 2px rgba(19,136,8,0.12);
}

/* ---------- 3D Endpoint blocks ---------- */
.endpoint {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 12px 0;
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f3f6 100%);
    border: 1px solid var(--line);
    border-left: 4px solid var(--saffron);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
    box-shadow: var(--shadow-xs), var(--inset-top);
    transition: all .2s var(--ease-3d);
}
.endpoint:hover {
    transform: translateX(4px);
    border-left-color: var(--india-green);
    border-left-width: 6px;
    box-shadow: 0 4px 12px rgba(19,136,8,0.12);
}
.endpoint code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    color: var(--india-green-dk);
    word-break: break-all;
    flex: 1 1 auto;
    font-weight: 600;
}
.endpoint span {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--india-green-dk);
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(19,136,8,0.25);
    box-shadow: var(--shadow-xs), var(--inset-top);
}

/* ---------- Alert / flash ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 0 0 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff8e1 0%, #fff4d4 100%);
    border-left: 4px solid var(--saffron);
    color: var(--ink);
    font-size: 14px;
    box-shadow: var(--shadow-xs), var(--inset-top);
}
.alert.success {
    background: linear-gradient(180deg, #e8f5e9 0%, #d8efd9 100%);
    border-left-color: var(--india-green);
}
.alert.error {
    background: linear-gradient(180deg, #fdecea 0%, #f9e0de 100%);
    border-left-color: #c62828;
}
.alert.info {
    background: linear-gradient(180deg, #e3f2fd 0%, #d4e9fb 100%);
    border-left-color: #1976d2;
}

/* ---------- Main footer (under content) ---------- */
.main-footer {
    margin-left: var(--sidebar-w);
    padding: 20px 40px;
    text-align: center;
    font-size: 12px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    box-shadow: var(--inset-top);
    letter-spacing: .3px;
}

/* ============================================================
   RESPONSIVE — collapse sidebar on small screens
   ============================================================ */
@media (max-width: 860px) {
    :root { --sidebar-w: 220px; }
    .container, .main-footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 640px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: column;
    }
    .sidebar::after { display: none; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 12px; }
    .nav-item { flex: 1 1 auto; justify-content: center; }
    .nav-logout { margin-top: 0; }
    .container, .main-footer { margin-left: 0; }
    .page-heading { flex-direction: column; align-items: stretch; }
    .page-heading::after { display: none; }   /* hide LICENCE KEY watermark on small screens */
}

/* ============================================================
   LOGIN PAGE — Flex Secure tricolor theme
   ============================================================ */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 0%,   rgba(255,153,51,0.18), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(19,136,8,0.18),  transparent 45%),
        linear-gradient(135deg, #fff7ef 0%, #ffffff 45%, #f1f8ee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Subtle Ashoka-chakra style decorative ring in background */
.login-page::before {
    content: "";
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 520px; height: 520px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 0, 128, 0.07);
    background: radial-gradient(circle at center, rgba(0,0,128,0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

/* ---------- Login card ---------- */
.login-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(16, 24, 40, 0.12),
        0 4px 14px rgba(255, 153, 51, 0.10);
    overflow: hidden;
    border: 1px solid var(--line);
}

/* Tricolor strip across the top of the card */
.login-tricolor {
    display: flex;
    height: 6px;
    width: 100%;
}
.login-tricolor .band { flex: 1 1 33.333%; }
.login-tricolor .band.saffron { background: var(--saffron); }
.login-tricolor .band.white   { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.login-tricolor .band.green   { background: var(--india-green); }

.login-card-body { padding: 32px 36px 30px; }

/* ---------- Brand block ---------- */
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}
.login-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(255,153,51,0.20);
    object-fit: contain;
    background: var(--white);
    padding: 4px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.login-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.login-brand .brand-text strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    background: linear-gradient(135deg, var(--saffron-deep) 0%, var(--india-green-dk) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--india-green-dk); /* fallback */
}
.login-brand .brand-text small {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--ink-soft);
    font-weight: 700;
    margin-top: 4px;
}

/* ---------- Heading ---------- */
.login-head { margin-bottom: 20px; }
.login-head h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}
.login-head .muted { margin: 0; font-size: 13.5px; }

/* ---------- Form ---------- */
.login-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--ink);
    text-transform: uppercase;
}
.field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ink);
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: inherit;
}
.field input::placeholder { color: #9aa0a6; }
.field input:focus {
    border-color: var(--saffron);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.18);
}

/* ---------- Full-width primary button ---------- */
.btn.full { width: 100%; justify-content: center; padding: 12px 16px; font-size: 15px; }

/* ---------- Security hint ---------- */
.login-hint {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-soft);
    justify-content: center;
}
.login-hint .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--india-green);
    box-shadow: 0 0 0 3px rgba(19,136,8,0.18);
    animation: pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(19,136,8,0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(19,136,8,0.06); }
}

/* ---------- Card-footer (year/brand) ---------- */
.login-foot {
    text-align: center;
    font-size: 12px;
    color: var(--ink-soft);
    margin: 0;
    letter-spacing: .3px;
}

/* ---------- Login responsive ---------- */
@media (max-width: 480px) {
    .login-card-body { padding: 24px 22px 22px; }
    .login-brand { gap: 10px; }
    .login-logo { width: 48px; height: 48px; }
    .login-brand .brand-text strong { font-size: 17px; }
    .login-head h1 { font-size: 21px; }
}
