/* Import design system */

* {font-family: 'Inter', sans-serif; box-sizing: border-box;}
:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #f3f4f6;
  --border-color: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
}

.track-order-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 48px 20px;
    font-family: 'Inter', sans-serif;
    min-height: 60vh;
}

/* Breadcrumb spacing */
#breadcrumb-root {
    margin-bottom: 20px;
}
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:visited {
    /* keep same color after visit */
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
    color: var(--text-secondary);
}
/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-header h1 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Search Section */
.search-section {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.search-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 14px;
    /* Make border more visible like CTA */
    border: 1px solid #bfdbfe;
    box-shadow: 0 8px 30px rgba(15,23,42,0.06);
    padding: 36px 36px 28px 36px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.search-card .card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(59,130,246,1) 0%, rgba(37,99,235,1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px 0 0;
    box-shadow: 0 8px 24px rgba(37,99,235,0.12);
}

.search-card .card-icon i {
    color: white;
    font-size: 16px;
}

.search-card h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
}

/* Inline header: icon + title on same line */
.search-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.search-card-header .card-icon {
    margin: 0;
}

.search-card .card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.search-form {
    margin-top: 24px;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: var(--secondary-color);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input::placeholder {
    color: #9aa4b2;
}

/* Button Styles - Consistent with Site */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--primary-color);
}

.secondary-btn {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover:not(:disabled) {
    background: #eef2ff;
    border-color: #dbeafe;
}

.outline-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.outline-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.outline-danger-btn {
    background: transparent;
    color: var(--error-color);
    border: 2px solid var(--error-color);
}

.outline-danger-btn:hover:not(:disabled) {
    background: var(--error-color);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.search-help i {
    color: var(--info-color);
}

/* Guest Prompt / Info Banner */
.guest-prompt {
    margin: 0; /* spacing handled by .search-section gap */
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (max-width: 720px) {
    .search-section { gap: 16px; }
}

.info-banner {
    max-width: 900px;
    width: 100%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-banner-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-banner-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.info-banner-content {
    flex: 1;
}

.info-banner-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-banner-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.info-banner-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Results Section */
.results-section {
    margin-top: 32px;
    margin-bottom: 32px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #007bff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Guest Results - Order Details Card */
.guest-results .order-details-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.order-details-header h2 {
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.info-item span {
    font-size: 1rem;
    color: #333;
}

.info-item .amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color, #007bff);
}

.order-timeline-section {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.order-timeline-section h3 {
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Expected Delivery Date Banner */
.delivery-date-banner {
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
}

.delivery-date-banner.delivered {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.delivery-date-banner i {
    font-size: 24px;
    color: white;
}

.delivery-date-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-date-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.delivery-date-value {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

/* Order Timeline Styles */
.order-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-icon i {
    font-size: 20px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.timeline-content {
    text-align: center;
}

.timeline-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.timeline-desc {
    font-size: 0.8rem;
    color: #9ca3af;
}

.timeline-line {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
    transition: background 0.3s ease;
}

/* Active timeline states */
.timeline-item.active .timeline-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.timeline-item.active .timeline-icon i {
    color: white;
}

.timeline-item.active .timeline-title {
    color: #1f2937;
    font-weight: 700;
}

.timeline-item.active .timeline-line {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

/* Current/latest stage highlight */
.timeline-item.current .timeline-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    }
}

/* Special states: cancelled/refunded */
.timeline-special {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.timeline-special .timeline-item {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.timeline-special .timeline-icon {
    margin-bottom: 0;
    width: 56px;
    height: 56px;
}

.timeline-special .timeline-icon i {
    font-size: 24px;
}

.timeline-special .timeline-content {
    text-align: left;
}

.timeline-special .timeline-title {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.timeline-item.cancelled .timeline-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.timeline-item.cancelled .timeline-title {
    color: #dc2626;
}

.timeline-item.refunded .timeline-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.timeline-item.refunded .timeline-title {
    color: #d97706;
}

.shipping-info, .order-items {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.shipping-info h3, .order-items h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-weight: 600;
    color: #333;
}

.item-details {
    font-size: 0.9rem;
    color: #666;
}

.item-total {
    font-weight: 600;
    color: var(--primary-color, #007bff);
}

/* User Orders */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.orders-header h2 {
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* New Order List Item Design */
.order-list-item {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.2s ease;
}

.order-list-item:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
}

.order-list-item.expanded {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.order-list-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.order-list-item-content:hover {
    background: #fafbfc;
}

.order-list-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.order-list-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.order-list-number i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.order-list-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-list-date,
.order-list-items {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-list-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-list-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-list-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.order-list-toggle:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.order-list-toggle i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

/* Order List Details (Expanded Section) */
.order-list-details {
    padding: 0 24px 24px 24px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.order-list-details .order-info-grid {
    margin-top: 20px;
}

/* Old styles kept for backward compatibility but not used */
.order-item {
    display: none;
}

.order-header {
    display: none;
}

.order-body {
    display: none;
}

.order-details {
    display: none;
}

.order-actions {
    display: none;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Order Status */
.order-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-shipped {
    background-color: #cffafe;
    color: #155e75;
    border: 1px solid #a5f3fc;
}

.status-delivered {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
}

.pagination-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color, #007bff);
    background: white;
    color: var(--primary-color, #007bff);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color, #007bff);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.pagination-info {
    font-weight: 600;
    color: #333;
}

/* Support section */
.support-section {
    max-width: 1200px;
    margin: 32px auto 40px auto;
    padding: 0 20px;
}

.support-card {
    background: linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.04);
    padding: 22px 24px;
    box-shadow: 0 8px 28px rgba(2,6,23,0.06);
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 820px;
    margin: 20px auto 0 auto;
}

.support-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.support-icon i {
    color: white;
    font-size: 28px;
}

.support-content {
    flex: 1;
}

.support-content h3 {
    margin: 0 0 6px 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
}

.support-content p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.support-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease;
}

.support-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.support-link i {
    font-size: 16px;
}

.support-divider {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Support card variant when embedded inside no-results */
.support-card.support-inline {
    max-width: 780px;
    margin: 8px auto 0 auto; /* closer to paragraph above */
    padding: 10px 14px;
    gap: 10px;
    align-items: center; /* vertically center content */
    /* Make it look like the sign-in CTA */
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 6px 18px rgba(59,130,246,0.06);
    border-radius: 10px;
}
.support-card.support-inline .support-icon {
    width: 44px;
    height: 44px;
    /* smaller icon tile */
    background: #ffffff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 6px rgba(59,130,246,0.06);
    flex-shrink: 0;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.support-card.support-inline .support-icon i { 
    color: var(--primary-color);
    font-size: 18px;
    transition: transform 0.15s ease;
}
/* Subtle hover effect on the icon */
.support-card.support-inline:hover .support-icon {
    box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}
.support-card.support-inline:hover .support-icon i {
    transform: scale(1.05);
}
.support-card.support-inline .support-content {
    flex: 1;
}
.support-card.support-inline .support-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}
.support-card.support-inline .support-content p {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* center content so buttons align under paragraph */
    justify-content: center;
}

/* Action buttons for support links */
.support-card.support-inline .support-options {
    display: flex;
    align-items: center;
    justify-content: center; /* center the action buttons under the paragraph */
    gap: 10px;
    flex-wrap: wrap;
}

.support-card.support-inline .support-options .support-link {
    padding: 8px 12px; /* compact button height */
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
    border: 1px solid transparent;
    height: auto;
}

/* Secondary button (email) */
.support-card.support-inline .support-options .support-link.secondary-btn {
    background: #ffffff;
    color: var(--text-primary);
    border-color: #bfdbfe;
}

.support-card.support-inline .support-options .support-link.secondary-btn:hover {
    background: #f0f7ff;
    border-color: #93c5fd;
    color: var(--text-primary);
}

.support-card.support-inline .support-options .support-link.secondary-btn i {
    color: var(--primary-color);
    font-size: 14px;
    line-height: 1;
}

.support-card.support-inline .support-options .support-link.secondary-btn:hover i {
    color: var(--primary-color);
}

/* Primary button (contact page) */
.support-card.support-inline .support-options .support-link.primary-btn {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.support-card.support-inline .support-options .support-link.primary-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.support-card.support-inline .support-options .support-link.primary-btn i {
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

.support-card.support-inline .support-options .support-divider {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Empty / No-results / Error States - relaxed constraints and modern panel look */
.empty-state, .no-results, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    max-width: 920px;
    margin: 32px auto;
}

/* Remove border only from the Not Found (no-results) panel */
.no-results {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 28px 18px;
    /* bring the no-results panel closer to the search area */
    margin: 8px auto; 
}

.empty-content, .no-results-content, .error-content {
    max-width: 800px;
    width: 100%;
}

.empty-state i, .no-results i, .error-state i {
    font-size: 5rem;
    color: rgba(59,130,246,0.15);
}

.empty-state h3, .no-results h3, .error-state h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.empty-state p, .no-results p, .error-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.help-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

/* Order Details in Modal */
.modal-order-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.order-summary {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.order-summary h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.order-summary .order-date {
    margin: 8px 0;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.order-summary .order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Order Items Section */
.order-items-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.item-qty,
.item-price {
    font-size: 0.85rem;
    color: #666;
}

.item-total {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

/* Total Section */
.order-total-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.total-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.final-total {
    border-top: 2px solid #ddd;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 1.1rem;
}

.final-total strong {
    color: #28a745;
}

/* Address and Payment Info */
.shipping-address,
.payment-info {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.shipping-address h4,
.payment-info h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.shipping-address p,
.payment-info p {
    margin: 6px 0;
    color: #555;
    line-height: 1.5;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .spinner {
    border-color: #f3f3f3;
    border-top-color: white;
}

.loading-overlay p {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .track-order-container {
        padding: 16px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .order-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .timeline-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .timeline-content {
        text-align: left;
    }
    
    .item {
        flex-wrap: wrap;
    }
    
    .search-card {
        padding: 24px 20px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-group .btn {
        width: 100%;
    }
    
    .info-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .info-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .info-banner-actions .btn {
        width: 100%;
    }
    
    .support-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .support-card.support-inline {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    
    .support-card.support-inline .support-icon {
        width: 56px;
        height: 56px;
    }
    
    .support-card.support-inline .support-icon i {
        font-size: 24px;
    }
    
    .support-options {
        flex-direction: column;
        width: 100%;
    }
    
    .support-link {
        width: 100%;
        justify-content: center;
    }
    
    .support-card.support-inline .support-options {
        width: 100%;
    }
    
    .support-card.support-inline .support-options .support-link {
        width: 100%;
        justify-content: center;
    }
    
    .support-card.support-inline .support-options .support-divider {
        width: 100%;
        text-align: center;
    }
    
    .no-results {
        padding: 24px 16px;
    }
    
    .no-results h3 {
        font-size: 1.5rem;
    }
    
    .no-results p {
        font-size: 0.95rem;
    }
    
    /* Responsive Order List */
    .order-list-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .order-list-left {
        width: 100%;
    }

    .order-list-right {
        width: 100%;
        justify-content: space-between;
    }

    .order-list-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-list-details {
        padding: 0 16px 16px 16px;
    }
    
    .order-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .order-body {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .order-actions {
        flex-direction: row;
        width: 100%;
        gap: 8px;
    }
    
    .order-actions .btn {
        flex: 1;
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .orders-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    
    .modal-content {
        margin: 10px;
    }

    .pagination-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .help-links {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-header, .modal-body {
        padding: 20px;
    }
    
    .order-summary {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .search-card {
        padding: 15px;
    }
    
    .order-item {
        margin: 0 -5px;
    }
    
    .order-header, .order-body {
        padding: 15px 20px;
    }
    
    .modal-header, .modal-body {
        padding: 15px;
    }
}

    /* Buttons: disable translate/transform on hover — use color only for hover feedback */
    .track-order-container .btn:hover:not(:disabled) {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Keep color-only hover effects for primary/secondary/outline buttons */
    .primary-btn:hover:not(:disabled) { background: var(--primary-hover); }
    .secondary-btn:hover:not(:disabled) { background: #eef2ff; }
    .outline-btn:hover:not(:disabled) { background: var(--primary-color); color: white; }

    /* Responsive adjustments */
    @media (max-width: 720px) {
        .search-card { padding: 22px; }
        .search-card .card-icon { width: 44px; height: 44px; }
        .support-card.support-inline { max-width: 100%; padding: 14px; gap: 12px; }
        .support-card { flex-direction: column; align-items: flex-start; }
        .support-card .support-icon { width: 48px; height: 48px; }
    }

/* ===============================
   Dark Mode Styles for Order Tracking
   =============================== */

/* Dark mode search card */
:root[data-theme="dark"] .search-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-highlight) 100%);
    border: 1px solid var(--border);
    color: var(--text-main);
}

:root[data-theme="dark"] .search-card .card-icon {
    background: var(--bg-highlight);
    border: 1px solid var(--border);
    color: var(--primary-accent);
}

/* Dark mode input elements */
:root[data-theme="dark"] .input-group input {
    background: var(--bg-highlight);
    color: var(--text-main);
    border: 1px solid var(--border);
}

:root[data-theme="dark"] .input-group input:focus {
    background: var(--bg-highlight);
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(96, 175, 255, 0.1);
}

:root[data-theme="dark"] .input-group input::placeholder {
    color: var(--text-muted);
}

/* Dark mode buttons */
:root[data-theme="dark"] .primary-btn {
    background: var(--primary-accent);
    color: var(--text-inverse);
    border-color: var(--primary-accent);
}

:root[data-theme="dark"] .primary-btn:hover:not(:disabled) {
    background: var(--secondary-accent);
}

:root[data-theme="dark"] .secondary-btn {
    background: var(--bg-highlight);
    color: var(--text-main);
    border-color: var(--border);
}

:root[data-theme="dark"] .secondary-btn:hover:not(:disabled) {
    background: var(--hover);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

:root[data-theme="dark"] .outline-btn {
    background: transparent;
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

:root[data-theme="dark"] .outline-btn:hover:not(:disabled) {
    background: var(--primary-accent);
    color: var(--text-inverse);
}

/* Dark mode empty/error states */
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .no-results,
:root[data-theme="dark"] .error-state {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-highlight) 100%);
    border: 1px solid var(--border);
    color: var(--text-main);
}

:root[data-theme="dark"] .empty-state i,
:root[data-theme="dark"] .no-results i,
:root[data-theme="dark"] .error-state i {
    color: var(--text-muted);
}

:root[data-theme="dark"] .empty-state h3,
:root[data-theme="dark"] .no-results h3,
:root[data-theme="dark"] .error-state h3 {
    color: var(--text-main);
}

:root[data-theme="dark"] .empty-state p,
:root[data-theme="dark"] .no-results p,
:root[data-theme="dark"] .error-state p {
    color: var(--text-muted);
}

/* Dark mode order cards */
:root[data-theme="dark"] .order-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

:root[data-theme="dark"] .order-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

:root[data-theme="dark"] .order-list-details {
    background: linear-gradient(180deg, var(--bg-highlight) 0%, var(--bg-card) 100%);
    border-top: 1px solid var(--border);
}

/* Dark mode modal */
:root[data-theme="dark"] .modal {
    background-color: rgba(25, 29, 35, 0.8);
}

:root[data-theme="dark"] .modal-content {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

:root[data-theme="dark"] .modal-header {
    background: var(--bg-highlight);
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

:root[data-theme="dark"] .modal-body {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Dark mode support card */
:root[data-theme="dark"] .support-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-highlight) 100%);
    border: 1px solid var(--border);
    color: var(--text-main);
}

:root[data-theme="dark"] .support-card .support-icon {
    background: var(--bg-highlight);
    border: 1px solid var(--border);
    color: var(--primary-accent);
}

:root[data-theme="dark"] .support-card .support-link {
    color: var(--primary-accent);
}

:root[data-theme="dark"] .support-card .support-link:hover {
    color: var(--secondary-accent);
}

/* Dark mode pagination */
:root[data-theme="dark"] .pagination-btn {
    background: var(--bg-highlight);
    color: var(--text-main);
    border: 1px solid var(--border);
}

:root[data-theme="dark"] .pagination-btn:hover:not(:disabled) {
    background: var(--primary-accent);
    color: var(--text-inverse);
    border-color: var(--primary-accent);
}

/* Dark mode loading states */
:root[data-theme="dark"] .loading-state {
    background: var(--bg-card);
    color: var(--text-main);
}

:root[data-theme="dark"] .loading-state p {
    color: var(--text-muted);
}
