:root {
    --bg: #111318;
    --surface: #1c1f26;
    --text: #f5f5f5;
    --accent: #f97316;
    --border: #30343c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.topbar {
    height: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
    color: var(--accent);
}

#current-date {
    text-align: center;
}

.topbar-widgets {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.app-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    height: calc(100vh - 64px);
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 12px;
    background: var(--surface);
    border-right: 1px solid var(--border);
}

.sidebar-nav,
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.nav-item:hover:not(:disabled),
.nav-item.active {
    background: var(--border);
    color: var(--accent);
}

.nav-item:disabled {
    opacity: 0.6;
    cursor: default;
}

.workspace {
    min-width: 0;
    overflow: auto;
    padding: 24px;
}

.elijah {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px #0005;
}

.elijah-header {
    width: 100%;
    padding: 16px;
    background: var(--surface);
    color: var(--accent);
    border: none;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.elijah-body {
    height: 360px;
    display: flex;
    flex-direction: column;
}

.elijah-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.elijah-input {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.elijah-input input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.elijah-input button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
}

.elijah.minimized .elijah-body {
    display: none;
}

.welcome-modal {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    width: 420px;
    max-width: 90vw;
}

.welcome-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.welcome-modal,
.welcome-modal input,
.welcome-modal select,
.welcome-modal button {
    font-size: 16px;
}

.color-swatches {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.color-swatches[hidden] {
    display: none;
}

.color-swatch {
    width: 38px;
    height: 38px;
    border: 2px solid #777;
    border-radius: 8px;
    cursor: pointer;
}

.color-swatch:hover {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-preset {
    padding: 10px 16px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.theme-preset:hover {
    border-color: var(--accent);
}

/*-------------------------------- ELIJAH RESULTS */

#elijah-results {
    width: 100%;
}

#elijah-results h2 {
    margin: 0 0 20px;
    font-size: 1.4rem;
}

/*-------------------------------- METRIC CARDS */

.elijah-results-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    width: 100%;
}

.elijah-results-table tbody {
    display: contents;
}

.elijah-results-table tr {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.elijah-results-table th {
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.7;
}

.elijah-results-table td {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
}



/* ------------------------ STAFF REGISTRATION */

.register-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at 50% 0%,
            color-mix(in srgb, var(--accent) 10%, transparent),
            transparent 65%
        ),
        var(--bg);
}

.register-page .register-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 60px #0003;
    overflow: hidden;
}

.register-page .card {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.register-page h1 {
    margin: 20px 0 10px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.register-page .description {
    margin: 0 0 32px;
    color: var(--text);
    opacity: 0.65;
    font-size: 14px;
    line-height: 1.7;
}

.register-page #registerForm {
    display: flex;
    flex-direction: column;
}

.register-page label {
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
}

.register-page input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    margin-bottom: 22px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.register-page input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent) 15%, transparent);
}

.register-page #submitBtn {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
}

.register-page #submitBtn:hover:not(:disabled) {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.register-page #submitBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.register-page #result {
    min-height: 20px;
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
}

.register-page #result.success {
    color: #4ade80;
}

.register-page #result.error {
    color: #f87171;
}

.register-page .back {
    display: block;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text);
    opacity: 0.65;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s, opacity 0.2s;
}

.register-page .back:hover {
    color: var(--accent);
    opacity: 1;
}

@media (max-width: 520px) {
    .register-page .register-card {
        padding: 28px 22px;
    }
}


/* Employee Directory */

.employee-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.employee-row span:last-child {
    color: var(--accent);
}

