/* Modern tracking timeline CSS with organized layout and contemporary design */

.correios-tracking-container {
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Modern gradient header with better typography */
.tracking-code-header {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tracking-code-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.tracking-code-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* Enhanced status badge with modern design */
.tracking-status-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 4px solid #f59e0b;
}

.status-icon {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
}

.status-icon svg {
  width: 32px;
  height: 32px;
}

.status-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #78350f;
  margin: 0 0 0.5rem 0;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.5px;
}

.status-subtitle {
  font-size: 1.05rem;
  color: #92400e;
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

/* Improved payment warning box with better hierarchy */
.payment-warning-box {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  padding: 2.5rem;
  border-left: 6px solid #dc2626;
  margin: 0;
}

.warning-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.warning-content h4 {
  color: #7f1d1d;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.5px;
}

.warning-content p {
  color: #991b1b;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.info-section {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  margin: 2rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 2px solid #fecaca;
}

.info-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.info-section strong {
  display: block;
  color: #7f1d1d;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.info-section p {
  margin: 0;
  color: #991b1b;
  line-height: 1.7;
  font-size: 1.05rem;
}

.important-section {
  background: #fecaca;
  padding: 1.25rem 1.75rem;
  border-radius: 12px;
  border: 2px solid #f87171;
  color: #7f1d1d;
  font-weight: 700;
  margin: 2rem 0;
  font-size: 1.05rem;
}

.btn-release-payment {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.5px;
}

.btn-release-payment:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.btn-release-payment:active {
  transform: translateY(-1px);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #16a34a;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

.secure-note svg {
  color: #16a34a;
}

/* Completely reorganized timeline with vertical layout */
.tracking-timeline {
  padding: 3rem 2.5rem;
  background: #fafaf8;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 70px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #e5e7eb 0%, #f3f4f6 100%);
}

.timeline-item.active .timeline-icon {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5);
  border-color: #fed7aa;
}

.timeline-icon {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 4px solid #f5f3ef;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.timeline-icon svg {
  width: 26px;
  height: 26px;
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.3px;
}

.timeline-location {
  color: #475569;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}

.timeline-date {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
}

/* Reorganized info cards in vertical stack on mobile, grid on desktop */
.tracking-additional-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 2.5rem;
  background: #fafaf8;
  border-top: 1px solid #e7e5e0;
}

.info-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.25);
  transform: translateY(-4px);
  border-color: #f59e0b;
}

.info-card h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1.75rem 0;
  font-family: "Poppins", sans-serif;
  border-bottom: 4px solid #f97316;
  padding-bottom: 1rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-card p {
  color: #334155;
  margin: 1rem 0;
  font-size: 1.05rem;
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-card strong {
  color: #0f172a;
  font-weight: 700;
  display: inline-block;
  min-width: 90px;
  font-size: 1.05rem;
}

/* Enhanced package content toggle with modern design */
.package-content-toggle {
  margin-top: 2rem;
}

.btn-toggle-content {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 1.25rem 1.75rem;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.3px;
}

.btn-toggle-content:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.5);
}

.toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.package-content-details {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 1.25rem;
  border: 2px solid #93c5fd;
  animation: slideDown 0.3s ease;
  box-shadow: inset 0 2px 12px rgba(59, 130, 246, 0.15);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Added styled list for package contents */
.content-list-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1.25rem;
  font-family: "Poppins", sans-serif;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #93c5fd;
  transition: all 0.2s ease;
}

.content-list li:last-child {
  border-bottom: none;
}

.content-list li:hover {
  background: rgba(147, 197, 253, 0.4);
  padding-left: 0.5rem;
  border-radius: 8px;
}

.check-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.item-text {
  color: #1e3a8a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  flex: 1;
}

.content-simple {
  margin: 0;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Removed checkmark styles and added table-like row styles */
.content-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #1e3a8a;
}

.content-count {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a8a;
  font-family: "Poppins", sans-serif;
}

.content-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-row {
  background: white;
  padding: 1.25rem 1.5rem;
  border: 1px dashed #64748b;
  color: #1e3a8a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.content-row:first-child {
  border-radius: 12px 12px 0 0;
}

.content-row:last-child {
  border-radius: 0 0 12px 12px;
}

.content-row:only-child {
  border-radius: 12px;
}

.content-row:not(:last-child) {
  border-bottom: none;
}

.content-row:hover {
  background: #dbeafe;
  box-shadow: 0 2px 12px rgba(30, 58, 138, 0.15);
  transform: translateX(4px);
  border-color: #3b82f6;
}

/* Improved mobile responsive design with better spacing */
@media (max-width: 768px) {
  .tracking-code-header {
    padding: 2rem 1.5rem;
  }

  .tracking-code-header h2 {
    font-size: 1.35rem;
    line-height: 1.4;
  }

  .tracking-status-badge {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .status-icon {
    width: 64px;
    height: 64px;
  }

  .status-icon svg {
    width: 30px;
    height: 30px;
  }

  .status-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .status-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .payment-warning-box {
    padding: 2rem 1.5rem;
  }

  .warning-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
  }

  .warning-content h4 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .warning-content p {
    font-size: 1rem;
  }

  .info-section {
    flex-direction: column;
    padding: 1.75rem;
    gap: 1.25rem;
  }

  .info-icon {
    font-size: 2.25rem;
  }

  .info-section strong {
    font-size: 1.15rem;
  }

  .info-section p {
    font-size: 1rem;
  }

  .btn-release-payment {
    padding: 1.35rem 2rem;
    font-size: 1.05rem;
  }

  .tracking-timeline {
    padding: 2.5rem 1.5rem;
  }

  .timeline-item {
    gap: 1.5rem;
    padding-bottom: 2.25rem;
  }

  .timeline-item:not(:last-child)::after {
    left: 25px;
    top: 64px;
  }

  .timeline-icon {
    width: 52px;
    height: 52px;
  }

  .timeline-icon svg {
    width: 24px;
    height: 24px;
  }

  .timeline-content h4 {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .timeline-location {
    font-size: 0.95rem;
  }

  .timeline-date {
    font-size: 0.85rem;
  }

  .tracking-additional-info {
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .info-card {
    padding: 2rem 1.75rem;
  }

  .info-card h4 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
  }

  .info-card p {
    font-size: 1rem;
    margin: 0.85rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .info-card strong {
    font-size: 1rem;
    min-width: auto;
  }

  .btn-toggle-content {
    padding: 1.15rem 1.5rem;
    font-size: 1.05rem;
  }

  .package-content-details {
    padding: 1.75rem;
  }

  .content-list-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .content-list li {
    padding: 0.85rem 0;
  }

  .check-icon {
    font-size: 1.15rem;
  }

  .item-text {
    font-size: 0.95rem;
  }

  .content-simple {
    font-size: 1rem;
  }

  .content-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
  }

  .content-count {
    font-size: 1.05rem;
  }

  .content-row {
    padding: 1.15rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Desktop optimization for better grid layout */
@media (min-width: 769px) {
  .tracking-additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
  }
}
