/* Styling for the annual report form */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2em;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.5em;
}

h3 {
    color: #34495e;
    margin: 20px 0 15px 0;
    font-size: 1.2em;
}

.form-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 5px;
}

.section-help {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="date"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
    resize: vertical;
}

small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.85em;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table thead {
    background-color: #34495e;
    color: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.data-table th {
    font-weight: 600;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table input[type="number"] {
    width: 100%;
    text-align: right;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.radio-label {
    display: block;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.radio-label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.radio-label.disabled:hover {
    border-color: #ddd;
    background-color: #f5f5f5;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.radio-label.disabled input[type="radio"] {
    cursor: not-allowed;
}

.radio-label span {
    font-weight: 600;
    color: #2c3e50;
}

.radio-description {
    display: block;
    margin-left: 25px;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #e74c3c;
    color: white;
}

.alert-success {
    background-color: #2ecc71;
    color: white;
}

.alert-info {
    background-color: #3498db;
    color: white;
}

.amount-convention-box {
    background-color: #eaf4fb;
    border-left: 4px solid #3498db;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 0.95em;
}

.amount-convention-box ul {
    margin: 8px 0 0 20px;
}

.amount-convention-box li {
    margin-bottom: 4px;
}

.field-hint {
    display: inline-block;
    color: #7f8c8d;
    font-size: 0.8em;
    font-style: italic;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .data-table {
        font-size: 0.9em;
    }

    .data-table th,
    .data-table td {
        padding: 8px 4px;
    }
}
