.page-heading { margin-bottom: 1.5rem; }
.page-title { margin-bottom: .25rem; }
.page-toolbar { display: flex; gap: .5rem; align-items: center; }

/* Application branding */
.btc-app-logo {
    display: block;
    max-width: 34px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Phase 3: reusable page framework */
.btc-page-header {
    padding-top: .25rem;
}

.btc-page-header-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}

.btc-page-toolbar {
    min-height: 38px;
}

.btc-stat-card .avatar-initial {
    width: 42px;
    height: 42px;
}

.btc-empty-state {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    margin-bottom: .75rem;
}

/* =========================================================
   Phase 4 - Forms
   ========================================================= */
.form-label {
    font-weight: 500;
}

.form-text:empty {
    display: none;
}

textarea.form-control {
    min-height: 120px;
}

.validation-summary-errors ul {
    margin-bottom: 0;
}


/* =========================================================
   Phase 5 - Tables
   ========================================================= */
.btc-table-card .card-body {
    padding: 0;
}

.btc-table-card .table {
    margin-bottom: 0;
}

.btc-table-card .dataTables_wrapper .row:first-child,
.btc-table-card .dataTables_wrapper .row:last-child {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.btc-table-card .dataTables_wrapper .row:first-child {
    padding-top: 1rem;
}

.btc-table-card .dataTables_wrapper .row:last-child {
    padding-bottom: 1rem;
}

.btc-table-actions {
    white-space: nowrap;
}

.btc-table-actions .btn {
    margin-right: .25rem;
}

.btc-table-actions .btn:last-child {
    margin-right: 0;
}

table.btc-datatable thead th {
    white-space: nowrap;
}



/* =========================================================
   Phase 6 - Feedback, Toasts, Modals, Loading
   ========================================================= */

.btc-toast-container {
    z-index: 1090;
}

.btc-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
}

.btc-loading-panel {
    min-width: 220px;
    padding: 1.5rem;
    border-radius: .5rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .18);
}


/* =========================================================
   Phase 9 - Security assignment lists
   ========================================================= */
.btc-checkbox-list label {
    margin-left: .4rem;
}

.btc-checkbox-list span {
    display: block;
    margin-bottom: .5rem;
}


/* =========================================================
   Phase 19 - Dashboard starter components
   ========================================================= */

.btc-quick-action-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.btc-quick-action-card:hover {
    transform: translateY(-2px);
}

.btc-recent-activity .btc-activity-row:last-child {
    border-bottom: 0 !important;
}


/* =========================================================
   Phase 20 - Reusable page states and UX
   ========================================================= */

.btc-empty-state {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.btc-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btc-loading-panel {
    min-width: 220px;
    background: var(--bs-body-bg);
    border-radius: .75rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .15);
}

.btc-form-actions {
    padding-top: .5rem;
}


/* =========================================================
   v1.1 - Standalone authentication pages
   ========================================================= */

.authentication-wrapper.authentication-basic {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.authentication-inner {
    width: 100%;
    max-width: 900px;
}

.btc-auth-card {
    overflow: hidden;
    border: 0;
}

.btc-auth-side {
    background: rgba(var(--bs-primary-rgb), .06);
    min-height: 430px;
}
