/* ========================================
   BlazoredModal OVERRIDES
   Simple dark modal card with glass style + light backdrop blur.
   ======================================== */

/* Center the modal both horizontally and vertically and apply a subtle
   2px blur to the page behind the modal. */
.bm-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* The modal card itself: solid-feeling dark glass. */
.blazored-modal {
    border-radius: var(--bs-border-radius-xl) !important;
    padding: 1.5rem !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(20, 25, 35, 0.85) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    margin: 0 !important;
}

.blazored-modal .bm-header {
    padding: 0 0 1rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    margin-bottom: 1rem;
}

.blazored-modal .bm-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

/* Inline header used inside modal body when HideHeader = true. */
.modal-header-modern {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0 0.75rem 0;
    margin-bottom: 1rem;
}

.modal-footer-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0 0 0;
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Form controls inside Blazored modals. */
.blazored-modal .form-control,
.blazored-modal .form-select {
    background: rgba(15, 22, 33, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.blazored-modal .form-control:focus,
.blazored-modal .form-select:focus {
    background: rgba(15, 22, 33, 0.85);
    border-color: rgba(13, 202, 240, 0.6);
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.12);
    color: #fff;
}

/* Case items modal: cap grid height and scroll inside the modal */
.case-items-modal-scroll {
    max-height: min(70vh, 640px);
    overflow-y: auto;
    overflow-x: hidden;
}

