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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

.hidden { display: none !important; }

.screen {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

/* Login */
#login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#login-screen h1 { font-size: 24px; color: #2563eb; margin-bottom: 4px; }
.subtitle { color: #6b7280; margin-bottom: 24px; }

#login-form {
    width: 100%;
    max-width: 320px;
}

#login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

#login-form button {
    width: 100%;
    padding: 10px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.error { color: #dc2626; font-size: 13px; margin-top: 8px; }

.dispatcher-link {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.dispatcher-link a {
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
}

.dispatcher-link a:hover { color: #374151; text-decoration: underline; }

/* Dashboard */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h2 { font-size: 20px; }

.btn-link {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 { font-size: 14px; color: #6b7280; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Buttons */
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Jobs */
.job-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.job-number { font-family: monospace; font-weight: 600; color: #2563eb; }

.badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.badge-assigned { background: #dbeafe; color: #1d4ed8; }
.badge-in_progress { background: #ede9fe; color: #6d28d9; }
.badge-completed { background: #d1fae5; color: #065f46; }

.job-type { font-size: 13px; font-weight: 500; }
.job-route { font-size: 13px; color: #6b7280; margin: 4px 0; }
.job-trailer { font-size: 12px; color: #9ca3af; }
.job-notes { font-size: 12px; color: #9ca3af; font-style: italic; margin: 4px 0; }

.job-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.empty { color: #9ca3af; font-size: 14px; text-align: center; padding: 20px 0; }
