/* Ensure Inter is used for body text */
/* (Montserrat font-face removed to avoid overriding Inter) */

/* Use Inter for all body text */
body {
    font-family: var(--font-primary), -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Modal improvements for better compatibility */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
}

.modal-dialog {
    position: relative !important;
    margin: 40px auto !important;
    max-width: 90% !important;
    width: 800px !important;
}

.modal-content {
    background: white !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.modal-header {
    padding: 15px 20px !important;
    border-bottom: 1px solid #ddd !important;
}

.modal-body {
    padding: 20px !important;
}

.modal-footer {
    padding: 15px 20px !important;
    border-top: 1px solid #ddd !important;
    text-align: right !important;
}

.close {
    float: right !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* Table styling for modal */
.modal-body .table {
    margin-bottom: 20px;
}

.modal-body .table td {
    padding: 5px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-body .table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Button styling */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Hide modal backdrop if it exists */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
}
