:root {
    --water-blue: #0d6efd;
    --water-blue-dark: #0b5ed7;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #0b5ed7;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.brand-logo {
    font-size: 1.3rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.65rem 0.85rem;
    border-radius: 0.6rem;
    transition: all 0.2s ease-in-out;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.offcanvas .sidebar-nav .sidebar-link {
    color: #1c2a4a;
    background: #f5f7fb;
}

.offcanvas .sidebar-nav .sidebar-link:hover,
.offcanvas .sidebar-nav .sidebar-link.active {
    background: #e3ecff;
    color: #0b5ed7;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f7fb;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e6eaf2;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topbar-title {
    font-weight: 600;
    color: #1c2a4a;
}

.topbar-user {
    color: #6c757d;
    font-size: 0.9rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.content-body {
    padding: 1.5rem;
}

.app-footer {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-top: 1px solid #e6eaf2;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 220px;
    }
    .topbar-user {
        display: none;
    }
    .content-body {
        padding: 1rem 0.75rem;
    }
    .topbar {
        padding: 0.75rem 1rem;
    }
    .topbar-title {
        width: 100%;
        order: -1;
        font-size: 1.05rem;
    }
    .card .display-6 {
        font-size: 2rem;
    }
    .card {
        border-radius: 0.85rem;
    }
}

.card {
    border-radius: 1rem;
}

.navbar-brand {
    letter-spacing: 0.3px;
}

.card-title {
    font-weight: 600;
}

.btn-primary {
    background-color: var(--water-blue);
    border-color: var(--water-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--water-blue-dark);
    border-color: var(--water-blue-dark);
}
