/* OPEN GATE DESIGN SYSTEM
   1. Tokens  2. Shell  3. Components  4. Login  5. Responsive & motion
   Change the variables below to adjust the entire workspace. */
:root {
    --navy: #07182b;
    --navy-light: #122c46;
    --gold: #d5ae69;
    --gold-light: #f5e4bf;
    --ink: #182c40;
    --muted: #758294;
    --canvas: #f3f5f8;
    --line: #e6ebf0;
    --sidebar-width: 252px;
    --radius: 16px;
    --shadow: 0 6px 28px #142d4710;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
a {
    color: #315b87;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
h1,
h2,
h3,
h4 {
    letter-spacing: -0.035em;
    font-weight: 700;
}
h2 {
    font-size: 26px;
}
h4 {
    font-size: 20px;
}
h6 {
    font-size: 13px;
    color: var(--muted);
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: linear-gradient(160deg, var(--navy), #0b2137);
    color: #fff;
    z-index: 1040;
    padding: 26px 16px 18px;
    display: flex;
    flex-direction: column;
    overflow: auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-light);
    padding: 0 8px 28px;
    border-bottom: 1px solid #ffffff12;
    font-weight: 750;
    letter-spacing: 2px;
    line-height: 1.3;
}
.brand img {
    width: 48px;
    height: 58px;
    object-fit: contain;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2.3px;
    color: var(--gold);
}
.workspace-label {
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 1.6px;
    color: #7390ad;
    padding: 29px 12px 12px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    margin: 5px 0;
}
.sidebar li a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #aebfd0;
    font-size: 13px;
    transition:
        background 0.2s,
        color 0.2s;
}
.sidebar li a:hover {
    background: #ffffff08;
    color: white;
}
.sidebar li.active a {
    color: var(--gold-light);
    background: #d5ae6917;
    box-shadow: inset 3px 0 var(--gold);
}
.nav-icon {
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    opacity: 0.85;
    position: relative;
}
.icon-people {
    border-radius: 50%;
    height: 13px;
}
.icon-chart {
    border-top: 0;
    border-right: 0;
    border-radius: 0;
}
.icon-chart:after {
    content: "";
    position: absolute;
    inset: 5px 3px 2px;
    border-top: 2px solid;
    transform: rotate(-30deg);
}
.icon-report:after {
    content: "";
    position: absolute;
    inset: 4px 3px;
    border-top: 1px solid;
    border-bottom: 1px solid;
}
.icon-settings {
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--navy);
}
.sidebar-note {
    margin-top: auto;
    padding: 38px 12px 20px;
    color: #b6c5d4;
    font-size: 11px;
}
.sidebar-note small {
    display: block;
    color: #6f88a0;
    margin-top: 4px;
}
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #82c3af;
    border-radius: 50%;
    margin-right: 5px;
}
.signout {
    border-top: 1px solid #ffffff12;
    padding: 16px 12px 0;
    color: #9db1c5;
    font-size: 12px;
}
.main-content,
.main {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - 64px);
}
.topbar {
    height: 80px;
    background: #ffffffec;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.topbar-start {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
}
.crumb {
    color: var(--muted);
    font-weight: 400;
    margin-left: 10px;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12px;
    font-weight: 650;
}
.topbar-user time {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
    margin-right: 18px;
}
.topbar-user small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}
.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #f3ebdc;
    color: #947238;
    border-radius: 50%;
    font-size: 14px;
}
.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 23px;
}
.container-fluid {
    padding: 28px 34px !important;
}
.container {
    padding-top: 26px;
    padding-bottom: 26px;
}
.workspace-footer {
    margin-left: var(--sidebar-width);
    padding: 18px 34px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: #8a96a5;
    font-size: 10px;
}
.nav-shade {
    display: none;
}
/* Components */
.card {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow) !important;
    background: white;
    overflow: hidden;
    animation: rise 0.45s both;
}
.card-body {
    padding: 24px;
}
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.card-header h4 {
    margin: 0;
}
.card h2 {
    font-size: 36px;
    color: var(--ink);
    margin: 12px 0 0;
}
.card:hover {
    box-shadow: 0 12px 35px #142d4718 !important;
}
.shadow,
.shadow-sm {
    box-shadow: var(--shadow) !important;
}
.btn {
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px #07182b18;
}
.btn-primary,
.bg-primary {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
}
.btn-primary:hover {
    background: var(--navy-light) !important;
}
.btn-success {
    background: #2b7865;
    border-color: #2b7865;
}
.btn-warning {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #795923;
}
.btn-info {
    background: #e3eef7;
    border-color: #e3eef7;
    color: #35668d;
}
.btn-sm {
    padding: 6px 10px;
    font-size: 11px;
}
.form-control,
.form-select {
    border: 1px solid #dfe5ec;
    border-radius: 9px;
    min-height: 42px;
    color: var(--ink);
    font-size: 13px;
    background-color: #fcfdfe;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px #d5ae6920;
}
.form-label,
label {
    font-size: 12px;
    font-weight: 600;
}
.table {
    font-size: 12px;
    vertical-align: middle;
    margin-bottom: 0;
}
.table > :not(caption) > * > * {
    padding: 15px 18px;
    border-color: var(--line);
}
.table thead th {
    background: #f8fafc;
    color: #77889a;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-size: 9px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}
.table-dark {
    --bs-table-bg: #f8fafc;
    --bs-table-color: #77889a;
    --bs-table-border-color: var(--line);
}
.table-striped {
    --bs-table-striped-bg: #fbfcfe;
}
.table-hover {
    --bs-table-hover-bg: #f4f7fb;
}
.badge {
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}
.badge.bg-success {
    background: #e5f3ec !important;
    color: #398065;
}
.badge.bg-warning {
    background: #fcf1db !important;
    color: #996d1d;
}
.badge.bg-danger {
    background: #fae9e9 !important;
    color: #b45353;
}
.badge.bg-primary,
.badge.bg-info {
    background: #e8eff8 !important;
    color: #4a6b93;
}
.alert {
    border-radius: 12px;
    font-size: 13px;
}
.page-link {
    color: var(--ink);
    border-color: var(--line);
}
.page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
}
.table-wrap {
    overflow-x: auto;
}
.hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 26px;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a2875e;
    font-size: 10px;
    font-weight: 700;
}
.hero h1 {
    font-size: 32px;
    margin: 7px 0;
}
.hero p {
    color: var(--muted);
    margin: 0;
    font-size: 12px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.stat {
    padding: 22px 24px;
}
.stat-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
}
.stat-symbol {
    color: #aa8a52;
    font-size: 19px;
}
.stat-number {
    font-size: 35px;
    line-height: 1.6;
    font-weight: 650;
    letter-spacing: -2px;
}
.stat-foot {
    font-size: 10px;
    color: var(--muted);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 23px 24px;
    border-bottom: 1px solid var(--line);
}
.section-head h3 {
    font-size: 15px;
    margin: 0;
}
.section-head small {
    font-size: 10px;
    color: var(--muted);
}
.pipeline-row {
    display: grid;
    grid-template-columns: 92px 1fr 28px;
    gap: 18px;
    align-items: center;
    margin-bottom: 23px;
    font-size: 11px;
}
.pipeline-track {
    height: 7px;
    background: #f0f3f7;
    border-radius: 8px;
    overflow: hidden;
}
.pipeline-track span {
    display: block;
    height: 100%;
    background: var(--gold);
    border-radius: 8px;
}
.empty-state {
    text-align: center;
    padding: 42px 20px;
    color: var(--muted);
}
.empty-state h4 {
    font-size: 15px;
    color: var(--ink);
    margin: 12px 0 8px;
}
.empty-state p {
    font-size: 12px;
}
.empty-symbol {
    font-size: 27px;
    color: var(--gold);
}
.quick-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    color: var(--ink);
    transition: background 0.2s;
}
.quick-link:hover {
    background: #f9f5ed;
}
.quick-link small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}
.banner {
    padding: 22px 26px;
    background: var(--navy);
    border-radius: var(--radius);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.banner p {
    color: #90a7bd;
    font-size: 11px;
    margin: 3px 0 0;
}
.banner strong {
    font-size: 14px;
}
.banner .btn {
    background: var(--gold-light);
    color: var(--navy);
}
/* Login */
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.12fr 1fr;
}
.login-story {
    background: radial-gradient(ellipse at 20% 30%, #193650, var(--navy) 70%);
    padding: 55px 65px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: white;
}
.login-story:after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid #d5ae6922;
    border-radius: 100px;
    transform: rotate(35deg);
    right: -260px;
    bottom: -170px;
    animation: float 12s ease-in-out infinite;
}
.login-story .brand {
    align-self: flex-start;
    border: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}
.login-message {
    margin: auto 0;
    position: relative;
    z-index: 1;
}
.login-message h1 {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.12;
    letter-spacing: -2.5px;
    max-width: 560px;
    margin: 22px 0;
}
.login-message h1 span {
    color: var(--gold-light);
}
.login-message p {
    max-width: 370px;
    color: #9bb0c4;
    font-size: 14px;
    line-height: 1.9;
}
.login-pill {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 7px 12px;
    border: 1px solid #d5ae6930;
    border-radius: 30px;
    color: var(--gold-light);
}
.login-features {
    display: flex;
    gap: 30px;
    color: #a3b6c9;
    font-size: 10px;
    margin-top: 34px;
}
.login-story footer {
    font-size: 10px;
    color: #63819b;
}
.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 15%;
    background: white;
}
.login-panel h2 {
    font-size: 30px;
    margin: 8px 0 10px;
}
.login-panel > p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 32px;
}
.login-panel .form-control {
    min-height: 49px;
}
.login-panel .btn-primary {
    min-height: 48px;
}
.login-support {
    font-size: 11px;
    color: var(--muted);
    margin-top: 25px;
    text-align: center;
}
.password-wrap {
    display: flex;
    position: relative;
}
.password-wrap input {
    padding-right: 65px;
}
.password-wrap button {
    position: absolute;
    right: 8px;
    top: 7px;
    border: 0;
    background: none;
    font-size: 11px;
    color: var(--muted);
    padding: 8px;
}
.login-panel form {
    animation: rise 0.6s both;
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes float {
    50% {
        transform: rotate(40deg) translateY(-20px);
    }
}
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1600px;
        margin: auto;
    }
}
@media (max-width: 1100px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .login-story {
        padding: 40px;
    }
    .login-panel {
        padding: 45px 10%;
    }
}
@media (max-width: 800px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s;
    }
    .nav-open .sidebar {
        transform: none;
    }
    .nav-open .nav-shade {
        display: block;
        position: fixed;
        inset: 0;
        background: #07182b66;
        z-index: 1039;
        border: 0;
    }
    .main,
    .main-content,
    .workspace-footer {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .topbar {
        padding: 0 20px;
        height: 68px;
    }
    .topbar-user time,
    .crumb {
        display: none;
    }
    .container-fluid {
        padding: 24px 20px !important;
    }
    .hero {
        align-items: flex-start;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero .btn {
        font-size: 10px;
    }
    .workspace-footer {
        padding: 16px 20px;
    }
    .workspace-footer span:last-child {
        display: none;
    }
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-story {
        padding: 28px;
    }
    .login-message {
        margin: 40px 0 20px;
    }
    .login-message h1 {
        font-size: 36px;
        max-width: 400px;
    }
    .login-story footer,
    .login-features {
        display: none;
    }
    .login-panel {
        padding: 35px 28px;
    }
    .banner {
        gap: 16px;
    }
    .stat {
        padding: 18px;
    }
    .stat-grid {
        gap: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Emblem viewport uses the supplied complete transparent logo; no raster cropping. */
.brand-mark {
    width: 44px;
    height: 50px;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}
.brand .brand-mark img {
    width: 72px;
    height: 72px;
    max-width: none;
    object-fit: contain;
    transform: translate(-14px, -3px);
}
