
/*

  _______              _       _____       _       _   _                            _______ _____         _____ 
 |__   __|            (_)     / ____|     | |     | | (_)                          |__   __/ ____|  /\   |_   _|
    | |_ __ ___  _ __  _  ___| (___   ___ | |_   _| |_ _  ___  _ __  ___   ______     | | | (___   /  \    | |  
    | | '__/ _ \| '_ \| |/ __|\___ \ / _ \| | | | | __| |/ _ \| '_ \/ __| |______|    | |  \___ \ / /\ \   | |  
    | | | | (_) | |_) | | (__ ____) | (_) | | |_| | |_| | (_) | | | \__ \             | |  ____) / ____ \ _| |_ 
    |_|_|  \___/| .__/|_|\___|_____/ \___/|_|\__,_|\__|_|\___/|_| |_|___/             |_| |_____/_/    \_\_____|
                | |                                                                                             
                |_|                                                                                             

  TropicSolutions  •  TSAI
   T r o p i c S o l u t i o n s    –    T S A I 
  System entwickelt von TropicSolutions – Florian Bach

*/

/**
 * System entwickelt von TropicSolutions - Florian Bach
 * TSAI
 *
 * @package   Reparatursaurier
 * @author    Florian Bach
 * @copyright © 2025 TropicSolutions. Alle Rechte vorbehalten.
 * @license   Selfcoded by TropicSolutions
 * @link      https://tropicsolutions.net
 **/


/* Tracking-spezifische Styles */

.tracking-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.page-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Such-Formulare */
.search-forms {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.search-form-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
}

.search-form-card h3 {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1.25rem;
}

.search-divider {
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem 0;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Auftrags-Details-Karte */
.order-details-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}

.order-header h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.order-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.order-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-shipped {
  background: #e0e7ff;
  color: #3730a3;
}

.priority-low {
  background: #f1f5f9;
  color: #475569;
}

.priority-normal {
  background: #dbeafe;
  color: #1e40af;
}

.priority-high {
  background: #fed7aa;
  color: #9a3412;
}

.priority-express {
  background: #fecaca;
  color: #991b1b;
}

/* Status-Timeline */
.status-timeline {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--background);
  border-radius: var(--radius);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item.completed:not(:last-child)::before {
  background: var(--primary);
}

.timeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item.completed .timeline-marker {
  background: var(--primary);
  border-color: var(--primary);
}

.timeline-item.completed .timeline-marker::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.timeline-content h4 {
  margin-bottom: 0.25rem;
  color: var(--text);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.timeline-item.completed .timeline-content h4 {
  color: var(--primary);
}

/* Info-Sektionen */
.info-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.info-section h4 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.125rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  color: var(--text);
  font-weight: 600;
}

/* Status-Historie */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--radius);
}

.history-time {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 150px;
}

.history-content {
  flex: 1;
}

.history-user {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.history-notes {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Auftrags-Liste (mehrere Aufträge) */
.orders-list {
  margin-top: 2rem;
}

.orders-list h3 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.order-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.order-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.order-card-header h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.order-device {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .search-forms {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-divider {
    padding: 0.5rem 0;
  }

  .order-header {
    flex-direction: column;
    gap: 1rem;
  }

  .order-badges {
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    gap: 1rem;
  }

  .history-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .history-time {
    min-width: auto;
  }

  .order-card-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .order-card-footer .btn {
    width: 100%;
  }
}
