/* =========================================
   FORMS, INPUTS & BUTTONS
   ========================================= */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
    color: #555;
    margin-bottom: 2px;
    display: block;
}

input, textarea, select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

input[readonly] {
    background: #f9f9f9;
    border-color: #ccc;
}

textarea { resize: vertical; }

/* Buttons */
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

button:hover { background-color: #45a049; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

button.secondary { background-color: #6c757d; }
button.secondary:hover { background-color: #5a6268; }

/* Filter bar layout */
.filter-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-section > div { min-width: 150px; }

/* Upload section */
.upload-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: 0; top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%; height: 100%;
}

.upload-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

.upload-btn:hover { background-color: #45a049; }

.file-name {
    color: #555;
    font-style: italic;
    min-width: 200px;
}