html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* =========================
   Power BI Report Cards
   ========================= */
.report-card {
    border-radius: 14px;
    transition: transform .12s ease, box-shadow .12s ease;
    height: 100%;
}

    .report-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important;
    }

/* Make the whole card clickable while preserving button styling */
a .btn {
    pointer-events: none;
}

/* =========================
   SweetAlert Dark Theme
   ========================= */
.swal-dark-bg {
    background-color: #2c3e50;
    color: #ecf0f1;
    border-radius: 0.5rem;
    font-family: 'Segoe UI', sans-serif;
}

    .swal-dark-bg .swal2-title {
        color: #ecf0f1;
        font-weight: 600;
    }

    .swal-dark-bg .swal2-html-container {
        color: #bdc3c7;
    }

    .swal-dark-bg .swal2-icon {
        color: #f1c40f;
        border-color: #f1c40f;
    }

    .swal-dark-bg .swal2-success-ring {
        border-color: #2ecc71;
    }

    .swal-dark-bg .swal2-error {
        color: #e74c3c;
    }

    /* =========================
       DataTables Styling
       ========================= */
    /* Softer table header + spacing */
    #tblData thead th {
        white-space: nowrap;
        border-bottom: 1px solid rgba(0,0,0,.1) !important;
    }

    #tblData td {
        vertical-align: middle;
    }

    /* Make DataTables pagination look cleaner */
    .dataTables_wrapper .pagination .page-link {
        border-radius: .5rem;
    }

/* =========================
   Select2 + Bootstrap floating labels (Sessions Upsert)
   ========================= */

/* Make Select2 match Bootstrap floating control height */
.form-floating .select2-container .select2-selection--single {
    height: calc(3.5rem + 2px);
    padding: 1.625rem .75rem .625rem .75rem; /* top matches floating label spacing */
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

.form-floating .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.25;
    padding-left: 0;
}

.form-floating .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(3.5rem + 2px);
    right: .5rem;
}

/* Force the label to float when Select2 has a value */
.form-floating.has-value > label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}
