/* ============================================
   TRACK ORDER ENHANCED - MODERN UI/UX
   Professional 10-Year Expert Design
   ============================================ */

/* ============================================
   TRACK ORDER PAGE - FORM
   ============================================ */

.track-order-page-wrapper {
    min-height: 70vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 0;
}

.track-order-header {
    margin-bottom: 3rem;
}

.track-order-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #7c93ff 0%, #8b6bc2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(124, 147, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

.track-order-icon i {
    font-size: 48px;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.track-order-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.track-order-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.track-order-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.track-order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.form-group-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group-modern {
    position: relative;
}

.form-label-modern {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.form-label-modern i {
    color: #7c93ff;
    margin-right: 0.5rem;
}

.input-wrapper-modern {
    position: relative;
}

.form-control-modern {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.form-control-modern:focus {
    outline: none;
    border-color: #7c93ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 147, 255, 0.1);
}

.form-control-modern::placeholder {
    color: #9ca3af;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7c93ff;
    font-size: 1.1rem;
    pointer-events: none;
}

.btn-track-order {
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #7c93ff 0%, #8b6bc2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 147, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-track-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 147, 255, 0.5);
}

.btn-track-order:active {
    transform: translateY(0);
}

.btn-track-order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-footer-text {
    color: #6b7280;
    font-size: 0.9rem;
}

.track-order-help-section {
    margin-top: 3rem;
}

.help-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-icon i {
    font-size: 28px;
    color: white;
}

.help-content {
    flex: 1;
}

.help-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.help-text {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.help-link {
    color: #7c93ff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.help-link:hover {
    color: #6a7fff;
    transform: translateX(5px);
}

/* ============================================
   TRACK ORDER RESULT PAGE
   ============================================ */

.track-order-result-wrapper {
    min-height: 70vh;
    background: #f9fafb;
    padding: 2rem 0;
}

.track-breadcrumb {
    margin-bottom: 2rem;
}

.track-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.track-breadcrumb .breadcrumb-item a {
    color: #7c93ff;
    text-decoration: none;
}

.track-breadcrumb .breadcrumb-item.active {
    color: #6b7280;
}

.order-header-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.order-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.order-id-section {
    flex: 1;
}

.order-id-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.order-id-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.order-status-section {
    text-align: right;
}

.order-status-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.order-status-badge.status-success {
    background: rgba(61, 214, 140, 0.1);
    color: #059669;
}

.order-status-badge.status-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.order-status-badge.status-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.order-status-badge.status-pending {
    background: rgba(124, 147, 255, 0.1);
    color: #6366f1;
}

.status-dot {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.order-date-info {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.verification-code-card {
    background: linear-gradient(135deg, #7c93ff 0%, #8b6bc2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(124, 147, 255, 0.3);
}

.verification-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verification-icon i {
    font-size: 28px;
}

.verification-content {
    flex: 1;
}

.verification-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.verification-code {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ============================================
   ENHANCED TIMELINE - MODERN DESIGN
   ============================================ */

.tracking-timeline-container {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.modern-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #e5e7eb 0%, #e5e7eb 100%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

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

.timeline-item:last-child .timeline-line {
    display: none;
}

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.marker-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 4px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.marker-icon i {
    font-size: 24px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.timeline-line {
    position: absolute;
    left: 29px;
    top: 60px;
    width: 3px;
    height: calc(100% + 1rem);
    background: linear-gradient(180deg, #e5e7eb 0%, #e5e7eb 100%);
    z-index: 1;
}

.timeline-item-completed .marker-icon {
    background: linear-gradient(135deg, #7c93ff 0%, #8b6bc2 100%);
    border-color: #7c93ff;
    box-shadow: 0 6px 20px rgba(124, 147, 255, 0.4);
    animation: scaleIn 0.5s ease-out;
}

.timeline-item-completed .marker-icon i {
    color: white;
}

.timeline-item-completed .timeline-line {
    background: linear-gradient(180deg, #7c93ff 0%, #8b6bc2 100%);
    box-shadow: 0 0 10px rgba(124, 147, 255, 0.3);
}

.timeline-item-pending .marker-icon {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.timeline-item-pending .marker-icon i {
    color: #d1d5db;
}

.timeline-item-canceled .marker-icon,
.timeline-item-failed .marker-icon {
    background: #fee2e2;
    border-color: #ef4444;
}

.timeline-item-canceled .marker-icon i,
.timeline-item-failed .marker-icon i {
    color: #dc2626;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.timeline-content {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.timeline-item-completed .timeline-content {
    background: linear-gradient(135deg, rgba(124, 147, 255, 0.05) 0%, rgba(139, 107, 194, 0.05) 100%);
    border-color: rgba(124, 147, 255, 0.2);
    box-shadow: 0 4px 12px rgba(124, 147, 255, 0.1);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.timeline-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.timeline-badge.completed {
    background: linear-gradient(135deg, #3dd68c 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(61, 214, 140, 0.4);
}

.timeline-badge.pending {
    background: #e5e7eb;
    color: #9ca3af;
}

.timeline-badge.canceled,
.timeline-badge.failed {
    background: #fee2e2;
    color: #dc2626;
}

.timeline-date {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.timeline-date i {
    margin-right: 0.5rem;
    color: #9ca3af;
}

.timeline-delivery-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.timeline-delivery-info .delivery-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.timeline-delivery-info .delivery-info-item:last-child {
    margin-bottom: 0;
}

.timeline-delivery-info .delivery-info-label {
    color: #6b7280;
    font-weight: 500;
    min-width: 120px;
}

.timeline-delivery-info .delivery-info-value {
    color: #1f2937;
    font-weight: 600;
}

[data-theme="dark"] .timeline-delivery-info {
    border-top-color: var(--dark-border-secondary) !important;
}

[data-theme="dark"] .timeline-delivery-info .delivery-info-label {
    color: var(--dark-text-secondary) !important;
}

[data-theme="dark"] .timeline-delivery-info .delivery-info-value {
    color: var(--dark-text-primary) !important;
}

.timeline-message {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.track-order-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action-primary,
.btn-action-secondary {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-action-primary {
    background: linear-gradient(135deg, #7c93ff 0%, #8b6bc2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 147, 255, 0.4);
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 147, 255, 0.5);
    color: white;
}

.btn-action-secondary {
    background: white;
    color: #7c93ff;
    border-color: #7c93ff;
}

.btn-action-secondary:hover {
    background: #7c93ff;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.track-order-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 60px;
    color: #9ca3af;
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.empty-text {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .track-order-title {
        font-size: 2rem;
    }

    .track-order-card {
        padding: 1.5rem;
    }

    .form-group-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-status-section {
        text-align: left;
        width: 100%;
    }

    .tracking-timeline-container {
        padding: 2rem 1rem;
    }

    .modern-timeline::before {
        left: 25px;
    }

    .timeline-item {
        padding-left: 60px;
        padding-bottom: 2rem;
    }

    .marker-icon {
        width: 50px;
        height: 50px;
    }

    .marker-icon i {
        font-size: 20px;
    }

    .timeline-line {
        left: 24px;
        top: 50px;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .help-card {
        flex-direction: column;
        text-align: center;
    }

    .track-order-actions {
        flex-direction: column;
    }

    .btn-action-primary,
    .btn-action-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   DARK THEME SUPPORT
   ============================================ */

[data-theme="dark"] .track-order-page-wrapper {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
}

[data-theme="dark"] .track-order-title {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .track-order-subtitle {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .track-order-card,
[data-theme="dark"] .order-header-card,
[data-theme="dark"] .tracking-timeline-container,
[data-theme="dark"] .help-card,
[data-theme="dark"] .track-order-empty-state {
    background: var(--dark-card-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-label-modern {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .form-control-modern {
    background: var(--dark-input-bg);
    border-color: var(--dark-border-secondary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .form-control-modern:focus {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-primary);
}

[data-theme="dark"] .order-id-value,
[data-theme="dark"] .timeline-title {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .order-id-label,
[data-theme="dark"] .order-status-label,
[data-theme="dark"] .timeline-date,
[data-theme="dark"] .form-footer-text {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .timeline-content {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border-secondary);
}

[data-theme="dark"] .timeline-item-completed .timeline-content {
    background: linear-gradient(135deg, rgba(124, 147, 255, 0.15) 0%, rgba(139, 107, 194, 0.15) 100%);
    border-color: rgba(124, 147, 255, 0.3);
}

[data-theme="dark"] .timeline-item-pending .marker-icon {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border-secondary);
}

[data-theme="dark"] .modern-timeline::before,
[data-theme="dark"] .timeline-line {
    background: var(--dark-border-secondary);
}

[data-theme="dark"] .track-order-result-wrapper {
    background: var(--dark-bg-primary);
}

[data-theme="dark"] .empty-title {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .empty-text {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .empty-icon {
    background: var(--dark-bg-secondary);
}

[data-theme="dark"] .empty-icon i {
    color: var(--dark-text-tertiary);
}

[data-theme="dark"] .help-title {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .help-text {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .help-link {
    color: var(--dark-primary);
}

[data-theme="dark"] .btn-action-secondary {
    background: var(--dark-card-bg);
    border-color: var(--dark-primary);
    color: var(--dark-primary);
}

[data-theme="dark"] .btn-action-secondary:hover {
    background: var(--dark-primary);
    color: white;
}

