/* Customer Management Specific Styles */

.customer-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.customer-header h2 {
    margin: 0;
    font-weight: 300;
}

.search-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.btn-action {
    margin: 0 2px;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.pagination {
    margin: 20px 0 0 0;
}

.pagination .page-link {
    color: #667eea;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

.pagination .page-link:hover {
    color: #5a6fd8;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .customer-header {
        padding: 15px 0;
    }
    
    .customer-header h2 {
        font-size: 1.5rem;
    }
    
    .search-section {
        padding: 15px;
    }
    
    .btn-action {
        margin: 2px 0;
        display: block;
        width: 100%;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Validation Styles */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Custom Checkbox Styling */
.checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox label {
    font-weight: normal;
    cursor: pointer;
}

/* Vehicle-specific styles */
.vehicle-info-panel {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vehicle-info-panel .panel-heading {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.vehicle-info-panel .panel-body {
    padding: 20px;
}

.vehicle-info-panel strong {
    color: rgba(255,255,255,0.9);
}

.vehicle-info-panel .col-md-3 {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .vehicle-info-panel .col-md-3 {
        margin-bottom: 15px;
    }
}

/* Help Text */
.help-block {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Tooltip Enhancements */
.tooltip-inner {
    background-color: #495057;
    border-radius: 4px;
}

.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #495057;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.dropdown-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Delete Confirmation Modal Styles */
#deleteConfirmModal .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

#deleteConfirmModal .modal-header .close {
    color: white;
    opacity: 0.8;
}

#deleteConfirmModal .modal-header .close:hover {
    opacity: 1;
}

#deleteConfirmModal .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

#deleteConfirmModal .text-danger {
    color: #dc3545;
}

/* Customer Details Modal Styles */
#customerDetailsModal .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

#customerDetailsModal .modal-header .close {
    color: white;
    opacity: 0.8;
}

#customerDetailsModal .modal-header .close:hover {
    opacity: 1;
}

#customerDetailsModal .form-control-static {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
}

#customerDetailsModal .form-group label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

#customerDetailsModal .form-group {
    margin-bottom: 20px;
}

#customerDetailsModal .modal-body {
    padding: 25px;
}

#customerDetailsModal .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

#customerDetailsModal .btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* Print Styles */
@media print {
    .btn,
    .search-section,
    .modal {
        display: none !important;
    }
    
    .table {
        border: 1px solid #000;
    }
    
    .table th,
    .table td {
        border: 1px solid #000;
    }
} 

/* Ensure Tag Notes in Tag Modal spans full width */
#tagModal .modal-body .row .col-md-12 {
  width: 100% !important;
  float: none !important;
  display: block !important;
} 

#tagModal .modal-body textarea.form-control {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: block;
} 