/* Toast functionality removed */

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-container {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.show .modal-container {
  transform: scale(1);
}



.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.modal-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #f0f0f0;
  color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8f9fa;
}

/* Driver Profile Modal Specific Styles */
.driver-profile-modal {
  max-width: 100%;
}

.driver-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
}

.driver-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.driver-basic-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: white;
}

.driver-basic-info p {
  margin: 0.25rem 0;
  opacity: 0.9;
}

.driver-basic-info i {
  margin-right: 0.5rem;
  width: 16px;
}

.driver-details {
  display: grid;
  gap: 1.5rem;
}

.detail-section {
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
}

.detail-section h4 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section i.fa-check-circle {
  color: var(--success);
}

.text-success {
  color: var(--success) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    margin: 1rem;
  }
  
  .driver-header {
    flex-direction: column;
    text-align: center;
  }
  
  /* Toast styles removed */
}

/* ===== Shared: Filters toolbar ===== */
.filters-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.filters-toolbar .filters-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 320px;
}

.filters-toolbar .filters-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filters-toolbar .form-input,
.filters-toolbar select,
.filters-toolbar input[type="date"],
.filters-toolbar input[type="text"] {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.9rem;
}

.filters-toolbar .form-input:focus,
.filters-toolbar select:focus,
.filters-toolbar input[type="date"]:focus,
.filters-toolbar input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224,94,26,0.12);
}

.filters-toolbar .btn-primary {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
}

.filters-toolbar .btn-outline {
  border-radius: 10px;
}
