/* static/css/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
}
.container { max-width: 1600px; margin: 0 auto; padding: 20px; }
.header { text-align: center; padding: 20px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.header h1 { font-size: 2.8rem; margin-bottom: 5px; }
.header p { font-size: 1.1rem; color: #b0b0c0; }
.section-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 25px; }
.btn { padding: 10px 18px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.btn-secondary { background: rgba(103, 126, 234, 0.15); color: #9dacff; border: 1px solid rgba(103, 126, 234, 0.3); }
.btn-secondary:hover { background: rgba(103, 126, 234, 0.25); }
.btn-danger { background: linear-gradient(135deg, #ff6b6b, #ee5a52); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-group { margin-bottom: 15px; }

/* Original .form-label was color: #ccc. This might be too light if the Triage Manager page background isn't super dark where labels appear.
   The body color of triage_manager.html is #333 (from its inline style), so labels will inherit this unless overridden by .form-label.
   We'll keep .form-label as is for now, as the main request is for input backgrounds.
   If labels become hard to read on the Triage Manager page (which has a gradient background),
   you might need a more specific rule for .triage-manager-page .form-label or adjust this one.
*/
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    /* Triage manager body color is #333, but other pages might have different body colors.
       This #ccc is for dark theme consistency if a page has a very dark background.
       On Triage manager, the labels will be dark (#333 from body, if this rule isn't more specific due to cascading).
       Let's make it explicitly dark for the triage manager's context to be safe.
    */
    color: #333; /* For Triage Manager context where body text is dark */
}

/* === MODIFIED SECTION FOR FORM INPUTS === */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc; /* Light grey border for white background */
    border-radius: 6px;
    font-size: 0.95rem;
    background: white; /* White background */
    color: #333; /* Dark text color for white background */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Ensures padding and border don't increase total width */
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea; /* Keep your accent color for focus */
    box-shadow: 0 0 0 2px rgba(103, 126, 234, 0.3); /* Keep focus shadow */
}
/* ======================================== */

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }

.modal-content {
    background: #2c2c3e; /* Dark modal for consistency with some themes */
    color: #f0f0f0;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}
.modal-content h3 { margin-top: 0; margin-bottom: 20px; text-align: center; }

/* Specific fix for Triage Manager page modal labels if they inherit the dark modal background color.
   The general .form-label above is set to #333. This is to ensure labels inside the dark
   modal (which has #f0f0f0 text color for content) are also light.
*/
.modal-content .form-label {
    color: #ddd; /* Lighter color for labels inside dark modals */
}

/* Ensure select dropdown arrows are visible on white background if they were styled for dark */
.form-select {
    appearance: none; /* Allows custom arrow styling if needed */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E"); /* Dark arrow */
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%, 0 0;
    background-size: 1.2em auto, 100%;
    padding-right: 2.5em; /* Make space for the arrow */
}