:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --ink: #172033;
    --muted: #697386;
    --line: #dce3ef;
    --brand: #0f766e;
    --brand-strong: #115e59;
    --danger-bg: #fee2e2;
    --danger-ink: #991b1b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

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

.shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #111827;
    color: #f9fafb;
    padding: 24px 18px;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 20px;
}

.brand span {
    color: #a7f3d0;
    margin-top: 4px;
}

.nav {
    display: grid;
    gap: 6px;
}

.nav a {
    border-radius: 8px;
    color: #d1d5db;
    padding: 11px 12px;
}

.nav a:hover,
.nav a.active {
    background: #1f2937;
    color: #ffffff;
}

.logout {
    margin-top: auto;
}

.logout button,
.toolbar button,
.login-panel button,
.button {
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    font-weight: 700;
}

.logout button {
    width: 100%;
    background: #374151;
}

.content {
    min-width: 0;
    padding: 28px;
}

.page-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
    text-transform: uppercase;
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metrics.compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 18px;
}

.metric {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    min-height: 120px;
    padding: 18px;
}

.metric span {
    color: var(--muted);
}

.metric strong {
    font-size: 30px;
}

.compact .metric {
    min-height: 92px;
}

.compact .metric strong {
    font-size: 24px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.button.secondary {
    background: #334155;
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

input {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 40px;
    padding: 0 12px;
}

.toolbar input {
    max-width: 520px;
    width: 100%;
}

.table-meta {
    color: var(--muted);
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.table-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: auto;
}

table {
    border-collapse: collapse;
    min-width: 100%;
    white-space: nowrap;
}

th,
td {
    border-bottom: 1px solid var(--line);
    max-width: 360px;
    overflow: hidden;
    padding: 10px 12px;
    text-overflow: ellipsis;
    text-align: left;
    vertical-align: top;
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 9px;
}

.status.active {
    background: #dcfce7;
    color: #166534;
}

.status.inactive {
    background: #f1f5f9;
    color: #475569;
}

.status.ticket {
    background: #e0f2fe;
    color: #075985;
}

.status.warning {
    background: #fef3c7;
    color: #92400e;
}

th {
    background: #eef3f8;
    color: #334155;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.pagination {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.pagination a {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
}

.login-body {
    background: #f7fbff;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(520px, 1.08fr) minmax(430px, 1fr);
    min-height: 100vh;
}

.login-showcase {
    background:
        radial-gradient(circle at 82% 34%, rgba(20, 147, 255, 0.24), transparent 25%),
        radial-gradient(circle at 74% 92%, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #075fd0 0%, #0446aa 45%, #032d82 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    padding: 84px 56px 44px;
    position: relative;
}

.login-showcase::before,
.login-showcase::after {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.login-showcase::before {
    height: 560px;
    right: -180px;
    top: -330px;
    width: 560px;
}

.login-showcase::after {
    bottom: -210px;
    height: 460px;
    right: -80px;
    width: 460px;
}

.login-logo {
    min-height: 92px;
    position: relative;
    z-index: 2;
}

.login-logo img {
    display: block;
    height: auto;
    max-width: 360px;
    width: 58%;
}

.login-logo strong {
    color: #16b7ff;
    display: block;
    font-size: 58px;
    line-height: 0.9;
}

.login-logo span {
    color: #f6d8a7;
    display: block;
    font-size: 23px;
    margin-top: 8px;
}

.login-copy {
    font-size: 21px;
    line-height: 1.75;
    margin: 28px 0 0;
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.dashboard-preview {
    bottom: 128px;
    height: 410px;
    left: 48px;
    position: absolute;
    width: 650px;
    z-index: 1;
}

.preview-window {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 18, 84, 0.35);
    height: 275px;
    left: 86px;
    padding: 28px;
    position: absolute;
    top: 42px;
    transform: rotate(-4deg);
    width: 560px;
}

.preview-summary {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 18, 84, 0.22);
    display: grid;
    gap: 12px;
    grid-template-columns: 1.15fr 1fr 1fr;
    left: 122px;
    padding: 13px 15px;
    position: absolute;
    top: 248px;
    transform: rotate(-4deg);
    width: 470px;
}

.preview-summary strong {
    color: #083982;
    display: block;
    font-size: 10px;
    margin-bottom: 8px;
}

.mini-bars,
.mini-status,
.mini-progress {
    align-items: end;
    display: flex;
    gap: 7px;
    height: 36px;
}

.mini-bars i {
    background: linear-gradient(180deg, #0067ff, #60d5bd);
    border-radius: 5px 5px 2px 2px;
    display: block;
    width: 16px;
}

.mini-bars i:nth-child(1) {
    height: 16px;
}

.mini-bars i:nth-child(2) {
    height: 29px;
}

.mini-bars i:nth-child(3) {
    height: 21px;
}

.mini-bars i:nth-child(4) {
    height: 33px;
}

.mini-status {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
}

.mini-status i {
    background: #dbeafe;
    border-radius: 999px;
    display: block;
    height: 8px;
    position: relative;
}

.mini-status i::after {
    background: #005de0;
    border-radius: inherit;
    content: "";
    display: block;
    height: 100%;
    width: 72%;
}

.mini-status i:nth-child(2)::after {
    background: #22c55e;
    width: 48%;
}

.mini-status i:nth-child(3)::after {
    background: #f97316;
    width: 30%;
}

.mini-progress {
    align-items: center;
}

.mini-progress i {
    background: conic-gradient(#005de0 0 76%, #dbeafe 76% 100%);
    border-radius: 50%;
    display: block;
    height: 36px;
    position: relative;
    width: 36px;
}

.mini-progress i::after {
    background: #ffffff;
    border-radius: 50%;
    content: "";
    height: 22px;
    left: 7px;
    position: absolute;
    top: 7px;
    width: 22px;
}

.preview-title {
    color: #083982;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.preview-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

.preview-grid span {
    background:
        linear-gradient(135deg, rgba(0, 93, 223, 0.13), rgba(17, 190, 174, 0.1)),
        #ffffff;
    border: 1px solid #dbe8ff;
    border-radius: 8px;
    height: 82px;
}

.preview-rail {
    background: rgba(0, 44, 120, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    display: grid;
    gap: 16px;
    left: 0;
    padding: 26px 18px;
    position: absolute;
    top: 24px;
    width: 70px;
    z-index: 2;
}

.preview-rail span {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    height: 34px;
}

.floating-metrics {
    display: grid;
    gap: 14px;
    position: absolute;
    right: 56px;
    top: 34%;
    width: 330px;
    z-index: 3;
}

.floating-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 22, 92, 0.28);
    color: #0b1458;
    display: flex;
    gap: 16px;
    min-height: 96px;
    padding: 14px 18px;
}

.floating-card small {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 4px;
}

.floating-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.floating-card em {
    color: #0b8f3c;
    font-size: 13px;
    font-style: normal;
    margin-left: 8px;
}

.metric-icon {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 62px;
    justify-content: center;
    width: 62px;
}

.metric-icon svg,
.field-icon svg {
    display: block;
    fill: none;
    height: 30px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 30px;
}

.metric-icon.headset,
.metric-icon.check {
    background: #eef2ff;
    color: #005de0;
}

.metric-icon.clock {
    background: #e8f8ef;
    color: #0f9a49;
}

.metric-icon.team {
    background: #fff4e5;
    color: #f97316;
}

.login-assurances {
    align-items: center;
    bottom: 54px;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    left: 56px;
    max-width: 660px;
    position: absolute;
    right: 56px;
    z-index: 3;
}

.login-assurances span {
    font-size: 15px;
    line-height: 1.45;
    padding-left: 40px;
    position: relative;
}

.login-assurances span::before {
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 9px;
    content: "";
    height: 24px;
    left: 0;
    position: absolute;
    top: 1px;
    width: 24px;
}

.login-form-wrap {
    align-items: center;
    background:
        radial-gradient(circle at 92% 14%, rgba(0, 93, 223, 0.08), transparent 26%),
        #f8fbff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 42px;
}

.login-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 228, 241, 0.82);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(29, 62, 116, 0.12);
    display: grid;
    gap: 22px;
    max-width: 620px;
    padding: 76px 70px;
    width: 100%;
}

.login-heading {
    margin-bottom: 24px;
    text-align: center;
}

.login-heading h1 {
    color: #090c55;
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.login-heading p {
    color: #6575a8;
    font-size: 21px;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 440px;
}

.login-panel label {
    color: #090c55;
    display: grid;
    font-size: 16px;
    font-weight: 700;
    gap: 10px;
}

.login-input {
    align-items: center;
    border: 1px solid #cdd9ec;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
}

.field-icon {
    align-items: center;
    color: #6b7eb6;
    display: inline-flex;
    flex: 0 0 auto;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.login-input input {
    border: 0;
    color: #11185d;
    flex: 1;
    font-size: 17px;
    min-height: 56px;
    outline: 0;
    padding: 0;
}

.login-input input::placeholder {
    color: #6d7cac;
}

.remember-access {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    font-weight: 500 !important;
    gap: 10px !important;
}

.remember-access input {
    accent-color: #005de0;
    height: 20px;
    min-height: 0;
    width: 20px;
}

.login-panel button {
    background: #005de0;
    border-radius: 8px;
    font-size: 18px;
    min-height: 62px;
}

.forgot-link {
    color: #005de0;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    margin-top: 8px;
}

.alert {
    background: var(--danger-bg);
    border-radius: 8px;
    color: var(--danger-ink);
    margin: 0;
    padding: 10px 12px;
}

.notice {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

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

    .sidebar {
        position: static;
    }

    .page-header,
    .toolbar,
    .actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 1080px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: auto;
        padding: 46px 28px 210px;
    }

    .login-copy {
        margin-top: 30px;
        max-width: 640px;
    }

    .dashboard-preview,
    .floating-metrics {
        display: none;
    }

    .login-assurances {
        bottom: 34px;
        grid-template-columns: 1fr;
        left: 28px;
        right: 28px;
    }

    .login-form-wrap {
        min-height: auto;
        padding: 28px;
    }

    .login-panel {
        padding: 42px 26px;
    }
}

@media (max-width: 560px) {
    .login-logo strong {
        font-size: 42px;
    }

    .login-logo span {
        font-size: 18px;
    }

    .login-copy {
        font-size: 18px;
    }

    .login-heading h1 {
        font-size: 24px;
    }

    .login-heading p {
        font-size: 17px;
    }
}
