/* ========================================
   FLEET OVERVIEW PAGE STYLES
   Analytics dashboard for fleet management
   ======================================== */

.fleet-overview-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.fleet-header {
  margin-bottom: 32px;
}

.fleet-header-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fleet-title {
  font-size: 28px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fleet-subtitle {
  font-size: 15px;
  color: #94a3b8;
  margin: 0;
}

/* Stats Grid */
.fleet-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.fleet-stat-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.fleet-stat-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-icon-vehicles {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: #a78bfa;
}

.stat-icon-service {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
  color: #4ade80;
}

.stat-icon-cost {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: #60a5fa;
}

.stat-icon-reminder {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  color: #fbbf24;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* Content Grid */
.fleet-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* Fleet Section */
.fleet-section {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 24px;
}

.fleet-section-full {
  grid-column: 1 / -1;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.section-link {
  font-size: 14px;
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: #c4b5fd;
}

/* Empty Section */
.empty-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  gap: 12px;
}

.empty-section p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

/* Upcoming Maintenance List */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upcoming-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.upcoming-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upcoming-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
}

.upcoming-vehicle {
  font-size: 12px;
  color: #94a3b8;
}

.upcoming-due {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  padding: 6px 12px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 20px;
}

.upcoming-due.due-soon {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-vehicle {
  font-size: 12px;
  color: #94a3b8;
}

.activity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.activity-date {
  font-size: 12px;
  color: #64748b;
}

.activity-cost {
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
}

/* Vehicle Summary Table */
.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td {
  padding: 14px 16px;
  text-align: left;
}

.summary-table th {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.summary-table td {
  font-size: 14px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.summary-table tbody tr {
  cursor: pointer;
  transition: background 0.2s ease;
}

.summary-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.08);
}

.summary-table tbody tr:last-child td {
  border-bottom: none;
}

.vehicle-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vehicle-name {
  font-weight: 600;
  color: #f8fafc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .fleet-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fleet-overview-container {
    padding: 16px;
  }

  .fleet-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fleet-stat-card {
    padding: 18px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .stat-icon svg {
    width: 24px;
    height: 24px;
  }

  .stat-value {
    font-size: 24px;
  }

  .fleet-title {
    font-size: 24px;
  }

  .fleet-section {
    padding: 18px;
  }

  .summary-table {
    display: block;
    overflow-x: auto;
  }
}
