@charset "UTF-8";

/**
 * Modern Order Tracking Page
 * 
 * Purpose: Professional, modern order tracking interface
 * Features:
 * - Animated SVG tracking icons
 * - Modern form styling with floating labels
 * - Order status timeline
 * - Theme color integration
 * - Responsive design
 * 
 * @version 1.0.0
 * @date 2026-01-25
 */

/* ============================================================
   ORDER TRACKING SECTION
   ============================================================ */

.nx-order-track-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    min-height: 100vh;
}

.nx-order-track-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   ORDER TRACK CARD
   ============================================================ */

.nx-order-track-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.nx-order-track-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: rgba(13, 110, 253, 0.07);
    border-radius: 50%;
    z-index: 0;
}

.nx-order-track-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 100px;
    height: 100px;
    background: rgba(25, 135, 84, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.nx-order-track-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .nx-order-track-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

/* ============================================================
   ORDER TRACK HEADER
   ============================================================ */

.nx-order-track-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.nx-order-track-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

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

.nx-order-track-icon {
    width: 100%;
    height: 100%;
    stroke: var(--bs-primary, #0d6efd);
    fill: none;
    filter: drop-shadow(0 4px 12px rgba(13, 110, 253, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.nx-order-track-icon circle {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawCircle 2s ease-out forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.nx-order-track-icon polyline {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 1s ease-out 1.5s forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.nx-order-track-title {
    font-size: 2.75rem;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    color: #1d1d1f;
    margin: 0 0 1rem 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #1d1d1f 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.nx-order-track-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--bs-primary, #0d6efd), transparent);
    border-radius: 2px;
}

.nx-order-track-subtitle {
    font-size: 1rem;
    color: #6e6e73;
    margin: 1rem 0 0 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nx-order-track-title {
        font-size: 2.25rem;
    }
    
    .nx-order-track-icon-wrapper {
        width: 80px;
        height: 80px;
    }
}

/* ============================================================
   FORM STYLING
   ============================================================ */

.nx-order-track-form {
    margin-bottom: 0;
}

.nx-form-group {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.nx-form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6e6e73;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    padding: 0 0.5rem;
    z-index: 1;
}

.nx-form-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1d1d1f;
    background: #ffffff !important;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
}

.nx-form-input:focus {
    border-color: var(--bs-primary, #0d6efd) !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
    outline: none !important;
}

.nx-form-input:focus + .nx-form-label,
.nx-form-input:not(:placeholder-shown) + .nx-form-label,
.nx-form-input.has-value + .nx-form-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.8125rem;
    color: var(--bs-primary, #0d6efd);
    font-weight: 600;
}

.nx-form-input::placeholder {
    color: transparent;
}

.nx-form-input:focus::placeholder {
    color: #c7c7cc;
    transition: color 0.3s ease;
}

/* ============================================================
   TRACK BUTTON
   ============================================================ */

.nx-track-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: var(--bs-primary, #0d6efd) !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nx-track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    background: var(--bs-primary-hover, #0b5ed7) !important;
}

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

.nx-track-btn i {
    font-size: 1.125rem;
}

/* ============================================================
   ORDER STATUS CARD
   ============================================================ */

.nx-order-status-card {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e9f7ef 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(25, 135, 84, 0.07);
    animation: slideInUp 0.6s ease-out;
}

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

.nx-order-status-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.nx-order-status-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #198754;
    margin: 0;
    letter-spacing: 0.5px;
}

.nx-order-status-icon {
    width: 24px;
    height: 24px;
    color: var(--bs-primary, #0d6efd);
}

.nx-order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .nx-order-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.nx-order-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nx-order-info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
}

.nx-order-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1d1d1f;
}

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

.nx-order-status-badge.pending {
    background: #ffc107;
}

.nx-order-status-badge.paid {
    background: #0dcaf0;
}

.nx-order-status-badge.confirmed {
    background: var(--bs-primary, #0d6efd);
}

.nx-order-status-badge.delivered {
    background: #198754;
}

.nx-order-status-badge.cancel,
.nx-order-status-badge.cancelled {
    background: #dc3545;
}

.nx-order-status-badge.failed {
    background: #6c757d;
}

.nx-order-status-badge i {
    font-size: 0.875rem;
}

/* ============================================================
   ORDER NOT FOUND
   ============================================================ */

.nx-order-not-found {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.6s ease-out;
}

.nx-order-not-found-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    stroke: #dc3545;
    stroke-width: 2.5;
    fill: none;
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-6px);
    }
    40% {
        transform: translateX(6px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
}

.nx-order-not-found-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0.75rem;
}

.nx-order-not-found-text {
    font-size: 1.0625rem;
    color: #6c757d;
    margin: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 576px) {
    .nx-order-track-section {
        padding: 2rem 0;
    }
    
    .nx-order-track-card {
        padding: 1.5rem 1rem;
    }
    
    .nx-form-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.875rem;
    }
    
    .nx-order-status-card {
        padding: 1.5rem;
    }
    
    .nx-order-status-title {
        font-size: 1.25rem;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .nx-order-track-icon,
    .nx-order-track-icon-wrapper,
    .nx-order-track-card,
    .nx-order-status-card,
    .nx-order-not-found-icon {
        animation: none;
    }
}
