/* Fleetio Demo - Stiluri personalizate */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
}

/* Notificări */
.notification-dropdown {
  min-width: 350px;
  max-height: 400px;
  overflow-y: auto;
}

.notification-dropdown .dropdown-item {
  white-space: normal;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
}

.notification-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-header {
  background-color: var(--light-color);
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

/* Statistici Dashboard */
.stats-card {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.stats-card.success {
  background: linear-gradient(135deg, var(--success-color), #146c43);
}

.stats-card.warning {
  background: linear-gradient(135deg, var(--warning-color), #e6a700);
}

.stats-card.danger {
  background: linear-gradient(135deg, var(--danger-color), #b02a37);
}

.stats-card.info {
  background: linear-gradient(135deg, var(--info-color), #0aa2c0);
}

.stats-card .stats-icon {
  font-size: 3rem;
  opacity: 0.8;
}

.stats-card .stats-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.stats-card .stats-label {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* Tabele */
.table {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
}

.table thead th {
  background-color: var(--light-color);
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: var(--dark-color);
}

.table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Butoane */
.btn {
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-group .btn {
  transform: none;
}

.btn-group .btn:hover {
  transform: none;
}

/* Formulare */
.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Status badges */
.status-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.status-activ {
  background-color: #d1e7dd;
  color: #0f5132;
}

.status-inactiv {
  background-color: #f8d7da;
  color: #842029;
}

.status-service {
  background-color: #fff3cd;
  color: #664d03;
}

.status-planificata {
  background-color: #cff4fc;
  color: #055160;
}

.status-in_desfasurare {
  background-color: #fff3cd;
  color: #664d03;
}

.status-finalizata {
  background-color: #d1e7dd;
  color: #0f5132;
}

.status-anulata {
  background-color: #f8d7da;
  color: #842029;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-card {
    text-align: center;
    margin-bottom: 1rem;
  }

  .stats-card .stats-number {
    font-size: 2rem;
  }

  .table-responsive {
    border-radius: 0.5rem;
  }
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sidebar pentru mobile */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    margin-top: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
  }
}

/* Charts */
.chart-container {
  position: relative;
  height: 400px;
  margin: 1rem 0;
}

/* File upload */
.file-upload-area {
  border: 2px dashed #ced4da;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: var(--primary-color);
  background-color: rgba(13, 110, 253, 0.05);
}

.file-upload-area.dragover {
  border-color: var(--primary-color);
  background-color: rgba(13, 110, 253, 0.1);
}

/* Progress bars */
.progress {
  height: 1rem;
  border-radius: 0.5rem;
}

.progress-bar {
  border-radius: 0.5rem;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  border-radius: 1rem 1rem 0 0;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 1rem 1rem;
}

/* Utilities */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

.border-start-primary {
  border-left: 4px solid var(--primary-color) !important;
}

.border-start-success {
  border-left: 4px solid var(--success-color) !important;
}

.border-start-warning {
  border-left: 4px solid var(--warning-color) !important;
}

.border-start-danger {
  border-left: 4px solid var(--danger-color) !important;
}