/* ================= RESET ================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: #0f172a;
    background: #ffffff;
}

/* ================= LAYOUT ================= */
.layout {
    --sidebar-w: 280px;
    --radius: 16px;
    --line: rgba(15,23,42,.08);
    --shadow: 0 12px 30px rgba(15,23,42,.08);

    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
}

/* ================= SIDEBAR ================= */
.sidebar {
    position: sticky;
    top: 0;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.6));
    border-right: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.brand__logo {
    width: 55px;
    height: 55px;
    background-image: url(../img/logo.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: auto;
    margin-right: auto;
}

.sidebar__close { display: none; }

/* ================= NAV ================= */
.nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav__section {
    margin: 16px 10px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(15,23,42,.45);
}

.nav__section::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 6px;
    background: linear-gradient(to right, rgba(15,23,42,.15), transparent);
}

.nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 1px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all .15s ease;
}

.nav__item:hover {
    background: rgba(255,255,255,.8);
    border-color: var(--line);
    transform: translateY(-1px);
}

.nav__item.is-active {
    background: rgba(99,102,241,.12);
    border-color: rgba(99,102,241,.3);
}

.nav__icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(99,102,241,.12);
}

.badge {
    margin-left: auto;
    padding: 3px 8px;
    font-size: .75rem;
    border-radius: 999px;
    background: rgba(15,23,42,.1);
}

/* ================= FOOTER ================= */
.sidebar_user {
    position: absolute;
    right: 4px;
}

.user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
}

.user__avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
}

.jabe{
    background: linear-gradient(135deg, #6366f1, #0ea5e9) !important;
}

.nath{
    background: linear-gradient(135deg, darkred, red) !important;
}

.josh{
    background: linear-gradient(135deg, darkorange, orange) !important;
}

.chloe{
    background: linear-gradient(135deg, deeppink, hotpink) !important;
}

.gee{
    background: linear-gradient(135deg, purple, mediumpurple) !important;

}

.user__role {
    font-size: .8rem;
    color: rgba(15,23,42,.6);
}

/* ================= MAIN ================= */
.main {
    padding: 6px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.icon-btn {
    width: 44px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.9);
    cursor: pointer;
}

.content {
    margin-top: 16px;
    padding: 18px;
    padding-bottom:50px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.cards {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    min-height: 120px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.9);
    padding: 16px;
}

/* ================= OVERLAY ================= */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 40;
}

/* ================= MOBILE ================= */
@media (max-width: 920px) {
    .layout { grid-template-columns: 1fr; }

    .sidebar {
        position: fixed;
        z-index: 50;
        width: min(86vw, 280px);
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 0 18px 50px rgba(15,23,42,.25);
    }

    .sidebar__close { display: block; }
    .layout.sidebar-open .sidebar { transform: translateX(0); }
    .layout.sidebar-open .overlay { display: block; }

    .cards { grid-template-columns: 1fr; }
}


.input-modern {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.4;

    color: #0f172a;              /* slate-900 */
    background: #ffffff;

    border: 1px solid #cbd5e1;   /* slate-300 */
    border-radius: 8px;          /* slightly rounded */

    outline: none;
    transition:
            border-color .15s ease,
            box-shadow .15s ease,
            background-color .15s ease;
}

.input-modern::placeholder {
    color: #94a3b8;              /* slate-400 */
}

.input-modern:focus {
    border-color: #6366f1;       /* indigo-500 */
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.input-modern:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.input-modern.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

#idle-timer {
    position: fixed;
    bottom: 28px;
    right: 20px;
    background: rgba(34, 34, 34, 0.6);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.7em;
}