:root {
    --dlpro-bg: #07111f;
    --dlpro-surface: rgba(16, 30, 50, 0.86);
    --dlpro-surface-2: rgba(22, 40, 66, 0.74);
    --dlpro-border: rgba(255,255,255,0.11);
    --dlpro-text: #edf6ff;
    --dlpro-muted: #9bb0c8;
    --dlpro-accent: #34d399;
    --dlpro-primary: #0d6efd;
    --dlpro-radius: 20px;
}

[data-bs-theme="light"] {
    --dlpro-bg: #f4f7fb;
    --dlpro-surface: rgba(255,255,255,0.94);
    --dlpro-surface-2: #ffffff;
    --dlpro-border: rgba(4, 20, 38, 0.12);
    --dlpro-text: #07111f;
    --dlpro-muted: #506278;
}

body {
    background:
        radial-gradient(circle at top left, rgba(13,110,253,.25), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(52,211,153,.18), transparent 30rem),
        var(--dlpro-bg);
    color: var(--dlpro-text);
    min-height: 100vh;
}

.dlpro-login-body .login-card {
    width: min(100%, 480px);
    padding: 2rem;
    border: 1px solid var(--dlpro-border);
    border-radius: 28px;
    background: var(--dlpro-surface);
    backdrop-filter: blur(18px);
}

.login-logo {
    max-width: 180px;
    max-height: 82px;
    object-fit: contain;
    border-radius: 16px;
}

.eyebrow {
    color: var(--dlpro-accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 700;
}

.dlpro-shell {
    display: grid;
    grid-template-columns: 292px 1fr;
    min-height: 100vh;
}

.dlpro-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.25rem;
    background: rgba(3, 10, 22, 0.72);
    border-right: 1px solid var(--dlpro-border);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.brand {
    display: flex;
    gap: .85rem;
    align-items: center;
    text-decoration: none;
    color: var(--dlpro-text);
    padding: .6rem;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 14px;
}

.brand small {
    display: block;
    color: var(--dlpro-muted);
    font-size: .75rem;
}

.sidebar-nav {
    display: grid;
    gap: .35rem;
    overflow-y: auto;
    padding-right: .25rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .9rem;
    border-radius: 14px;
    color: var(--dlpro-muted);
    text-decoration: none;
    border: 1px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--dlpro-text);
    background: rgba(13,110,253,.17);
    border-color: var(--dlpro-border);
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--dlpro-border);
    border-radius: 18px;
}

.dlpro-main {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: rgba(7,17,31,.78);
    border-bottom: 1px solid var(--dlpro-border);
    backdrop-filter: blur(18px);
}

[data-bs-theme="light"] .topbar {
    background: rgba(246,249,253,.86);
}

.content-wrap {
    padding: 1.5rem;
}

.panel,
.metric-card {
    border: 1px solid var(--dlpro-border);
    border-radius: var(--dlpro-radius);
    background: var(--dlpro-surface);
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.panel {
    padding: 1.25rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header h2 {
    font-size: 1rem;
    margin: 0;
}

.metric-card {
    padding: 1rem;
    min-height: 136px;
    display: grid;
    align-content: space-between;
}

.metric-card i {
    font-size: 1.55rem;
    color: var(--dlpro-accent);
}

.metric-card span {
    color: var(--dlpro-muted);
    font-size: .85rem;
}

.metric-card strong {
    font-size: 1.75rem;
}

.table-dlpro {
    --bs-table-bg: transparent;
    --bs-table-color: var(--dlpro-text);
    --bs-table-border-color: var(--dlpro-border);
    vertical-align: middle;
}

.table-dlpro thead th {
    color: var(--dlpro-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.form-control,
.form-select {
    border-radius: 12px;
}

.sticky-panel {
    position: sticky;
    top: 92px;
}

.health-card,
.ticket-card,
.role-pill {
    border: 1px solid var(--dlpro-border);
    background: var(--dlpro-surface-2);
    border-radius: 16px;
    padding: .9rem;
}

.health-card {
    display: grid;
    gap: .2rem;
}

.health-card.operational strong {
    color: var(--dlpro-accent);
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline > div {
    position: relative;
    padding-left: 1.25rem;
}

.timeline > div span {
    position: absolute;
    left: 0;
    top: .35rem;
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: var(--dlpro-accent);
}

.timeline small {
    color: var(--dlpro-muted);
}

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

    .dlpro-sidebar {
        position: relative;
        height: auto;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        position: relative;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .content-wrap,
    .topbar,
    .dlpro-sidebar {
        padding: 1rem;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }
}
