/* =============================================================================
   Modal UI Fixes - High Contrast & Premium Look
   ========================================================================== */

/* Modal Overlay */
#demoModal.modal-overlay {
    background: rgba(10, 25, 49, 0.85) !important;
    /* Nebula Blue tint overlay */
    backdrop-filter: blur(8px);
    /* Glassmorphism blur */
}

/* Modal Content Box */
#demoModal .modal-content {
    background: #ffffff !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px !important;
    border-radius: 20px !important;
}

/* Close Button */
#demoModal .close-modal {
    color: #64748b !important;
    transition: color 0.3s ease;
    top: 20px !important;
    right: 25px !important;
    font-size: 32px !important;
    font-weight: 300;
}

#demoModal .close-modal:hover {
    color: #ef4444 !important;
    /* Red on hover */
}

/* Modal Title */
#demoModal h3 {
    color: #0f172a !important;
    /* Slate 900 */
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 25px !important;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Input Fields & Selects */
#demoModal input.form-control,
#demoModal select.form-control {
    background-color: #f8fafc !important;
    /* Slate 50 - Very Light Grey */
    border: 2px solid #e2e8f0 !important;
    /* Slate 200 */
    color: #334155 !important;
    /* Slate 700 - Dark Grey Text */
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 500;
    margin-bottom: 0 !important;
    /* Handled by col-mb-3 */
    height: auto !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

/* Input Focus State */
#demoModal input.form-control:focus,
#demoModal select.form-control:focus {
    background-color: #ffffff !important;
    border-color: #38bdf8 !important;
    /* Sky Blue Primary */
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1) !important;
}

/* Placeholders */
#demoModal input::placeholder {
    color: #94a3b8 !important;
    /* Slate 400 */
    opacity: 1;
}

/* Option text in select dropdowns */
#demoModal select option {
    color: #0f172a;
    background: #fff;
    padding: 10px;
}

/* Labels (if any specific ones exist, mostly checkboxes) */
#demoModal label {
    color: #475569 !important;
    /* Slate 600 */
    font-size: 14px !important;
    font-weight: 500;
}

/* Checkbox specific */
#demoModal .form-check-input {
    border: 2px solid #cbd5e1 !important;
    background-color: #fff !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
}

#demoModal .form-check-input:checked {
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
}

#demoModal .form-check-label {
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.5;
    padding-left: 5px;
}

/* Submit Button */
#demoModal button[type="submit"] {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px !important;
    border-radius: 12px !important;
    border: none;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

#demoModal button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(2, 132, 199, 0.3);
}