/* ============================================================================
   FORMS & INPUTS
   Search boxes, selects, text inputs, form fields, parameters
   ============================================================================ */

.search-box {
    flex: 1;
    min-width: 300px;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 1rem;
}

.search-box:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-box-flexible {
    flex: 1;
    min-width: 250px;
}

select {
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    cursor: pointer;
}

input[type="date"],
input[type="datetime-local"],
input[type="text"] {
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
}

input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
}

/* White placeholder text */
::placeholder {
    color: #e2e8f0;
    opacity: 0.6;
}

/* White calendar icon on date inputs */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Problem Builder Styles */
.form-field {
    margin-bottom: 24px;
}

.form-field-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-label {
    display: block;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label .required {
    color: #ef4444;
}

.form-description {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-style: italic;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

textarea.form-input {
    font-family: 'Monaco', 'Courier New', monospace;
    resize: vertical;
    min-height: 100px;
    overflow-y: auto;
}

textarea.form-input.auto-resize {
    height: auto;
}

.form-container {
    background: #1e293b;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #334155;
}

/* Parameter Form */
.param-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.param-field label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

.param-field .required {
    color: #ef4444;
}

.param-field input,
.param-field select,
.param-field textarea {
    padding: 8px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
    width: 100%;
}

.param-field textarea {
    font-family: 'Monaco', 'Courier New', monospace;
    resize: none;
    line-height: 1.5;
    overflow: hidden;
}

.param-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.param-field .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.85rem;
}

.param-field small {
    font-size: 0.75rem;
    color: #64748b;
}
