:root {
    --navy: #0f1f45;
    --navy-dark: #0a1633;
    --blue: #2f6fed;
    --green: #22a559;
    --orange: #f2a71b;
    --purple: #7b4fd1;
    --red: #e5484d;
    --teal: #17a6b0;
    --bg: #f4f6fb;
}

body {
    background: var(--bg);
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Sidebar ---------- */
.tl-sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--navy);
    color: #cfd8ef;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

.tl-sidebar .brand {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.tl-sidebar .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.tl-sidebar .brand-text {
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.tl-sidebar nav {
    padding: .75rem;
    flex: 1;
    overflow-y: auto;
}

.tl-sidebar .nav-link {
    color: #b9c3e0;
    padding: .65rem .9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .92rem;
    margin-bottom: .15rem;
}

.tl-sidebar .nav-link:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}

.tl-sidebar .nav-link.active {
    background: var(--blue);
    color: #fff;
}

/* ---------- Main content ---------- */
.tl-main {
    margin-left: 250px;
    min-height: 100vh;
}

.tl-topbar {
    background: #fff;
    border-bottom: 1px solid #e7eaf3;
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tl-content {
    padding: 1.5rem;
}

/* ---------- Summary cards ---------- */
.summary-card {
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    color: #fff;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-card .label {
    font-size: .72rem;
    letter-spacing: .06em;
    opacity: .9;
    text-transform: uppercase;
}

.summary-card .value {
    font-size: 1.55rem;
    font-weight: 700;
    margin: .2rem 0;
}

.summary-card .sub {
    font-size: .72rem;
    opacity: .85;
}

.bg-c-blue   { background: var(--blue); }
.bg-c-green  { background: var(--green); }
.bg-c-orange { background: var(--orange); }
.bg-c-purple { background: var(--purple); }
.bg-c-red    { background: var(--red); }
.bg-c-teal   { background: var(--teal); }

/* ---------- Panels ---------- */
.tl-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eceff6;
    padding: 1.1rem 1.2rem;
    height: 100%;
}

.tl-panel h6 {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .04em;
    color: #6b7590;
    font-weight: 700;
    margin-bottom: .9rem;
}

.badge-filed    { background: #e4f7ea; color: #1c8a4a; }
.badge-upcoming { background: #fdf1da; color: #a5710b; }
.badge-overdue  { background: #fde3e3; color: #c22a2f; }

.alert-item {
    display: flex;
    gap: .6rem;
    padding: .55rem 0;
    border-bottom: 1px solid #f1f2f8;
    font-size: .85rem;
}
.alert-item:last-child { border-bottom: none; }

/* ---------- Login page ---------- */
.tl-login-side {
    background: linear-gradient(160deg, #0f1f45, #1c3d8f);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.tl-login-card {
    max-width: 420px;
    margin: auto;
}
