/* ===== SUIVI PAGE STYLES ===== */

/* Code verification styles */
.suivi-code-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.4;
}

.suivi-code-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.btn-resend,
.btn-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-resend:hover,
.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 114, 42, 0.05);
}

#code-input {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}

@media (max-width: 480px) {
  .suivi-code-actions {
    flex-direction: column;
    gap: 8px;
  }

  .btn-resend,
  .btn-back {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

.suivi-page {
  min-height: calc(100vh - 80px);
  background: #0d1526;
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.suivi-back {
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 30px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.suivi-back:hover {
  color: #e8722a;
}

.suivi-hero {
  text-align: center;
  margin-bottom: 40px;
}

.suivi-hero h1 {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.suivi-hero p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
}

.suivi-search-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 40px;
}

.suivi-search-card label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.suivi-input-wrap {
  display: flex;
  gap: 10px;
}

.suivi-input-wrap input {
  flex: 1;
  padding: 13px 16px;
  background: transparent;
  box-shadow: inset 0 0 0 1000px rgba(15, 25, 50, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  -webkit-text-fill-color: white;
  caret-color: white;
  transition: border-color 0.2s;
}

.suivi-input-wrap input:focus {
  outline: none;
  border-color: #e8722a;
  box-shadow:
    inset 0 0 0 1000px rgba(15, 25, 50, 0.9),
    0 0 0 3px rgba(232, 114, 42, 0.18);
}

.suivi-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.4);
}

.suivi-input-wrap input:-webkit-autofill,
.suivi-input-wrap input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #0f1932 inset !important;
  -webkit-text-fill-color: white !important;
}

.btn-search {
  padding: 13px 22px;
  background: #e8722a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-search:hover {
  background: #c85f1f;
  transform: translateY(-1px);
}

.btn-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.suivi-alert {
  padding: 13px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.suivi-alert-error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #ff7070;
}

.suivi-alert-info {
  background: rgba(33, 150, 243, 0.15);
  border: 1px solid rgba(33, 150, 243, 0.3);
  color: #64b5f6;
}

/* ===== RÉSULTATS ===== */

.suivi-results {
  width: 100%;
  max-width: 700px;
  display: none;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suivi-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.suivi-results-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
}

.suivi-results-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.reservation-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.reservation-card:hover {
  border-color: rgba(232, 114, 42, 0.35);
  transform: translateY(-2px);
}

.res-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.res-card-id {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-family: monospace;
}

.res-card-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  margin-top: 4px;
}

.status-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-confirmed {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-cancelled {
  background: rgba(244, 67, 54, 0.15);
  color: #ef5350;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.res-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.res-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.res-detail-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.res-detail-value {
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
}

.res-card-vehicle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(232, 114, 42, 0.1);
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(232, 114, 42, 0.2);
}

.res-card-vehicle-icon {
  font-size: 1.5rem;
}

.res-card-vehicle-name {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.res-card-vehicle-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.4);
}

.empty-state svg {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */

/* Desktop (1200px+) - Default styles above */

/* Large Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .res-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }

  .reservation-card {
    padding: 20px;
  }

  .res-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .status-badge {
    align-self: flex-end;
  }
}

/* Small Tablet (650px - 767px) */
@media (max-width: 767px) and (min-width: 650px) {
  .res-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .reservation-card {
    padding: 18px;
  }

  .res-detail-label {
    font-size: 0.75rem;
  }

  .res-detail-value {
    font-size: 0.9rem;
  }
}

/* Mobile (up to 649px) */
@media (max-width: 649px) {
  .suivi-page {
    padding: 50px 16px 50px;
    min-height: calc(100vh - 80px);
  }

  .suivi-input-wrap {
    flex-direction: column;
  }

  .suivi-search-card {
    padding: 24px 18px;
  }

  .suivi-hero {
    margin-bottom: 30px;
  }

  .suivi-hero h1 {
    font-size: 1.6rem;
  }

  .res-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .reservation-card {
    padding: 16px;
  }

  .res-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .status-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .res-card-vehicle {
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  .res-card-vehicle-name {
    font-size: 0.9rem;
  }

  .res-card-vehicle-sub {
    font-size: 0.75rem;
  }

  .res-detail {
    gap: 1px;
  }

  .res-detail-label {
    font-size: 0.68rem;
    margin-bottom: 2px;
  }

  .res-detail-value {
    font-size: 0.82rem;
    line-height: 1.2;
  }
}

/* Very Small Mobile (up to 390px) */
@media (max-width: 390px) {
  .res-card-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reservation-card {
    padding: 12px;
    margin-bottom: 10px;
  }

  .res-card-id {
    font-size: 0.72rem;
  }

  .res-card-date {
    font-size: 0.75rem;
  }

  .res-card-vehicle {
    padding: 6px 10px;
    margin-bottom: 8px;
  }

  .res-card-vehicle-name {
    font-size: 0.85rem;
  }

  .res-card-vehicle-sub {
    font-size: 0.7rem;
  }

  .res-detail {
    gap: 1px;
  }

  .res-detail-label {
    font-size: 0.65rem;
    margin-bottom: 1px;
  }

  .res-detail-value {
    font-size: 0.78rem;
    line-height: 1.1;
    word-break: break-word;
  }
}

/* ===== SUIVI TABS ===== */
.suivi-tabs {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.suivi-tab {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suivi-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.suivi-tab img {
  opacity: 1;
  transition: all 0.3s ease;
  filter: invert(1) brightness(0.8);
}

.suivi-tab:hover img {
  opacity: 1;
  filter: invert(1) brightness(1);
}

.suivi-tab.active {
  background: rgba(232, 114, 42, 0.6);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(232, 114, 42, 0.3);
}

.suivi-tab.active img {
  opacity: 1;
  filter: invert(1) brightness(1.2);
}

.suivi-tab span {
  font-size: 1rem;
}

/* Reference search info */
.suivi-reference-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Mobile responsive for tabs */
@media (max-width: 650px) {
  .suivi-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .suivi-tab {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}
