/* BlazorUserManager — Admin & tablet-friendly UI (Bootstrap 5.3) */

:root {
    --bum-primary: #1b6ec2;
    --bum-primary-dark: #145494;
    --bum-accent: #6f42c1;
    --bum-surface: #f8f9fc;
    --bum-card-shadow: 0 0.25rem 1rem rgba(27, 110, 194, 0.08);
    --bum-radius: 0.75rem;
}

/* Admin page shell */
.admin-page {
    max-width: 1400px;
}

.admin-page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-page-header h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.admin-page-header .lead {
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

/* Stat cards */
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--bum-radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--bum-card-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(27, 110, 194, 0.12);
}

.admin-stat-card .stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.admin-stat-card .stat-label {
    font-size: 0.95rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
}

.admin-stat-card.stat-warning .stat-icon { background: rgba(255, 193, 7, 0.2); color: #997404; }
.admin-stat-card.stat-success .stat-icon { background: rgba(25, 135, 84, 0.15); color: #198754; }
.admin-stat-card.stat-info .stat-icon { background: rgba(13, 202, 240, 0.15); color: #087990; }
.admin-stat-card.stat-primary .stat-icon { background: rgba(27, 110, 194, 0.15); color: var(--bum-primary); }

/* Content panels */
.admin-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--bum-radius);
    box-shadow: var(--bum-card-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-panel-header h2,
.admin-panel-header h3 {
    margin: 0;
    font-weight: 600;
}

/* Tables — touch-friendly on tablet */
.admin-table {
    font-size: 1rem;
}

.admin-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.admin-table tbody td {
    vertical-align: middle;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.admin-table .btn {
    min-height: 2.25rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

/* Toolbar */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-toolbar .form-control,
.admin-toolbar .form-select {
    min-width: 180px;
}

/* Nav sections */
.nav-section-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1rem 0.35rem;
    margin-top: 0.25rem;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.75rem;
    min-width: 1.5rem;
}

/* Profile */
.profile-hero {
    background: linear-gradient(135deg, var(--bum-primary) 0%, var(--bum-accent) 100%);
    border-radius: var(--bum-radius);
    color: #fff;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.profile-hero .profile-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-meta-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
}

.profile-meta-item .label {
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-meta-item .value {
    font-weight: 600;
    font-size: 1rem;
}

.manage-account-layout h1 {
    font-weight: 700;
}

/* Home landing */
.landing-hero {
    background: linear-gradient(135deg, #052767 0%, #3a0647 70%);
    color: #fff;
    border-radius: var(--bum-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.landing-hero h1 {
    font-weight: 700;
}

.landing-action-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--bum-radius);
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    background: #fff;
    box-shadow: var(--bum-card-shadow);
}

.landing-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
    color: inherit;
}

.landing-action-card .icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: rgba(27, 110, 194, 0.12);
    color: var(--bum-primary);
}

/* Tablet / medium screens (768px – 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .admin-page {
        font-size: 1.0625rem;
    }

    .admin-page-header h1 {
        font-size: 2rem;
    }

    .admin-page-header .lead {
        font-size: 1.125rem;
    }

    .admin-stat-card .stat-value {
        font-size: 2.25rem;
    }

    .admin-stat-card .stat-label {
        font-size: 1.05rem;
    }

    .admin-table {
        font-size: 1.0625rem;
    }

    .admin-table thead th {
        font-size: 0.875rem;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }

    .admin-table tbody td {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .admin-table .btn-sm {
        font-size: 0.95rem;
        padding: 0.45rem 0.9rem;
    }

    .admin-toolbar .form-control,
    .admin-toolbar .form-select {
        font-size: 1.05rem;
        min-height: 2.75rem;
        min-width: 220px;
    }

    .admin-panel {
        padding: 1.5rem 1.75rem;
    }

    .form-floating > .form-control,
    .form-floating > .form-select {
        min-height: 3.25rem;
        font-size: 1.05rem;
    }

    .form-floating > label {
        font-size: 1rem;
    }

    .btn-lg {
        font-size: 1.125rem;
        padding: 0.65rem 1.25rem;
    }

    /* Wider sidebar on tablet landscape / desktop */
    @media (min-width: 768px) {
        .sidebar {
            width: 280px !important;
        }
    }

    .nav-item {
        font-size: 1rem;
    }

    .nav-item ::deep .nav-link {
        height: 3.25rem;
        line-height: 3.25rem;
    }
}

/* Large screens — slightly roomier content */
@media (min-width: 992px) {
    .content {
        padding-top: 1.5rem;
    }
}

/* Nav menu icon picker */
.icon-preview-slot {
    min-width: 3rem;
    justify-content: center;
}

.nav-icon-picker .form-select {
    min-height: 2.75rem;
}
