/* public/fleet/fleet-fuel-logs.css */

.ffl-container {
  padding: 1rem 0;
}

.ffl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.ffl-header h2 {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.4rem;
}
.ffl-btn-dashboard {
  background: #334155;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}
.ffl-btn-dashboard:hover {
  background: #475569;
}

/* Filter bar */
.ffl-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.ffl-filter-bar select,
.ffl-filter-bar input[type="date"] {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.9rem;
}
/* Gold calendar icon */
.ffl-filter-bar input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) hue-rotate(180deg);
  cursor: pointer;
}

.ffl-btn-apply {
  background: #f39c12;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  min-width: 100px;
  text-align: center;
}
.ffl-btn-apply:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.ffl-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(15,23,42,0.3);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: ffl-spin 0.6s linear infinite;
  margin-right: 0.3em;
  vertical-align: middle;
}
@keyframes ffl-spin {
  to { transform: rotate(360deg); }
}

/* Table */
.ffl-table-container {
  overflow-x: auto;
}
.ffl-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
}
.ffl-table th {
  text-align: left;
  padding: 0.8rem;
  background: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 1px solid #334155;
}
.ffl-table td {
  padding: 0.8rem;
  color: #e2e8f0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Summary */
.ffl-summary {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #1e293b;
  border-radius: 8px;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}
.ffl-summary strong {
  color: #f39c12;
}

/* Load More button */
.ffl-btn-load-more {
  display: block;
  width: 100%;
  margin-top: 1rem;
  background: #334155;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.7rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
.ffl-btn-load-more:hover {
  background: #475569;
}

/* Empty state */
.ffl-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 1rem;
}

/* Toast messages */
.ffl-toast {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: ffl-slide-in 0.2s ease;
}
.ffl-toast-error {
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #ef4444;
}
.ffl-toast-success {
  background: #14532d;
  color: #86efac;
  border: 1px solid #22c55e;
}
@keyframes ffl-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}