/* public/assets/css/status.css */

/* Variabile de culoare */
:root {
  --primary-color: #D72131;
  --background-color: #f7f7f7;
  --secondary-color: #645B5C;
  --success-color: #28a745;
  --error-color: #dc3545;
  --intermediate-color: #ff9800;
}

/* Fundalul paginii */
.page-background {
  background-color: var(--background-color);
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 1rem;
  position: relative;
}

/* Container pentru aplicația Vue */
.app-overlay {
  position: relative;
  z-index: 2;
  padding: 0;
}

/* Bara de căutare */
.search-container {
  margin: 20px auto 0 auto;
  width: 100%;
  max-width: 600px; /* Aceeași lățime ca și cardurile */
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 3;
}

.search-group {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0,123,255,0.6);
}

.search-button {
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #f0f0f0;
}

/* Container pentru rezultate */
.results-container {
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card 1: Detalii Comandă */
.order-detail-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 0 10px rgba(215,33,49,0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.header-left {
  display: flex;
  align-items: center;
}

.status-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.status-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}

.status-text-wrapper {
  display: inline-block;
}

.order-status {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.order-info {
  font-size: 1rem;
  margin: 5px 0 0 0;
  color: #555;
}

.header-right {
  font-size: 1.5rem;
  cursor: pointer;
  align-self: flex-start;
}

.locked {
  color: var(--error-color);
}

.unlocked {
  color: var(--success-color);
}

.card-body p {
  font-size: 0.95rem;
  color: #333;
  margin: 8px 0;
}

/* Card Footer (pentru order-detail-card) cu secțiuni separate */
.card-footer {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  text-align: left;
  flex: 1;
}

.footer-right {
  text-align: right;
}

.footer-right i {
  padding: 5px; /* Padding pentru iconul lacătului */
}

.footer-text {
  font-size: 0.8rem;
  color: #777;
}

/* Card 2: Informații Expediere */
.shipping-info-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 0 10px rgba(215,33,49,0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.shipping-info-left {
  flex: 1 1 60%;
}

.shipping-info p {
  font-size: 1rem;
  color: #333;
  margin: 4px 0;
}

.shipping-info-right {
  flex: 0 0 30%;
  text-align: center;
}

.courier-logo {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  margin: auto;
}

/* Card 3: Mini Card pentru Plată Card */
.payment-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin: 10px auto;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment-card.not-confirmed {
  border: 1px solid var(--error-color);
  background-color: #ffe6e6;
}

.payment-card.confirmed {
  border: 1px solid var(--success-color);
  background-color: #e6ffe6;
}

.payment-message {
  font-size: 1rem;
  margin-bottom: 10px;
}

.retry-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--error-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.payment-card.not-confirmed .retry-link:hover {
  background-color: darkred;
}

/* Card 4: Tracking Card */
.tracking-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin: 10px auto 20px auto;
  max-width: 600px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 0 10px rgba(215,33,49,0.15);
}

.tracking-header {
  text-align: left;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.tracking-estimated {
  margin-bottom: 10px;
}

.tracking-estimated p {
  margin: 5px 0;
}

.tracking-estimated .tracking-note {
  font-size: 0.8rem;
  color: #777;
}

/* Spațiu între tracking-estimated și fiecare awb-section */
.tracking-estimated + .awb-section {
  margin-top: 15px;
}

/* Timeline */
.timeline {
  position: relative;
  border-left: 2px solid #ccc;
  padding-left: 20px;
  margin-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 15px;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ccc;
}

.timeline-dot.active {
  background-color: var(--primary-color);
}

.timeline-content {
  margin-left: 10px;
}

.timeline-status {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.timeline-date {
  font-size: 0.9rem;
  color: #777;
  margin: 3px 0 0 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-error {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.modal-button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.modal-button.confirm {
  background-color: var(--success-color);
  color: #fff;
}

.modal-button.cancel {
  background-color: var(--error-color);
  color: #fff;
}
