/* public/fleet/fleet-checklists.css */

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

.fcl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.fcl-header h2 {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.4rem;
}
.fcl-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;
}
.fcl-btn-dashboard:hover {
  background: #475569;
}

/* Filter bar */
.fcl-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.fcl-filter-bar select,
.fcl-filter-bar input[type="date"] {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.9rem;
}
.fcl-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;
}
.fcl-btn-apply:hover {
  background: #e67e22;
}

/* Card list */
.fcl-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fcl-card {
  background: #1e293b;
  border-radius: 10px;
  padding: 1rem;
  border-left: 4px solid #f39c12;
  transition: background 0.15s;
}
.fcl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.fcl-card-summary {
  color: #e2e8f0;
  font-size: 0.95rem;
}
.fcl-card-summary strong {
  color: #f39c12;
}
.fcl-date {
  margin-left: 1rem;
  color: #94a3b8;
  font-size: 0.85rem;
}
.fcl-card-icons {
  display: flex;
  gap: 1rem;
}
.fcl-pass-count,
.fcl-fail-count {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  color: #cbd5e1;
}

/* Expanded details */
.fcl-card-details {
  margin-top: 1rem;
  border-top: 1px solid #334155;
  padding-top: 1rem;
}
.fcl-items-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.fcl-items-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  color: #e2e8f0;
}
.fcl-items-list li.pass {
  color: #86efac;
}
.fcl-items-list li.fail {
  color: #fca5a5;
}
.fcl-photos img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 6px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #475569;
}

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

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

/* Gold calendar icon for date inputs on dark background */
.fcl-filter-bar input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f39c12' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  opacity: 1;
  cursor: pointer;
}

.fcl-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(15, 23, 42, 0.4);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: fcl-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.3em;
}
@keyframes fcl-spin {
  to { transform: rotate(360deg); }
}