:root {
    --ranga-dark: #04152f;
    --ranga-deep: #061c48;
    --ranga-navy: #092c70;
    --ranga-blue: #0758c9;
    --ranga-light-blue: #1678e8;

    --ranga-cyan: #00a6b8;
    --ranga-cyan-light: #34d5df;
    --ranga-teal: #02a7a9;

    --ranga-purple: #6823c7;
    --ranga-purple-light: #8b45df;

    --success: #12a978;
    --success-soft: #e7f8f1;

    --warning: #f5a524;
    --warning-soft: #fff3dc;

    --danger: #e54c62;
    --danger-soft: #fdecef;

    --bg: #f3f7fc;
    --surface: #ffffff;
    --surface-soft: #f8fbff;

    --text: #10213f;
    --text-strong: #071a35;

    --muted: #718096;
    --muted-2: #93a1b4;

    --border: #e1e9f3;
    --border-strong: #d3deeb;

    --sidebar-width: 220px;

    --shadow-sm:
        0 8px 24px rgba(10, 42, 104, 0.06);

    --shadow:
        0 16px 42px rgba(10, 42, 104, 0.10);

    --shadow-hover:
        0 24px 58px rgba(10, 42, 104, 0.16);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 8% 5%,
            rgba(7, 88, 201, 0.08),
            transparent 24%
        ),
        radial-gradient(
            circle at 92% 8%,
            rgba(0, 166, 184, 0.07),
            transparent 24%
        ),
        radial-gradient(
            circle at 60% 100%,
            rgba(104, 35, 199, 0.045),
            transparent 30%
        ),
        var(--bg);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c4d0df;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a9b8cb;
}


/* =========================================================
   APP SHELL
========================================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    inset:
        0
        auto
        0
        0;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

    color: white;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(0, 213, 230, 0.24),
            transparent 27%
        ),
        radial-gradient(
            circle at 95% 85%,
            rgba(110, 39, 203, 0.20),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #03142f 0%,
            #052961 44%,
            #073f76 72%,
            #062d4f 100%
        );

    box-shadow:
        20px 0 55px rgba(4, 20, 47, 0.14);

    overflow-y: auto;

    z-index: 40;
}


/* =========================================================
   BRAND
========================================================= */

.brand-box {
    position: relative;

    padding:
        24px
        20px
        22px;

    text-align: center;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.brand-box::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;
    bottom: -1px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(51, 216, 232, 0.55),
            transparent
        );
}

.brand-logo-wrap {
    position: relative;

    height: 96px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(241, 247, 255, 0.96)
        );

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.20);
}

.brand-logo-wrap::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    right: -65px;
    top: -60px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 166, 184, 0.15),
            transparent 70%
        );
}

.brand-logo {
    position: relative;

    width: 100%;
    max-height: 78px;

    object-fit: contain;
    object-position: center;

    z-index: 2;
}

.brand-title {
    margin-top: 17px;

    font-size: 17px;
    font-weight: 850;

    letter-spacing: 0.2px;
}

.brand-subtitle {
    margin-top: 5px;

    font-size: 10px;
    font-weight: 600;

    color:
        rgba(255, 255, 255, 0.60);

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* =========================================================
   SIDEBAR NAV
========================================================= */

.sidebar-nav {
    padding:
        22px
        14px;

    flex: 1;
}

.nav-item {
    position: relative;

    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding:
        0
        16px;

    margin-bottom: 7px;

    border:
        1px solid
        transparent;

    border-radius: 14px;

    color:
        rgba(255, 255, 255, 0.73);

    font-size: 13px;
    font-weight: 650;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.nav-item:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(255, 255, 255, 0.06);

    transform:
        translateX(3px);
}

.nav-item.active {
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(0, 198, 217, 0.20),
            rgba(113, 40, 202, 0.10)
        );

    border-color:
        rgba(255, 255, 255, 0.07);

    box-shadow:
        inset 3px 0 var(--ranga-cyan-light),
        0 9px 22px rgba(0, 0, 0, 0.10);
}

.nav-item.active::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    right: 14px;

    border-radius: 50%;

    background:
        #42dce9;

    box-shadow:
        0 0 11px
        rgba(66, 220, 233, 0.8);
}

.nav-icon {
    width: 25px;

    text-align: center;

    font-size: 17px;
}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.sidebar-footer {
    padding: 19px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.system-status {
    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        12px
        13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.06);

    backdrop-filter:
        blur(7px);
}

.system-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        #3ce4a4;

    box-shadow:
        0 0 13px
        rgba(60, 228, 164, 0.85);

    animation:
        systemPulse 2s infinite;
}

@keyframes systemPulse {
    0% {
        box-shadow:
            0 0 0 0
            rgba(60, 228, 164, 0.50);
    }

    70% {
        box-shadow:
            0 0 0 7px
            rgba(60, 228, 164, 0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(60, 228, 164, 0);
    }
}

.system-status strong {
    display: block;

    font-size: 11px;
}

.system-status small {
    display: block;

    margin-top: 3px;

    font-size: 9px;

    color:
        rgba(255, 255, 255, 0.55);
}

.company-line {
    margin-top: 15px;

    text-align: center;

    font-size: 9px;
    font-weight: 600;

    color:
        rgba(255, 255, 255, 0.38);

    letter-spacing: 0.8px;
}


/* =========================================================
   MAIN PANEL
========================================================= */

.main-panel {
    width:
        calc(100% - var(--sidebar-width));

    min-height: 100vh;

    margin-left:
        var(--sidebar-width);
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    position: sticky;

    top: 0;

    z-index: 30;

    height: 92px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    padding:
        0
        32px;

    background:
        rgba(255, 255, 255, 0.84);

    border-bottom:
        1px solid
        rgba(221, 230, 240, 0.78);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 10px 30px
        rgba(9, 44, 112, 0.05);
}

.page-eyebrow {
    color:
        var(--ranga-blue);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1.9px;
}

.page-title {
    margin:
        4px
        0
        0;

    font-size: 24px;
    font-weight: 850;

    letter-spacing: -0.5px;

    background:
        linear-gradient(
            90deg,
            #0a2d69,
            #0758c9,
            #008fa4
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color: transparent;
}

.topbar-actions {
    display: flex;

    align-items: center;

    gap: 11px;
}

.health-pill {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        9px
        13px;

    border:
        1px solid
        #d5f1e5;

    border-radius: 999px;

    color:
        #177a59;

    background:
        rgba(234, 249, 243, 0.88);

    box-shadow:
        0 7px 16px
        rgba(19, 169, 121, 0.08);

    font-size: 10px;
    font-weight: 750;
}

.health-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--success);
}

.header-button {
    width: 41px;
    height: 41px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    color:
        var(--ranga-navy);

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 5px 14px
        rgba(10, 42, 104, 0.05);

    font-size: 15px;

    transition: 0.2s ease;
}

.header-button:hover {
    color:
        var(--ranga-blue);

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 19px
        rgba(10, 42, 104, 0.10);
}

.profile-chip {
    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        6px
        11px
        6px
        6px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 6px 18px
        rgba(10, 42, 104, 0.05);
}

.profile-avatar {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: white;

    font-size: 11px;
    font-weight: 850;

    background:
        linear-gradient(
            135deg,
            var(--ranga-blue),
            var(--ranga-purple)
        );

    box-shadow:
        0 6px 15px
        rgba(104, 35, 199, 0.20);
}

.profile-info strong {
    display: block;

    font-size: 10px;
}

.profile-info small {
    display: block;

    margin-top: 2px;

    color:
        var(--muted);

    font-size: 9px;
}


/* =========================================================
   CONTENT
========================================================= */

.page-content {
    padding:
        28px
        32px
        44px;
}


/* =========================================================
   HERO
========================================================= */

.dashboard-hero {
    position: relative;

    min-height: 245px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    padding:
        38px
        44px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius:
        var(--radius-xl);

    color: white;

    background:
        radial-gradient(
            circle at 85% 9%,
            rgba(89, 240, 245, 0.32),
            transparent 25%
        ),
        radial-gradient(
            circle at 55% 115%,
            rgba(126, 39, 217, 0.46),
            transparent 38%
        ),
        linear-gradient(
            125deg,
            #03183f 0%,
            #0750b9 54%,
            #0098aa 100%
        );

    box-shadow:
        0 30px 70px
        rgba(8, 55, 130, 0.27);
}

.dashboard-hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -110px;
    top: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.13),
            transparent 70%
        );
}

.dashboard-hero::after {
    content: "";

    position: absolute;

    left: 55%;
    bottom: -110px;

    width: 330px;
    height: 170px;

    border-radius: 50%;

    background:
        rgba(110, 36, 205, 0.30);

    filter: blur(48px);
}

.hero-copy {
    position: relative;

    z-index: 3;

    max-width: 680px;
}

.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        7px
        11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.10);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.12);

    font-size: 10px;
    font-weight: 750;
}

.hero-copy h2 {
    margin:
        17px
        0
        9px;

    font-size:
        clamp(31px, 4vw, 50px);

    line-height: 1.04;

    font-weight: 900;

    letter-spacing: -1.7px;

    text-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.14);
}

.hero-copy h2 span {
    color:
        #79edf2;
}

.hero-copy p {
    max-width: 620px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 13px;

    line-height: 1.75;
}

.hero-visual {
    position: relative;

    width: 225px;
    height: 165px;

    flex:
        0
        0
        auto;

    z-index: 3;
}

.hero-icon-box {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 88px;
    height: 88px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(255, 255, 255, 0.26);

    border-radius: 27px;

    background:
        rgba(255, 255, 255, 0.12);

    backdrop-filter:
        blur(10px);

    font-size: 34px;

    box-shadow:
        0 20px 40px
        rgba(0, 0, 0, 0.16);
}

.hero-ring {
    position: absolute;

    left: 50%;
    top: 50%;

    border-radius: 50%;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(255, 255, 255, 0.16);
}

.ring-one {
    width: 148px;
    height: 148px;
}

.ring-two {
    width: 215px;
    height: 215px;
}


/* =========================================================
   STATS GRID
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-top: 22px;
}

.stat-card {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    gap: 15px;

    padding:
        20px
        20px;

    border:
        1px solid
        rgba(215, 224, 237, 0.80);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(248, 251, 255, 0.94)
        );

    box-shadow:
        0 14px 34px
        rgba(10, 42, 104, 0.08);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.stat-card::after {
    content: "";

    position: absolute;

    width: 115px;
    height: 115px;

    right: -48px;
    top: -48px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(8, 88, 201, 0.08),
            transparent 70%
        );
}

.stat-card:hover {
    transform:
        translateY(-5px)
        scale(1.01);

    box-shadow:
        0 22px 50px
        rgba(10, 42, 104, 0.14);
}

.stat-icon {
    width: 50px;
    height: 50px;

    flex:
        0
        0
        auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-size: 18px;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.7);
}

.stat-icon.blue {
    color: #0b5bd7;

    background:
        linear-gradient(
            145deg,
            #e9f2ff,
            #dfeeff
        );
}

.stat-icon.green {
    color: #0c9a6d;

    background:
        linear-gradient(
            145deg,
            #e6f8f1,
            #dff5ec
        );
}

.stat-icon.purple {
    color: #7028c9;

    background:
        linear-gradient(
            145deg,
            #f1eafa,
            #eadffd
        );
}

.stat-icon.cyan {
    color: #008d9d;

    background:
        linear-gradient(
            145deg,
            #e3f8fa,
            #d9f5f8
        );
}

.stat-label {
    display: block;

    margin-bottom: 3px;

    color:
        var(--muted);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.stat-number {
    display: block;

    font-size: 28px;
    font-weight: 900;

    line-height: 1;

    color:
        var(--text-strong);
}

.stat-small {
    font-size: 17px;
}

.stat-card small {
    display: block;

    margin-top: 6px;

    color:
        var(--muted-2);

    font-size: 9px;
}


/* =========================================================
   SECTION CARD
========================================================= */

.section-card {
    margin-top: 22px;

    padding: 25px;

    border:
        1px solid
        rgba(218, 226, 237, 0.90);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 16px 44px
        rgba(10, 42, 104, 0.08);

    backdrop-filter:
        blur(9px);
}

.section-header {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 18px;

    margin-bottom: 22px;
}

.section-kicker {
    color:
        var(--ranga-blue);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1.8px;
}

.section-header h3 {
    margin:
        5px
        0
        4px;

    font-size: 20px;
    font-weight: 850;
}

.section-header p {
    margin: 0;

    color:
        var(--muted);

    font-size: 11px;
}

.section-actions {
    display: flex;

    gap: 10px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 41px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        0
        15px;

    border:
        1px solid
        transparent;

    border-radius: 11px;

    font-size: 11px;
    font-weight: 750;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn.primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            #0758c9 0%,
            #00a6b8 65%,
            #6823c7 120%
        );

    box-shadow:
        0 10px 25px
        rgba(7, 88, 201, 0.22);
}

.btn.primary:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 16px 30px
        rgba(7, 88, 201, 0.29);
}

.btn.secondary {
    color:
        var(--ranga-navy);

    background:
        #f1f5fa;

    border-color:
        var(--border);
}

.btn.secondary:hover {
    background:
        #eaf0f7;
}


/* =========================================================
   CAMERA GRID
========================================================= */

.camera-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(360px, 1fr)
        );

    gap: 20px;
}

.camera-card {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(211, 223, 238, 0.88);

    border-radius: 21px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfdff
        );

    box-shadow:
        0 16px 38px
        rgba(7, 42, 101, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.camera-card:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(0, 166, 184, 0.26);

    box-shadow:
        0 28px 60px
        rgba(7, 42, 101, 0.18);
}

.camera-preview {
    position: relative;

    overflow: hidden;

    aspect-ratio:
        16 / 9;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(0, 166, 184, 0.16),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #020915,
            #071b32
        );
}

.camera-preview::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.14),
            transparent 30%,
            transparent 68%,
            rgba(0, 0, 0, 0.25)
        );

    z-index: 2;
}

.camera-feed {
    position: relative;

    z-index: 1;

    display: none;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.camera-placeholder {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    color:
        rgba(255, 255, 255, 0.54);

    font-size: 10px;

    z-index: 1;
}

.camera-placeholder i {
    font-size: 29px;

    color:
        rgba(255, 255, 255, 0.33);
}


/* =========================================================
   LIVE BADGE
========================================================= */

.live-badge {
    position: absolute;

    top: 13px;
    left: 13px;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 6px;

    padding:
        5px
        9px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 999px;

    color: white;

    background:
        rgba(4, 17, 36, 0.70);

    backdrop-filter:
        blur(8px);

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.18);

    font-size: 8px;
    font-weight: 850;

    letter-spacing: 0.6px;
}

.live-badge span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #ff4d62;

    animation:
        livePulse 1.6s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow:
            0 0 0 0
            rgba(255, 77, 98, 0.65);
    }

    70% {
        box-shadow:
            0 0 0 7px
            rgba(255, 77, 98, 0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(255, 77, 98, 0);
    }
}


/* =========================================================
   CAMERA STATUS BADGES
========================================================= */

.camera-status-badge {
    position: absolute;

    top: 13px;
    right: 51px;

    z-index: 5;

    padding:
        5px
        9px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    color: white;

    background:
        rgba(96, 108, 128, 0.86);

    backdrop-filter:
        blur(8px);

    font-size: 8px;
    font-weight: 850;
}

.camera-status-badge.online {
    background:
        rgba(18, 164, 115, 0.92);
}

.camera-status-badge.connecting {
    background:
        rgba(242, 158, 27, 0.92);
}

.camera-status-badge.offline {
    background:
        rgba(112, 120, 137, 0.90);
}


/* =========================================================
   FULLSCREEN
========================================================= */

.fullscreen-button {
    position: absolute;

    right: 12px;
    top: 12px;

    z-index: 5;

    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 9px;

    color: white;

    background:
        rgba(2, 17, 36, 0.66);

    backdrop-filter:
        blur(7px);

    transition: 0.2s ease;
}

.fullscreen-button:hover {
    background:
        rgba(7, 88, 201, 0.82);

    transform:
        scale(1.05);
}


/* =========================================================
   CAMERA INFO
========================================================= */

.camera-info {
    position: relative;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 14px;

    padding:
        17px
        18px;
}

.camera-info::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 166, 184, 0.35),
            transparent
        );
}

.camera-info h4,
.camera-name {
    margin: 0;

    font-size: 14px;
    font-weight: 850;
}

.camera-location {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 5px;

    color:
        var(--muted);

    font-size: 9px;
}

.camera-location i {
    color:
        var(--ranga-cyan);
}

.camera-id {
    padding:
        6px
        9px;

    border:
        1px solid
        #dbe9f8;

    border-radius: 8px;

    color:
        var(--ranga-blue);

    background:
        linear-gradient(
            135deg,
            #edf4ff,
            #e6fbfd
        );

    font-size: 8px;
    font-weight: 850;

    white-space: nowrap;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    grid-column:
        1 / -1;

    min-height: 270px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px;

    text-align: center;

    border:
        1px dashed
        #cbd6e4;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #fafcff,
            #f6faff
        );
}

.empty-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 17px;

    color:
        var(--ranga-blue);

    background:
        linear-gradient(
            145deg,
            #ebf3ff,
            #e0efff
        );

    box-shadow:
        0 9px 20px
        rgba(7, 88, 201, 0.08);

    font-size: 21px;
}

.empty-state h4 {
    margin:
        0
        0
        7px;

    font-size: 15px;
}

.empty-state p {
    max-width: 400px;

    margin:
        0
        0
        15px;

    color:
        var(--muted);

    font-size: 11px;
}


/* =========================================================
   CAMERA MANAGEMENT
========================================================= */

.camera-form-card {
    margin-bottom: 25px;

    padding: 22px;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #f5f8fc
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.8);
}

.camera-form-card h4 {
    margin:
        0
        0
        17px;

    font-size: 15px;
    font-weight: 850;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

    margin-bottom: 17px;
}

.field.full {
    grid-column:
        1 / -1;
}

.field label {
    display: block;

    margin-bottom: 6px;

    color:
        #394962;

    font-size: 10px;
    font-weight: 750;
}

.field input,
.field select,
.field textarea {
    width: 100%;

    min-height: 43px;

    padding:
        0
        12px;

    border:
        1px solid
        #d8e1ec;

    border-radius: 10px;

    outline: none;

    color:
        var(--text);

    background: white;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.field textarea {
    min-height: 100px;

    padding:
        12px;

    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color:
        var(--ranga-blue);

    box-shadow:
        0 0 0 3px
        rgba(7, 88, 201, 0.08);
}


/* =========================================================
   MANAGEMENT GRID
========================================================= */

.management-grid {
    display: grid;

    gap: 12px;
}

.management-card {
    display: grid;

    grid-template-columns:
        1fr
        auto
        auto;

    align-items: center;

    gap: 18px;

    padding:
        15px
        17px;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbfdff
        );

    box-shadow:
        0 8px 23px
        rgba(10, 42, 104, 0.05);

    transition: 0.2s ease;
}

.management-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 14px 28px
        rgba(10, 42, 104, 0.10);
}

.management-card strong {
    display: block;

    font-size: 12px;
    font-weight: 800;
}

.management-card span {
    display: block;

    margin-top: 4px;

    color:
        var(--muted);

    font-size: 9px;
}

.management-status {
    min-width: 88px;

    padding:
        6px
        9px;

    text-align: center;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 850;

    background:
        #eef1f5;

    color:
        #6b7688;
}

.management-status.online {
    color:
        #087c59;

    background:
        #e5f7ef;
}

.management-status.connecting {
    color:
        #aa6c08;

    background:
        #fff3dc;
}

.management-status.offline {
    color:
        #687487;

    background:
        #edf0f4;
}

.management-buttons {
    display: flex;

    gap: 7px;
}

.icon-btn {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 9px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.icon-btn:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 7px 14px
        rgba(10, 42, 104, 0.10);
}

.icon-btn.success {
    color: #087c59;
    background: #e5f7ef;
}

.icon-btn.warning {
    color: #a56e14;
    background: #fff1d8;
}

.icon-btn.danger {
    color: #c83e52;
    background: #fdecef;
}


/* =========================================================
   OPTIONAL AI ACTIVITY PANEL
========================================================= */

.ai-activity-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.ai-activity-card {
    padding: 16px;

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbff
        );

    box-shadow:
        var(--shadow-sm);
}

.ai-activity-title {
    font-size: 10px;

    color:
        var(--muted);

    text-transform: uppercase;

    font-weight: 800;

    letter-spacing: 0.7px;
}

.ai-activity-value {
    margin-top: 7px;

    font-size: 24px;
    font-weight: 900;

    color:
        var(--text-strong);
}


/* =========================================================
   TABLES
========================================================= */

.table-wrap {
    overflow-x: auto;

    border:
        1px solid
        var(--border);

    border-radius: 15px;
}

.data-table {
    width: 100%;

    border-collapse: collapse;

    background: white;
}

.data-table th {
    padding:
        12px
        14px;

    text-align: left;

    color:
        #52617a;

    background:
        #f5f8fc;

    font-size: 9px;
    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.data-table td {
    padding:
        13px
        14px;

    border-top:
        1px solid
        var(--border);

    font-size: 11px;
}

.data-table tr:hover td {
    background:
        #fbfdff;
}


/* =========================================================
   BADGES
========================================================= */

.badge {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding:
        5px
        8px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 850;
}

.badge.success {
    color:
        #087c59;

    background:
        var(--success-soft);
}

.badge.warning {
    color:
        #a36c10;

    background:
        var(--warning-soft);
}

.badge.danger {
    color:
        #c64055;

    background:
        var(--danger-soft);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (
    max-width: 1180px
) {
    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .ai-activity-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (
    max-width: 900px
) {
    :root {
        --sidebar-width: 78px;
    }

    .sidebar {
        width:
            var(--sidebar-width);
    }

    .brand-title,
    .brand-subtitle,
    .nav-item span:not(.nav-icon),
    .sidebar-footer,
    .brand-logo-wrap {
        display: none;
    }

    .brand-box {
        height: 70px;

        padding:
            0;
    }

    .sidebar-nav {
        padding:
            15px
            10px;
    }

    .nav-item {
        justify-content: center;

        padding:
            0;
    }

    .nav-item.active::after {
        display: none;
    }

    .main-panel {
        width:
            calc(
                100% -
                var(--sidebar-width)
            );

        margin-left:
            var(--sidebar-width);
    }

    .hero-visual {
        display: none;
    }

    .health-pill,
    .profile-info {
        display: none;
    }

    .dashboard-hero {
        min-height: 220px;
    }
}


@media (
    max-width: 680px
) {
    .page-content {
        padding:
            18px
            14px
            30px;
    }

    .topbar {
        height: 75px;

        padding:
            0
            15px;
    }

    .page-eyebrow {
        display: none;
    }

    .page-title {
        margin: 0;

        font-size: 17px;
    }

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

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

    .section-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .section-actions {
        width: 100%;

        flex-wrap: wrap;
    }

    .section-actions .btn {
        flex: 1;
    }

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

    .field.full {
        grid-column:
            auto;
    }

    .management-card {
        grid-template-columns:
            1fr;

        align-items:
            flex-start;
    }

    .dashboard-hero {
        padding:
            28px
            24px;

        min-height: 230px;
    }

    .hero-copy h2 {
        font-size: 31px;
    }

    .ai-activity-grid {
        grid-template-columns:
            1fr;
    }
}


@media (
    max-width: 440px
) {
    :root {
        --sidebar-width: 64px;
    }

    .sidebar {
        width:
            var(--sidebar-width);
    }

    .nav-icon {
        width: auto;
    }

    .main-panel {
        margin-left:
            var(--sidebar-width);

        width:
            calc(
                100% -
                var(--sidebar-width)
            );
    }

    .page-content {
        padding:
            14px
            10px
            24px;
    }

    .section-card {
        padding: 18px;

        border-radius: 17px;
    }

    .camera-grid {
        gap: 14px;
    }

    .dashboard-hero {
        border-radius: 19px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .profile-chip {
        display: none;
    }
}

/* =========================================================
   COMPACT TYPOGRAPHY OVERRIDES
========================================================= */

body {
    font-size: 13px;
}


/* Top header */
.page-eyebrow {
    font-size: 8px;
}

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


/* Sidebar */
.brand-title {
    font-size: 14px;
}

.brand-subtitle {
    font-size: 9px;
}

.nav-item {
    font-size: 12px;
}

.nav-icon {
    font-size: 15px;
}

.system-status strong {
    font-size: 10px;
}

.system-status small {
    font-size: 8px;
}

.company-line {
    font-size: 8px;
}


/* Hero */
.hero-badge {
    font-size: 9px;
}

.hero-copy h2 {
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -1px;
}

.hero-copy p {
    font-size: 12px;
    line-height: 1.6;
}


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

.stat-number {
    font-size: 23px;
}

.stat-small {
    font-size: 15px;
}

.stat-card small {
    font-size: 8px;
}

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


/* Section headers */
.section-kicker {
    font-size: 8px;
}

.section-header h3 {
    font-size: 17px;
}

.section-header p {
    font-size: 10px;
}


/* Buttons */
.btn {
    font-size: 10px;
    min-height: 36px;
}


/* Camera cards */
.camera-info h4,
.camera-name {
    font-size: 12px;
}

.camera-location {
    font-size: 8px;
}

.camera-id {
    font-size: 7px;
}

.live-badge {
    font-size: 7px;
}

.camera-status-badge {
    font-size: 7px;
}


/* Camera management */
.camera-form-card h4 {
    font-size: 13px;
}

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

.field input,
.field select,
.field textarea {
    font-size: 11px;
}

.management-card strong {
    font-size: 11px;
}

.management-card span {
    font-size: 8px;
}

.management-status {
    font-size: 7px;
}


/* Table */
.data-table th {
    font-size: 8px;
}

.data-table td {
    font-size: 10px;
}


/* Profile */
.profile-info strong {
    font-size: 9px;
}

.profile-info small {
    font-size: 8px;
}

.health-pill {
    font-size: 9px;
}


/* Mobile */
@media (max-width: 680px) {

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

    .hero-copy h2 {
        font-size: 27px;
    }

    .hero-copy p {
        font-size: 11px;
    }
}

.face-enrollment-panel {
    grid-column: 1 / -1;
}

.face-progress-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.face-progress-row > div:first-child {
    min-width: 100px;
}

.face-progress-row strong {
    display: block;
    font-size: 14px;
}

.face-progress-row span {
    font-size: 9px;
    color: var(--muted);
}

.face-progress {
    flex: 1;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf4;
}

.face-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--ranga-blue);
    transition: width 0.25s ease;
}

.face-sample-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.face-sample-card {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}

.face-sample-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.face-sample-header strong {
    font-size: 10px;
}

.face-pose-label {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: #eaf2ff;
    color: var(--ranga-blue);

    font-size: 8px;
    font-weight: 800;
}

.face-sample-placeholder {
    height: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px dashed #c7d2e0;
    border-radius: 11px;

    cursor: pointer;

    background: #f8fafc;
}

.face-sample-placeholder:hover {
    border-color: var(--ranga-blue);
    background: #f3f7ff;
}

.face-sample-placeholder i {
    font-size: 22px;
    color: var(--ranga-blue);
}

.face-sample-placeholder strong {
    font-size: 9px;
}

.face-sample-placeholder span {
    font-size: 8px;
    color: var(--muted);
}

.face-preview-container {
    position: relative;
    height: 145px;
    overflow: hidden;

    border-radius: 11px;

    background: #eef2f7;
}

.face-sample-preview {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.2s ease;
}

.face-photo-success {
    position: absolute;
    top: 7px;
    right: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: #16a34a;
    color: white;

    font-size: 8px;
}

.face-sample-actions {
    display: flex;
    justify-content: center;
    gap: 5px;

    margin-top: 7px;
}

.icon-btn {
    width: 28px;
    height: 27px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: white;
    cursor: pointer;
}

.icon-btn:hover {
    background: #f3f6fa;
}

.icon-btn.danger {
    color: #dc2626;
}

.face-enrollment-note {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 12px;
    padding: 9px 11px;

    border-radius: 9px;

    background: #f1f6ff;
    color: #496078;

    font-size: 9px;
}

.face-enrollment-note i {
    color: var(--ranga-blue);
}

@media (max-width: 1100px) {

    .face-sample-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .face-sample-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   OCR PROCESSING OVERLAY
   ========================================== */

.ocr-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.55);

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.ocr-processing-box {
    width: 420px;
    max-width: 90%;

    background: #ffffff;

    border-radius: 14px;

    padding: 30px;

    text-align: center;

    box-shadow:
        0 10px 40px
        rgba(0, 0, 0, 0.30);
}

.ocr-spinner {
    width: 50px;
    height: 50px;

    margin: auto;

    border: 5px solid #eeeeee;
    border-top: 5px solid #0d6efd;

    border-radius: 50%;

    animation: ocrSpin 0.8s linear infinite;
}

@keyframes ocrSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ocr-progress {
    height: 22px;
    margin-top: 18px;
}

#ocrProgressBar {
    font-weight: 600;
    transition: width 0.4s ease;
}

#ocrProgressText {
    font-size: 14px;
    min-height: 22px;
}

/* ============================================================
   EMPLOYEE DETAILS MODAL
============================================================ */

.employee-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 22px;
}


.employee-modal.show {
    display: flex;
}


.employee-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(8, 15, 30, 0.72);

    backdrop-filter:
        blur(7px);
}


.employee-modal-panel {
    position: relative;

    width: min(
        1100px,
        96vw
    );

    max-height: 92vh;

    display: flex;
    flex-direction: column;

    background:
        #ffffff;

    border-radius:
        20px;

    overflow: hidden;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.35);

    animation:
        employeeModalOpen
        0.2s ease;
}


@keyframes employeeModalOpen {

    from {
        opacity: 0;
        transform:
            translateY(15px)
            scale(0.98);
    }

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


.employee-modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        22px
        26px;

    border-bottom:
        1px solid
        #e8edf5;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f6f9ff
        );
}


.employee-modal-header h2 {
    margin:
        3px 0 2px;

    font-size:
        21px;

    color:
        #172033;
}


.employee-modal-eyebrow {
    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1.4px;

    color:
        #6b78a0;
}


.employee-modal-code {
    font-size:
        12px;

    color:
        #778096;
}


.employee-modal-close {
    width:
        38px;

    height:
        38px;

    border:
        none;

    border-radius:
        10px;

    background:
        #f1f4f9;

    font-size:
        25px;

    cursor:
        pointer;
}


.employee-modal-body {
    padding:
        24px;

    overflow-y:
        auto;
}


.employee-details-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        14px;

    margin-bottom:
        28px;
}


.employee-detail-box {
    padding:
        14px 16px;

    background:
        #f8faff;

    border:
        1px solid
        #e7ecf5;

    border-radius:
        12px;
}


.employee-detail-label {
    display:
        block;

    margin-bottom:
        5px;

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.6px;

    color:
        #778096;
}


.employee-detail-value {
    font-size:
        13px;

    font-weight:
        600;

    color:
        #1d2940;

    word-break:
        break-word;
}


.employee-detail-wide {
    grid-column:
        1 / -1;
}


.employee-section-title {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    margin:
        24px 0 12px;

    font-size:
        14px;

    font-weight:
        800;

    color:
        #1e2a42;
}


/* ============================================================
   EMPLOYEE IMAGES
============================================================ */

.employee-image-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                145px,
                1fr
            )
        );

    gap:
        14px;
}


.employee-image-card {
    overflow:
        hidden;

    border:
        1px solid
        #e3e9f2;

    border-radius:
        14px;

    background:
        #fff;

    box-shadow:
        0 5px 18px
        rgba(25, 45, 80, 0.06);
}


.employee-image-card img {
    width:
        100%;

    height:
        150px;

    display:
        block;

    object-fit:
        cover;

    background:
        #eef2f7;
}


.employee-document-card img {
    height:
        240px;

    object-fit:
        contain;
}


.employee-image-info {
    padding:
        10px 12px;
}


.employee-image-title {
    font-size:
        12px;

    font-weight:
        700;

    color:
        #24314d;
}


.employee-image-meta {
    margin-top:
        3px;

    font-size:
        10px;

    color:
        #8a94a8;
}


/* ============================================================
   STATUS
============================================================ */

.employee-status {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    padding:
        5px 10px;

    border-radius:
        20px;

    font-size:
        11px;

    font-weight:
        800;
}


.employee-status.active {
    color:
        #087443;

    background:
        #e5f8ef;
}


.employee-status.inactive {
    color:
        #a92d2d;

    background:
        #fdeaea;
}


/* ============================================================
   FOOTER
============================================================ */

.employee-modal-footer {
    display:
        flex;

    justify-content:
        flex-end;

    gap:
        10px;

    padding:
        16px 24px;

    border-top:
        1px solid
        #e8edf5;

    background:
        #fafbfe;
}


.btn-danger {
    border:
        none;

    border-radius:
        9px;

    padding:
        10px 17px;

    background:
        #dc3545;

    color:
        #fff;

    font-size:
        12px;

    font-weight:
        700;

    cursor:
        pointer;
}


.btn-danger:hover {
    background:
        #bd2635;
}


.btn-danger:disabled {
    opacity:
        0.45;

    cursor:
        not-allowed;
}


.modal-loading {
    padding:
        50px;

    text-align:
        center;

    color:
        #7c879c;
}


/* ============================================================
   EMPLOYEE TABLE ROW
============================================================ */

.employee-clickable-row {
    cursor:
        pointer;

    transition:
        background 0.15s ease;
}


.employee-clickable-row:hover {
    background:
        #f6f9ff;
}


.employee-inactive-row {
    opacity:
        0.62;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (
    max-width: 800px
) {

    .employee-details-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (
    max-width: 520px
) {

    .employee-details-grid {
        grid-template-columns:
            1fr;
    }

}

/* ============================================================
   LOGIN PAGE
============================================================ */

.login-page {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        #f4f7fc;
}


.login-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        1.15fr
        0.85fr;
}


.login-brand-panel {
    position: relative;

    display: flex;

    align-items: center;

    padding: 70px;

    overflow: hidden;

    color: white;

    background:
        linear-gradient(
            140deg,
            #08152c,
            #132f63 55%,
            #176ad4
        );
}


.login-brand-panel::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -180px;
    top: -180px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.06);
}


.login-brand-panel::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    left: -100px;
    bottom: -170px;

    border-radius: 50%;

    background:
        rgba(0,170,255,.12);
}


.login-brand-content {
    position: relative;

    z-index: 2;

    max-width: 620px;
}


.login-logo {
    width: 190px;

    max-height: 90px;

    object-fit: contain;

    margin-bottom: 50px;
}


.login-brand-content h1 {
    margin: 0;

    font-size: 46px;

    line-height: 1.12;

    letter-spacing: -1px;
}


.login-brand-content > p {
    max-width: 520px;

    margin-top: 22px;

    color:
        rgba(255,255,255,.76);

    font-size: 15px;

    line-height: 1.8;
}


.login-features {
    display: flex;

    gap: 14px;

    margin-top: 45px;
}


.login-features > div {
    min-width: 120px;

    padding: 14px 16px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 12px;

    background:
        rgba(255,255,255,.07);

    font-size: 11px;
}


.login-features strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}


.login-form-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;
}


.login-card {
    width: 100%;

    max-width: 390px;
}


.login-heading span {
    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #2c6cd6;
}


.login-heading h2 {
    margin:
        8px 0 4px;

    font-size: 30px;

    color: #17243b;
}


.login-heading p {
    margin-bottom: 32px;

    color: #7e899c;

    font-size: 13px;
}


.login-field {
    margin-bottom: 18px;
}


.login-field label {
    display: block;

    margin-bottom: 7px;

    color: #43506a;

    font-size: 12px;

    font-weight: 700;
}


.login-field input {
    box-sizing: border-box;

    width: 100%;

    padding: 13px 14px;

    border:
        1px solid #dbe2ee;

    border-radius: 9px;

    outline: none;

    background: white;

    font-size: 13px;
}


.login-field input:focus {
    border-color: #3174dc;

    box-shadow:
        0 0 0 3px
        rgba(49,116,220,.10);
}


.login-button {
    width: 100%;

    margin-top: 8px;

    padding: 13px;

    border: none;

    border-radius: 9px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #216bd7,
            #124caa
        );

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;
}


.login-button:hover {
    box-shadow:
        0 9px 25px
        rgba(26,91,190,.22);
}


.login-error {
    margin-bottom: 20px;

    padding: 11px 13px;

    border-radius: 8px;

    color: #aa2735;

    background: #feecef;

    font-size: 12px;
}


.login-footer {
    margin-top: 35px;

    text-align: center;

    color: #a0a9b7;

    font-size: 10px;

    line-height: 1.7;
}


@media (max-width: 850px) {

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
    }

}

.btn-success {
    border: none;

    border-radius: 9px;

    padding: 10px 17px;

    background: #159463;

    color: white;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


.btn-success:hover {
    background: #10794f;
}

.employee-history {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.history-item {
    display: grid;

    grid-template-columns:
        16px
        1fr;

    gap: 10px;

    padding: 13px 14px;

    border:
        1px solid #e8edf5;

    border-radius: 11px;

    background: #fbfcff;
}


.history-dot {
    width: 9px;
    height: 9px;

    margin-top: 5px;

    border-radius: 50%;
}


.history-dot.active {
    background: #159463;
}


.history-dot.inactive {
    background: #dc3545;
}


.history-title {
    color: #26344f;

    font-size: 12px;

    font-weight: 800;
}


.history-meta {
    margin-top: 3px;

    color: #7d8798;

    font-size: 10px;
}


.history-remarks {
    margin-top: 7px;

    color: #536078;

    font-size: 11px;
}

/* ============================================================
   TOPBAR USER / LOGOUT
============================================================ */

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}


.topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    line-height: 1.2;
}


.topbar-user-name {
    font-size: 12px;
    font-weight: 700;

    color: #24314d;
}


.topbar-user-role {
    margin-top: 3px;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    color: #8791a5;
}


.logout-btn {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    padding: 9px 13px;

    border-radius: 9px;

    border: 1px solid #e2e7ef;

    background: #ffffff;

    color: #b42331;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition: all 0.15s ease;
}


.logout-btn:hover {
    background: #fff1f2;

    border-color: #f0c6cb;

    color: #9d1f2c;
}


.logout-btn i {
    font-size: 12px;
}

/* ============================================================
   REGISTRATION PAGE - FIT WITHOUT SCROLL
============================================================ */

.register-page {
    margin: 0;

    height: 100vh;
    overflow: hidden;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f5f7fb;
}


.register-shell {
    height: 100vh;

    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;
}


/* ============================================================
   LEFT SIDE
============================================================ */

.register-brand-panel {
    display: flex;

    align-items: center;

    padding:
        36px 50px;

    color: white;

    background:
        linear-gradient(
            145deg,
            #08152c,
            #123264 60%,
            #1768cf
        );

    overflow: hidden;
}


.register-brand-content {
    width: 100%;

    max-width: 500px;

    margin: 0 auto;
}


.register-logo {
    display: block;

    width: 180px;

    max-width: 100%;

    max-height: 95px;

    margin:
        0 auto 18px;

    padding: 12px;

    box-sizing: border-box;

    object-fit: contain;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 10px 25px
        rgba(
            0,
            0,
            0,
            0.18
        );
}


.register-badge {
    display: inline-block;

    margin-bottom: 12px;

    padding: 6px 10px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.20
        );

    border-radius: 20px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;
}


.register-brand-content h1 {
    margin: 0;

    font-size: 32px;

    line-height: 1.12;
}


.register-brand-content > p {
    margin-top: 12px;

    color:
        rgba(
            255,
            255,
            255,
            0.75
        );

    font-size: 12px;

    line-height: 1.6;
}


.trial-features {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 20px;
}


.trial-features > div {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 11px;

    color:
        rgba(
            255,
            255,
            255,
            0.88
        );
}


.trial-features i {
    width: 20px;

    height: 20px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    font-size: 8px;
}


/* ============================================================
   RIGHT SIDE
============================================================ */

.register-form-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        22px 36px;

    overflow: hidden;
}


.register-card {
    width: 100%;

    max-width: 500px;

    padding:
        22px 26px;

    box-sizing: border-box;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 14px 42px
        rgba(
            31,
            53,
            90,
            0.10
        );
}


.register-heading > span {
    color: #2868cc;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.3px;
}


.register-heading h2 {
    margin:
        5px 0 3px;

    color: #17243b;

    font-size: 24px;
}


.register-heading p {
    margin:
        0 0 16px;

    color: #7e899c;

    font-size: 11px;
}


/* ============================================================
   FIELDS - COMPACT
============================================================ */

.register-card .login-field {
    margin-bottom: 10px;
}


.register-card .login-field label {
    margin-bottom: 4px;

    font-size: 10px;
}


.register-card .login-field input {
    padding: 10px 12px;

    border-radius: 8px;

    font-size: 12px;
}


.register-password-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


/* ============================================================
   BUTTON / LINKS
============================================================ */

.register-card .login-button {
    margin-top: 4px;

    padding: 10px;

    font-size: 12px;
}


.register-login-link {
    margin-top: 12px;

    font-size: 10px;
}


.register-trial-note {
    margin-top: 10px;

    padding: 8px 10px;

    border-radius: 8px;

    font-size: 9px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (
    max-width: 900px
) {

    .register-page {
        height: auto;
        min-height: 100vh;

        overflow-y: auto;
    }


    .register-shell {
        height: auto;
        min-height: 100vh;

        grid-template-columns: 1fr;
    }


    .register-brand-panel {
        display: none;
    }


    .register-form-panel {
        min-height: 100vh;

        padding:
            24px 18px;

        overflow: visible;
    }

}


@media (
    max-width: 560px
) {

    .register-password-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .register-card {
        padding:
            18px;
    }

}

.trial-pill {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 11px;

    border-radius: 20px;

    background: #fff7df;

    border: 1px solid #f2dfa1;

    color: #8a6812;

    font-size: 10px;
}


.trial-pill strong {
    font-weight: 800;
}

/* ============================================================
   LOGIN PAGE
============================================================ */

.login-page {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        #f4f7fc;
}


.login-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        1.15fr
        0.85fr;
}


/* ============================================================
   LOGIN LEFT PANEL
============================================================ */

.login-brand-panel {
    position: relative;

    display: flex;

    align-items: center;

    padding: 70px;

    overflow: hidden;

    color: white;

    background:
        linear-gradient(
            140deg,
            #08152c,
            #132f63 55%,
            #176ad4
        );
}


.login-brand-content {
    position: relative;

    z-index: 2;

    max-width: 620px;
}


/* LOGO */

.login-logo {
    display: block;

    width: 220px;

    max-width: 100%;

    max-height: 120px;

    margin:
        0 auto 40px;

    padding: 18px;

    object-fit: contain;

    box-sizing: border-box;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.20);
}


.login-brand-content h1 {
    margin: 0;

    font-size: 46px;

    line-height: 1.12;

    letter-spacing: -1px;
}


.login-brand-content > p {
    max-width: 520px;

    margin-top: 22px;

    color:
        rgba(
            255,
            255,
            255,
            0.76
        );

    font-size: 15px;

    line-height: 1.8;
}


.login-features {
    display: flex;

    gap: 14px;

    margin-top: 45px;
}


.login-features > div {
    min-width: 120px;

    padding: 14px 16px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );

    border-radius: 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    font-size: 11px;
}


.login-features strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}


/* ============================================================
   LOGIN RIGHT PANEL
============================================================ */

.login-form-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;
}


.login-card {
    width: 100%;

    max-width: 390px;
}


.login-heading span {
    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #2c6cd6;
}


.login-heading h2 {
    margin:
        8px 0 4px;

    font-size: 30px;

    color: #17243b;
}


.login-heading p {
    margin-bottom: 32px;

    color: #7e899c;

    font-size: 13px;
}


/* ============================================================
   INPUTS
============================================================ */

.login-field {
    margin-bottom: 18px;
}


.login-field label {
    display: block;

    margin-bottom: 7px;

    color: #43506a;

    font-size: 12px;

    font-weight: 700;
}


.login-field input {
    box-sizing: border-box;

    width: 100%;

    padding: 13px 14px;

    border:
        1px solid #dbe2ee;

    border-radius: 9px;

    outline: none;

    background: white;

    font-size: 13px;
}


.login-field input:focus {
    border-color: #3174dc;

    box-shadow:
        0 0 0 3px
        rgba(
            49,
            116,
            220,
            0.10
        );
}


/* ============================================================
   BUTTON
============================================================ */

.login-button {
    width: 100%;

    margin-top: 8px;

    padding: 13px;

    border: none;

    border-radius: 9px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #216bd7,
            #124caa
        );

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;
}


.login-button:hover {
    box-shadow:
        0 9px 25px
        rgba(
            26,
            91,
            190,
            0.22
        );
}


/* ============================================================
   LOGIN ERROR
============================================================ */

.login-error {
    margin-bottom: 20px;

    padding: 11px 13px;

    border-radius: 8px;

    color: #aa2735;

    background: #feecef;

    font-size: 12px;
}


/* ============================================================
   LOGIN LINKS
============================================================ */

.register-login-link {
    margin-top: 24px;

    text-align: center;

    color: #7e899c;

    font-size: 12px;
}


.register-login-link a {
    color: #216bd7;

    font-weight: 700;

    text-decoration: none;
}


.register-login-link a:hover {
    text-decoration: underline;
}


/* ============================================================
   LOGIN FOOTER
============================================================ */

.login-footer {
    margin-top: 35px;

    text-align: center;

    color: #a0a9b7;

    font-size: 10px;

    line-height: 1.7;
}


/* ============================================================
   REGISTRATION PAGE
============================================================ */

.register-page {
    margin: 0;

    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f5f7fb;
}


.register-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;
}


/* ============================================================
   REGISTRATION LEFT
============================================================ */

.register-brand-panel {
    display: flex;

    align-items: center;

    padding: 70px;

    color: white;

    background:
        linear-gradient(
            145deg,
            #08152c,
            #123264 60%,
            #1768cf
        );
}


.register-brand-content {
    width: 100%;

    max-width: 520px;
}


/* BIG CENTERED LOGO */

.register-logo {
    display: block;

    width: 220px;

    max-width: 100%;

    max-height: 120px;

    margin:
        0 auto 32px;

    padding: 18px;

    box-sizing: border-box;

    object-fit: contain;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.20);
}


.register-badge {
    display: inline-block;

    margin-bottom: 20px;

    padding: 7px 12px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.20
        );

    border-radius: 20px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.register-brand-content h1 {
    margin: 0;

    font-size: 40px;

    line-height: 1.15;
}


.register-brand-content > p {
    margin-top: 20px;

    color:
        rgba(
            255,
            255,
            255,
            0.75
        );

    font-size: 14px;

    line-height: 1.8;
}


.trial-features {
    display: flex;

    flex-direction: column;

    gap: 13px;

    margin-top: 35px;
}


.trial-features > div {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 12px;

    color:
        rgba(
            255,
            255,
            255,
            0.88
        );
}


.trial-features i {
    width: 22px;

    height: 22px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    font-size: 9px;
}


/* ============================================================
   REGISTRATION FORM
============================================================ */

.register-form-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 50px;
}


.register-card {
    width: 100%;

    max-width: 520px;

    padding: 30px;

    box-sizing: border-box;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 18px 55px
        rgba(
            31,
            53,
            90,
            0.10
        );
}


.register-heading > span {
    color: #2868cc;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.register-heading h2 {
    margin:
        8px 0 5px;

    color: #17243b;

    font-size: 30px;
}


.register-heading p {
    margin:
        0 0 28px;

    color: #7e899c;

    font-size: 13px;
}


.register-password-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}


.register-trial-note {
    margin-top: 18px;

    padding: 12px;

    border-radius: 9px;

    background: #eef5ff;

    color: #4c6383;

    text-align: center;

    font-size: 11px;
}


.register-trial-note i {
    margin-right: 5px;

    color: #216bd7;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (
    max-width: 900px
) {

    .login-shell,
    .register-shell {
        grid-template-columns: 1fr;
    }


    .login-brand-panel,
    .register-brand-panel {
        display: none;
    }


    .login-form-panel,
    .register-form-panel {
        min-height: 100vh;

        padding: 30px 20px;
    }

}


@media (
    max-width: 560px
) {

    .register-password-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .register-card {
        padding: 22px;
    }

}

/* ============================================================
   RAN-GA REGISTER PAGE - RICH CARD UPGRADE
   Add this at the END of style.css
============================================================ */


/* ------------------------------------------------------------
   RIGHT FORM PANEL
------------------------------------------------------------ */

.register-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px 32px;

    background:
        radial-gradient(
            circle at top right,
            rgba(39, 111, 232, 0.08),
            transparent 32%
        ),
        #f4f7fc;
}


/* ------------------------------------------------------------
   MAIN REGISTRATION CARD
------------------------------------------------------------ */

.register-card {
    width: 100%;
    max-width: 540px;

    box-sizing: border-box;

    padding: 22px 28px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid #e7edf6;

    border-radius: 26px;

    box-shadow:
        0 20px 55px rgba(31, 53, 90, 0.12),
        0 5px 15px rgba(31, 53, 90, 0.05);
}


/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */

.register-heading {
    text-align: center;

    margin-bottom: 16px;
}


.register-heading > span {
    display: inline-block;

    color: #1767db;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.register-heading h2 {
    margin: 6px 0 4px;

    color: #14233c;

    font-size: 27px;

    line-height: 1.15;

    font-weight: 800;
}


.register-heading p {
    margin: 0;

    color: #7a879b;

    font-size: 11px;
}


/* Small decorative separator */

.register-heading::after {
    content: "";

    display: block;

    width: 42px;
    height: 3px;

    margin: 12px auto 0;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #65a3ff,
            #1767df
        );
}


/* ------------------------------------------------------------
   FORM FIELD
------------------------------------------------------------ */

.register-card .login-field {
    margin-bottom: 10px;
}


.register-card .login-field label {
    display: block;

    margin-bottom: 5px;

    color: #1d2c45;

    font-size: 10px;

    font-weight: 750;
}


/* ------------------------------------------------------------
   ROUNDED INPUT BOXES
------------------------------------------------------------ */

.register-card .login-field input {
    width: 100%;

    box-sizing: border-box;

    height: 40px;

    padding: 0 14px;

    border: 1px solid #dbe4f1;

    border-radius: 12px;

    outline: none;

    background: #fbfcff;

    color: #1c2a42;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.register-card .login-field input::placeholder {
    color: #9ba8ba;
}


/* Input hover */

.register-card .login-field input:hover {
    border-color: #c2d2e8;

    background: #ffffff;
}


/* Input focus */

.register-card .login-field input:focus {
    border-color: #2b75df;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(43, 117, 223, 0.10),
        0 5px 14px rgba(30, 80, 150, 0.06);
}


/* ------------------------------------------------------------
   PASSWORD GRID
------------------------------------------------------------ */

.register-password-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


/* ------------------------------------------------------------
   CREATE ACCOUNT BUTTON
------------------------------------------------------------ */

.register-card .login-button {
    width: 100%;

    min-height: 42px;

    margin-top: 4px;

    border: none;

    border-radius: 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2478ef 0%,
            #175ed4 55%,
            #0e4eb8 100%
        );

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(24, 96, 208, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.register-card .login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 25px rgba(24, 96, 208, 0.28);
}


.register-card .login-button:active {
    transform: translateY(0);
}


/* Space between text and icon */

.register-card .login-button i {
    margin-left: 7px;
}


/* ------------------------------------------------------------
   ALREADY HAVE ACCOUNT SECTION
------------------------------------------------------------ */

.register-login-link {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 13px;

    color: #8490a2;

    font-size: 10px;
}


/* Lines on left/right */

.register-login-link::before,
.register-login-link::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e1e7f0;
}


.register-login-link::before {
    margin-right: 8px;
}


.register-login-link::after {
    margin-left: 8px;
}


.register-login-link a {
    color: #1767df;

    font-weight: 800;

    text-decoration: none;
}


.register-login-link a:hover {
    text-decoration: underline;
}


/* ------------------------------------------------------------
   TRIAL INFORMATION BOX
------------------------------------------------------------ */

.register-trial-note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 11px;

    padding: 9px 12px;

    box-sizing: border-box;

    border: 1px solid #cfe0fb;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f1f7ff,
            #eaf3ff
        );

    color: #315f9f;

    font-size: 9px;

    font-weight: 600;
}


.register-trial-note i {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    flex-shrink: 0;

    border-radius: 50%;

    color: #ffffff;

    background: #1767df;

    font-size: 9px;
}


/* ------------------------------------------------------------
   ERROR MESSAGE
------------------------------------------------------------ */

.register-card .login-error {
    margin-bottom: 12px;

    padding: 9px 12px;

    border: 1px solid #ffd0d5;

    border-radius: 11px;

    color: #a82b3a;

    background: #fff1f3;

    font-size: 10px;
}


/* ------------------------------------------------------------
   LEFT SIDE ALSO SLIGHTLY ROUNDED / POLISHED
------------------------------------------------------------ */

.register-brand-panel {
    position: relative;

    overflow: hidden;
}


/* subtle glow */

.register-brand-panel::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: -170px;
    bottom: -190px;

    border-radius: 50%;

    background:
        rgba(45, 124, 255, 0.14);

    filter: blur(10px);
}


.register-brand-content {
    position: relative;

    z-index: 1;
}


/* ------------------------------------------------------------
   LOGO BOX
------------------------------------------------------------ */

.register-logo {
    display: block;

    width: 180px;
    max-width: 100%;
    max-height: 92px;

    box-sizing: border-box;

    margin: 0 auto 17px;

    padding: 12px 16px;

    object-fit: contain;

    border: 1px solid rgba(255, 255, 255, 0.75);

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.20);
}


/* ------------------------------------------------------------
   TRIAL BADGE
------------------------------------------------------------ */

.register-badge {
    border-radius: 50px;

    padding: 6px 13px;

    border:
        1px solid rgba(103, 168, 255, 0.55);

    background:
        rgba(37, 112, 222, 0.18);

    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, 0.04);
}


/* ------------------------------------------------------------
   LEFT FEATURE ITEMS
------------------------------------------------------------ */

.trial-features > div {
    padding: 5px 8px;

    border-radius: 9px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.trial-features > div:hover {
    background:
        rgba(255, 255, 255, 0.06);

    transform: translateX(3px);
}


.trial-features i {
    box-shadow:
        0 4px 10px rgba(20, 100, 220, 0.25);
}


/* ============================================================
   SMALL LAPTOP HEIGHT
   Keeps registration screen from scrolling
============================================================ */

@media (min-width: 901px) and (max-height: 800px) {

    .register-card {
        padding: 16px 24px;

        border-radius: 22px;
    }


    .register-heading {
        margin-bottom: 10px;
    }


    .register-heading h2 {
        font-size: 23px;

        margin-top: 4px;
    }


    .register-heading::after {
        margin-top: 8px;
    }


    .register-card .login-field {
        margin-bottom: 7px;
    }


    .register-card .login-field input {
        height: 36px;
    }


    .register-card .login-button {
        min-height: 38px;
    }


    .register-login-link {
        margin-top: 9px;
    }


    .register-trial-note {
        margin-top: 8px;

        padding: 7px 10px;
    }


    .register-logo {
        width: 155px;

        max-height: 78px;

        margin-bottom: 12px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 900px) {

    .register-form-panel {
        padding: 22px 16px;
    }


    .register-card {
        max-width: 520px;

        padding: 22px;

        border-radius: 20px;
    }

}


@media (max-width: 560px) {

    .register-password-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .register-card {
        padding: 18px;

        border-radius: 18px;
    }


    .register-heading h2 {
        font-size: 23px;
    }


    .register-login-link::before,
    .register-login-link::after {
        display: none;
    }

}
/* =========================================================
   RAN-GA RESPONSIVE NAVIGATION / HEADER PATCH
   2026-09-10
========================================================= */
:root {
    --sidebar-collapsed-width: 68px;
}

.topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-heading { min-width: 0; }

.sidebar-toggle {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ranga-navy);
    box-shadow: 0 5px 14px rgba(10,42,104,.06);
    font-size: 17px;
}

.sidebar-toggle:hover { background: var(--surface-soft); }
.sidebar-close, .sidebar-overlay { display: none; }

.sidebar,
.main-panel {
    transition: width .24s ease, margin-left .24s ease, transform .24s ease;
}

body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-width); }
body.sidebar-collapsed .main-panel {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}
body.sidebar-collapsed .brand-logo-wrap,
body.sidebar-collapsed .brand-title,
body.sidebar-collapsed .brand-subtitle,
body.sidebar-collapsed .nav-item > span:not(.nav-icon),
body.sidebar-collapsed .sidebar-footer { display: none; }
body.sidebar-collapsed .brand-box { height: 74px; padding: 0; }
body.sidebar-collapsed .sidebar-nav { padding: 16px 10px; }
body.sidebar-collapsed .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
body.sidebar-collapsed .nav-icon { width: auto; margin: 0; }
body.sidebar-collapsed .nav-item.active::after { display: none; }

/* Remove the older always-visible narrow sidebar behaviour on tablets/mobile. */
@media (max-width: 900px) {
    :root { --sidebar-width: 220px; }

    .sidebar {
        width: min(78vw, 240px);
        transform: translateX(-105%);
        box-shadow: 20px 0 55px rgba(4,20,47,.24);
        z-index: 1002;
    }

    body.sidebar-open .sidebar { transform: translateX(0); }

    .sidebar .brand-logo-wrap { display: flex; }
    .sidebar .brand-title,
    .sidebar .brand-subtitle,
    .sidebar .nav-item span:not(.nav-icon),
    .sidebar .sidebar-footer { display: block; }
    .sidebar .sidebar-footer { margin-top: auto; }
    .sidebar .brand-box { height: auto; padding: 24px 20px 22px; }
    .sidebar .sidebar-nav { padding: 22px 14px; }
    .sidebar .nav-item { justify-content: flex-start; padding: 0 14px; }
    .sidebar .nav-icon { width: 38px; }

    .sidebar-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 4;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 10px;
        background: rgba(3,20,47,.62);
        color: #fff;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        background: rgba(4,21,47,.42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }
    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-panel,
    body.sidebar-collapsed .main-panel {
        width: 100%;
        margin-left: 0;
    }

    .topbar { padding-left: 18px; padding-right: 18px; }
    .health-pill { display: none; }
}

@media (max-width: 680px) {
    .topbar {
        height: 70px;
        padding: 0 12px;
        gap: 8px;
    }
    .topbar-left { gap: 9px; flex: 1 1 auto; overflow: hidden; }
    .sidebar-toggle { width: 38px; height: 38px; border-radius: 10px; }
    .topbar-heading { overflow: hidden; }
    .page-title {
        max-width: 44vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 16px;
    }
    .topbar-actions { flex: 0 0 auto; gap: 6px; }
    .trial-pill { display: none; }
    .header-button { display: none; }
    .profile-chip { display: none; }
    .logout-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        border-radius: 10px;
    }
    .logout-btn span { display: none; }
}

@media (max-width: 390px) {
    .page-title { max-width: 48vw; font-size: 15px; }
}
