/* ── Layout ──────────────────────────────────────────────── */
body {
    padding-top: 62px;   /* navbar fixed-top height */
    padding-bottom: 60px;
    background-color: #f8f9fa;
}

.main-content {
    padding: 24px 20px;
    min-height: calc(100vh - 62px - 60px);
}

.footer {
    position: relative;
}

/* ── Card pagine admin ───────────────────────────────────── */
.bc-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
}

.bc-card .card-header {
    background-color: #343a40;
    color: #fff;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .03em;
}

/* ── Header pagina con logout ────────────────────────────── */
.page-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.page-header-bar .bitbuster-id {
    font-size: .8rem;
    color: #6c757d;
}

.page-header-bar .bitbuster-id strong {
    color: #343a40;
}

/* ── GridView ────────────────────────────────────────────── */
.bc-grid {
    font-size: .875rem;
}

.bc-grid thead th {
    background-color: #343a40;
    color: #fff;
    border-color: #495057;
    white-space: nowrap;
}

.bc-grid tbody tr:hover {
    background-color: #e9ecef;
    cursor: pointer;
}

.bc-grid .selected-row td {
    background-color: #cfe2ff !important;
    font-weight: 600;
}

/* ── Tabs ────────────────────────────────────────────────── */
.nav-tabs .nav-link {
    color: #495057;
    font-size: .875rem;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
    color: #212529;
}

/* ── Hero (Default.aspx) ─────────────────────────────────── */
.bc-hero {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff;
    border-radius: 12px;
    padding: 48px 40px;
    margin-bottom: 32px;
}

.bc-hero h1 { font-size: 2.2rem; font-weight: 700; }
.bc-hero p  { font-size: 1.1rem; color: rgba(255,255,255,.8); }

/* ── Login ───────────────────────────────────────────────── */
.login-wrapper {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-card .card-header {
    background: linear-gradient(135deg, #212529, #343a40);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 8px 8px 0 0 !important;
}

/* ── Badge licenze ───────────────────────────────────────── */
.badge-valid     { background-color: #198754; }
.badge-expired   { background-color: #dc3545; }
.badge-disabled  { background-color: #6c757d; }

/* ── Utility ─────────────────────────────────────────────── */
.hidden          { display: none; }
.errors          { color: #dc3545; font-weight: 600; }
.text-muted-sm   { font-size: .8rem; color: #6c757d; }
:disabled        { background: #e9ecef !important; }

/* ── Input max-width override Bootstrap ──────────────────── */
.form-control, .form-select {
    max-width: 100%;
}
