body {
    background: #f5f7fb;
    color: #1f2937;
    min-height: 100vh;
}

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

.sidebar {
    width: 320px;
    background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
    color: #fff;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
}

.placeholder-logo {
    display: grid;
    place-items: center;
    font-size: 24px;
}

.brand-title {
    font-weight: 700;
    font-size: 1rem;
}

.brand-subtitle {
    font-size: 0.8rem;
    opacity: 0.75;
}

.sidebar-group-title {
    margin-top: 18px;
    margin-bottom: 8px;
    padding-left: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    padding: 11px 12px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.page-description {
    color: #6b7280;
    margin-top: 4px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-box {
    text-align: right;
}

.card-soft {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.card-stat {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.card-stat .title {
    color: #6b7280;
    font-size: 0.92rem;
}

.card-stat .value {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 8px 0 4px;
}

.table-card {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.table-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.table thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    color: #6b7280;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.table-responsive {
    min-height: 220px;
}

.form-card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.2), transparent 25%),
        #f5f7fb;
}

.login-card {
    width: min(460px, 100%);
    border: 0;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.login-card .card-body {
    padding: 32px;
}

.detail-badge {
    font-size: 0.82rem;
}

.preview-image {
    max-height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .layout-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .topbar {
        flex-direction: column;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}
