/* Dashboard Card */
.dashboard-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f1f1;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
}

.dashboard-header {
    width: 100%;
    padding-top: 100px;
    height: 240px;
    background-color: #c9ced4;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-header h1 {
    font-size: 1.6rem;
    font-weight: 400;
    color: #2b2d42;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}
.dashboard-header h1 small{
    font-size: 0.9rem;
    font-weight: 400;
    color: #2b2d42;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

/* Header Section */
.header {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid #f1f1f1;
    background: linear-gradient(to right, #ffffff, #f9f9f9);
}


.last-updated {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    color: #1f2937;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0px;
}

.last-updated svg {
    color: #1f2937;
}

/* Order Details */
.order-details {
    padding: 1.25rem 1.5rem;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .order-details {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.detail-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-family: 'Poppins', sans-serif;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
}


/* Base styles */
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
}

/* Order Details styles */
.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 14px;
    color: #666666;
}

.detail-value {
    font-weight: 500;
    color: #1a1a1a;
}

/* Status Message styles */
.status-message {
    margin-bottom: 32px;
}

.status-message h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.status-content {
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
}

.status-content p {
    color: #666666;
    margin: 0;
    line-height: 1.5;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0px !important;
  }
  .timeline-icon {
    width: 28px !important;
    height: 28px !important;
    margin-right: 0px !important;
  }
  .timeline-connector {
    top: 28px !important;
    left: 13px !important;
  }
    .order-details {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline-icon {
        width: 28px;
        height: 28px;
    }

    .timeline-icon svg {
        width: 16px;
        height: 16px;
    }
}





/* Timeline Container */
.timeline-section {
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 0rem);
    padding-left: 20px;
    padding-right: 20px;
    font-family: 'Poppins', sans-serif;
  }
  
  .timeline-section h2 {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }
  
  .timeline {
    position: relative;
    padding: 1rem 0;
  }
  
  /* Timeline Items */
  .timeline-item {
    display: flex;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    position: relative;
    gap: clamp(0.75rem, 2vw, 1.5rem);
  }
  
  /* Timeline Icon */
  .timeline-icon {
    flex-shrink: 0;
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  
  .timeline-icon svg {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
    color: #6b7280;
  }
  
  /* Completed state styling */
  .timeline-icon.completed {
    background-color: #D4AF37;
  }
  
  .timeline-icon.completed svg {
    color: #fff;
  }
  
  /* Timeline connector line */
  .timeline-connector {
    position: absolute;
    left: calc(clamp(32px, 8vw, 40px) / 2);
    top: clamp(32px, 8vw, 40px);
    bottom: calc(clamp(-1.5rem, -4vw, -2rem) - 8px);
    width: 1px;
    background-color: #e5e7eb;
    z-index: 1;
  }
  
  .timeline-connector.completed {
    background-color: #D4AF37;
  }
  
  /* Timeline content */
  .timeline-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    padding: clamp(1rem, 3vw, 1.25rem);
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
  }
  
  /* Current item highlight */
  .timeline-content.current {
    border: 1px solid #D4AF37;
  }
  
  /* Timeline header */
  .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
  }
  
  @media (max-width: 480px) {
    .timeline-header {
      flex-direction: column;
      gap: 0.25rem;
    }
  }
  
  .timeline-header h3 {
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
  }
  
  .timeline-date {
    font-size: clamp(0.75rem, 2vw, 0.813rem);
    color: #6b7280;
    white-space: nowrap;
  }
  
  /* Timeline content paragraph */
  .timeline-content p {
    margin: 0;
    color: #4b5563;
    font-size: clamp(0.813rem, 2vw, 0.875rem);
    line-height: 1.5;
  }
  
  /* Upcoming item styling */
  .timeline-item.upcoming .timeline-icon {
    background-color: #f3f4f6;
  }
  
  .timeline-item.upcoming .timeline-icon svg {
    color: #9ca3af;
  }
  
  .timeline-item.upcoming .timeline-content {
    background-color: #f9fafb;
  }
  
  .timeline-item.upcoming .timeline-header h3 {
    color: #9ca3af;
  }
  
  .timeline-item.upcoming p {
    color: #9ca3af;
  }
  
  /* Last item connector removal */
  .timeline-item:last-child .timeline-connector {
    display: none;
  }
  
  /* Touch target improvements for mobile */
  @media (hover: none) and (pointer: coarse) {
    .timeline-content {
      padding: clamp(1.25rem, 4vw, 1.5rem);
    }
    
    .timeline-header {
      margin-bottom: 0.75rem;
    }
    
    /* Increase spacing between items for better touch interaction */
    .timeline-item {
      margin-bottom: clamp(2rem, 6vw, 2.5rem);
    }
  }

  /* Ensure content doesn't overflow on very small screens */
  @media (max-width: 360px) {
    .timeline-section {
      padding: 0.75rem;
    }
    
    .timeline-content {
      padding: 1rem;
    }
    
    .timeline-header {
      gap: 0.5rem;
    }
  }