/* --- Shared Styles for Job Dispatch App --- */
:root {
    --primary-yellow: #F4C430;
    --logo-yellow: #FFB81C;
    --primary-blue: #1E2A3A;
    --secondary-blue: #4A5F7F;
    --background-light: #f4f7fa;
    --text-dark: #1E2A3A;
    --text-light: #FFFFFF;
    --border-color: #d1d9e6;
    --error-red: #d9534f;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 1.5em;
    color: var(--logo-yellow);
}

header a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border: 2px solid var(--logo-yellow);
    border-radius: 20px;
    transition: all 0.3s;
}

header a:hover {
    background-color: var(--logo-yellow);
    color: var(--primary-blue);
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.form-container {
    background: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 500px;
}

.form-container.wide {
    max-width: 800px;
}

.form-container h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 3px solid var(--primary-yellow);
    padding-bottom: 10px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: var(--secondary-blue); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 1em; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-yellow); box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.3); }

.btn { display: inline-block; width: 100%; background: var(--primary-blue); color: var(--text-light); padding: 15px; font-size: 1.2em; text-align: center; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; transition: all 0.3s; }
.btn:hover { background: var(--secondary-blue); transform: translateY(-2px); }
.error-message { color: var(--error-red); text-align: center; margin-top: 15px; }

.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
fieldset { border: 1px solid var(--border-color); border-radius: 5px; padding: 20px; margin-bottom: 20px; }
legend { font-weight: bold; color: var(--primary-blue); padding: 0 10px; margin-left: 10px; }
.checkbox-group { display: flex; flex-direction: column; }
.checkbox-item { display: flex; align-items: center; margin-bottom: 10px; }
.checkbox-item input[type="checkbox"] { width: auto; margin-right: 10px; transform: scale(1.2); }
.checkbox-item label { margin-bottom: 0; font-weight: normal; }

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

.job-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9em; }
.job-table th, .job-table td { border: 1px solid var(--border-color); padding: 12px; text-align: left; }
.job-table th { background-color: var(--primary-blue); color: var(--text-light); text-transform: uppercase; }
.job-table tbody tr:nth-child(even) { background-color: #f8f9fa; }
.job-table tbody tr:hover { background-color: #e9ecef; }
.status { padding: 5px 10px; border-radius: 15px; color: var(--text-light); font-weight: bold; text-align: center; display: inline-block; }
.status-pending { background-color: var(--logo-yellow); color: var(--primary-blue); }
.status-completed { background-color: #28a745; }
