/* --- GLOBAL RESET --- */
* {
    box-sizing: border-box;
}

/* --- PAGE LAYOUT --- */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 20px;
    color: #222;
}

h1 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

/* --- FORM SECTIONS (white cards) --- */
.form-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* --- SECTION HEADINGS --- */
.form-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    border-left: 5px solid #f7d400; /* HRC yellow */
    padding-left: 10px;
}

/* --- FIELD WRAPPER --- */
.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

/* --- LABELS ABOVE INPUTS --- */
.field label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* --- INPUTS, SELECTS, TEXTAREAS --- */
.field input,
.field select,
.field textarea {
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: 0.2s ease;
}

/* --- FOCUS STATE --- */
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #f7d400;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(247,212,0,0.25);
}

/* --- TEXTAREA --- */
.field textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- TWO-COLUMN GRID --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- MOBILE FRIENDLY --- */
@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- BUTTONS --- */
button {
    background: #f7d400;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #e5c200;
}

/* --- ERROR BOX --- */
.error {
    background: #ffefef;
    border: 1px solid #ffb3b3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error p {
    margin: 0;
    color: #b30000;
}

/* --- FILE LIST --- */
.file-list li {
    margin-bottom: 6px;
}

/* --- LINKS --- */
a {
    color: #005bbb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.card h2 {
    margin: 0;
    font-size: 40px;
    color: #007bff;
}
.card p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #444;
}
.actions {
    margin-bottom: 30px;
}
.actions a {
    margin-right: 10px;
}
table.recent {
    width: 100%;
    border-collapse: collapse;
}
table.recent th, table.recent td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
table.recent th {
    background: #f5f5f5;
}

/* --- COMBINED DASHBOARD STYLES --- */

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}

.dashboard-tile {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.dashboard-tile h2 {
    margin: 0;
    font-size: 20px;
    color: #444;
}

.tile-number {
    font-size: 40px;
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
}

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

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f5f5f5;
    font-weight: 600;
}

