/* Reset y Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-yellow: #FFC107;
    --primary-black: #000000;
    --accent-green: #4CAF50;
    --background-white: #FFFFFF;
    --text-dark: #212121;
    --text-light: #757575;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #BDBDBD;
    --danger: #F44336;
    --success: #4CAF50;
    --warning: #FF9800;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-dark); background: var(--gray-light); line-height: 1.6; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFD54F 50%, var(--accent-green) 100%); }
.login-container { width: 100%; max-width: 450px; padding: 20px; }
.login-box { background: var(--background-white); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 3rem 2.5rem; }
.login-header { text-align: center; margin-bottom: 2.5rem; }
.login-header h1 { font-size: 2.5rem; font-weight: 800; color: var(--primary-black); margin-bottom: 0.5rem; }
.login-header p { color: var(--text-light); font-size: 1rem; }
.login-form { margin-top: 2rem; }
.navbar { background: var(--primary-black); color: var(--background-white); padding: 1rem 0; box-shadow: var(--shadow); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-title { font-size: 1.5rem; color: var(--primary-yellow); margin-bottom: 0.25rem; }
.nav-user { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin: 0; }
.main-content { padding: 2rem 0; min-height: calc(100vh - 80px); }
.page-header { margin-bottom: 2rem; }
.page-header h2 { font-size: 2rem; color: var(--primary-black); margin-bottom: 0.5rem; }
.page-header p { color: var(--text-light); }
.alert { padding: 1rem 1.5rem; border-radius: var(--border-radius); margin-bottom: 1.5rem; font-weight: 500; }
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid var(--success); }
.alert-error { background: #FFEBEE; color: #C62828; border-left: 4px solid var(--danger); }
.drivers-table-container { background: var(--background-white); border-radius: var(--border-radius); box-shadow: var(--shadow); overflow-x: auto; }
.drivers-table { width: 100%; border-collapse: collapse; }
.drivers-table thead { background: var(--gray-light); }
.drivers-table th { padding: 1rem; text-align: left; font-weight: 600; color: var(--text-dark); border-bottom: 2px solid var(--gray-medium); white-space: nowrap; }
.drivers-table td { padding: 1rem; border-bottom: 1px solid var(--gray-medium); }
.drivers-table tbody tr:hover { background: var(--gray-light); }
.drivers-table tbody tr.expired { background: #FFEBEE; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); font-weight: 600; }
.text-warning { color: var(--warning); font-weight: 600; }
.text-success { color: var(--success); font-weight: 600; }
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.875rem; font-weight: 600; }
.badge-success { background: #E8F5E9; color: #2E7D32; }
.badge-danger { background: #FFEBEE; color: #C62828; }
.badge-secondary { background: #E3F2FD; color: #1565C0; }
.badge-warning { background: #FFF3E0; color: #E65100; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; border: none; border-radius: var(--border-radius); font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s ease; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFB300 100%); color: var(--primary-black); font-weight: 700; }
.btn-primary:hover { background: linear-gradient(135deg, #FFB300 0%, var(--primary-yellow) 100%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,193,7,0.4); }
.btn-secondary { background: var(--gray-medium); color: var(--text-dark); }
.btn-secondary:hover { background: var(--gray-dark); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; display: block; }
.form-group { margin-bottom: 1.75rem; }
.form-group label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.form-control { width: 100%; padding: 1rem 1.25rem; border: 2px solid var(--gray-medium); border-radius: 10px; font-size: 1rem; background: var(--background-white); color: var(--text-dark); font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--primary-yellow); box-shadow: 0 0 0 4px rgba(255,193,7,0.1); }
.form-readonly { padding: 0.75rem; background: var(--gray-light); border-radius: var(--border-radius); color: var(--text-dark); font-weight: 500; }
.form-help { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--text-light); }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--background-white); border-radius: var(--border-radius); box-shadow: var(--shadow-lg); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--gray-medium); }
.modal-header h3 { font-size: 1.5rem; color: var(--primary-black); }
.modal-close { background: none; border: none; font-size: 2rem; color: var(--text-light); cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.modal-close:hover { background: var(--gray-light); color: var(--text-dark); }
.modal form { padding: 1.5rem; }
.modal-footer { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-medium); }
@media (max-width: 768px) { .nav-content { flex-direction: column; gap: 1rem; text-align: center; } .drivers-table { min-width: 1000px; } }
.route-card { background: var(--background-white); border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 1.5rem 2rem; border-left: 4px solid var(--primary-yellow); }
.form-inline-routes .form-group { display: inline-block; margin-right: 1.5rem; vertical-align: top; }
