/* Driver Management Page Styles */

.drivers-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Drivers Table */
.drivers-table-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    overflow: hidden;
}

.drivers-table {
    width: 100%;
    border-collapse: collapse;
}

.drivers-table thead {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
}

.drivers-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.drivers-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
}

.drivers-table tbody tr:last-child td {
    border-bottom: none;
}

.drivers-table tbody tr:hover {
    background: #f8fafc;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-default {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-active {
    background: #dbeafe;
    color: #1e40af;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Empty State */
.empty-state,
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

/* Modal Styles */
.modal-small {
    width: 90%;
    max-width: 500px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.required {
    color: #ef4444;
}

/* Button Styles */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .drivers-table {
        font-size: 13px;
    }
    
    .drivers-table th,
    .drivers-table td {
        padding: 12px 16px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-sm {
        width: 100%;
    }
}