.dashboard-body {
    background-color: var(--bg);
    margin: 0;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 240px;
    background-color: #0d131f;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
}

.dashboard-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.dashboard-nav-link:hover {
    background-color: #1a2233;
    color: var(--text);
}

.dashboard-nav-link.active {
    background-color: rgba(62, 198, 224, 0.12);
    color: var(--accent);
}

.dashboard-logout {
    margin-top: auto;
}

.dashboard-main {
    flex-grow: 1;
    min-width: 0;
}

.dashboard-topbar {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
}

.dashboard-content {
    padding: 2rem;
}

.dashboard-content .form-control,
.dashboard-content .form-select {
    background-color: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

.dashboard-content .form-control:focus,
.dashboard-content .form-select:focus {
    background-color: var(--bg);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 0.2rem rgba(62, 198, 224, 0.25);
}

.dashboard-content .form-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 1.25rem;
    text-align: center;
}

.stat-card i {
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.4rem 0 0.1rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.dashboard-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.auth-logo {
    height: 40px;
}

.dashboard-auth input[type="text"],
.dashboard-auth input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
}

.dashboard-auth .form-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    .dashboard-shell {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        padding: 1rem;
    }

    .dashboard-sidebar-brand {
        margin-bottom: 0;
    }

    .dashboard-nav {
        flex-direction: row;
    }

    .dashboard-logout {
        margin-top: 0;
    }

    .dashboard-content {
        padding: 1.25rem;
    }
}

.dashboard-messages {
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: var(--text);
    border-radius: 0.75rem;
}