/* -------------------------------------------------------------
 * Smart Woo Alamin - Steadfast Order Tracking Stylesheet
 * Large, crisp, and easily readable typography
 * ----------------------------------------------------------- */

.smart-woo-tracker-container {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
    font-size: 15px;
}

.smart-woo-tracker-container * {
    box-sizing: border-box;
}

.smart-tracker-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 38px 34px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tracker-header {
    text-align: center;
    margin-bottom: 28px;
}

.tracker-icon-badge {
    width: 68px;
    height: 68px;
    background: #f3f4f6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.tracker-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
}

.tracker-subtitle {
    font-size: 15.5px;
    color: #4b5563;
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.6;
}

/* Form Styles */
.smart-tracker-form {
    margin-bottom: 26px;
}

.tracker-input-group {
    display: flex;
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.tracker-input-group:focus-within {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.tracker-input-group .input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #9ca3af;
}

.tracker-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    padding: 16px 12px;
    color: #111827;
    font-weight: 500;
}

.tracker-input::placeholder {
    color: #9ca3af;
}

.tracker-submit-btn {
    background: #111827;
    color: #ffffff;
    border: none;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 0 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.tracker-submit-btn:hover {
    background: #27303f;
}

.tracker-hints {
    margin-top: 12px;
    font-size: 13.5px;
    color: #6b7280;
    text-align: center;
}

/* Spinner Animation */
.spinning-icon {
    animation: smartSpin 1s linear infinite;
}

@keyframes smartSpin {
    100% { transform: rotate(360deg); }
}

/* Error Box */
.tracker-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    animation: smartFadeIn 0.3s ease;
}

.tracker-error-box .error-icon {
    color: #ef4444;
    flex-shrink: 0;
}

.tracker-error-box .error-message {
    font-size: 15px;
    font-weight: 600;
    color: #991b1b;
}

/* -------------------------------------------------------------
 * TRACKING RESULT CARD
 * ----------------------------------------------------------- */
.smart-result-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 26px;
    margin-top: 24px;
    animation: smartFadeIn 0.35s ease;
}

.result-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 26px;
}

.result-code-box .code-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-code-box .code-value {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.status-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
}

/* Stepper Timeline */
.smart-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0 34px 0;
}

.smart-stepper::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e5e7eb;
    z-index: 1;
}

.smart-stepper-progress {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 4px;
    background: #10b981;
    z-index: 2;
    transition: width 0.4s ease;
}

.stepper-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 22%;
}

.stepper-step .step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #9ca3af;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stepper-step.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.stepper-step.active .step-circle {
    background: #ffffff;
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.stepper-step.cancelled .step-circle {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.stepper-step .step-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.3;
}

.stepper-step.completed .step-label,
.stepper-step.active .step-label {
    color: #111827;
    font-weight: 700;
}

/* Details Section */
.result-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 18px;
}

.meta-row {
    display: flex;
    flex-direction: column;
}

.meta-row .meta-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

.meta-row .meta-value {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
    margin-top: 3px;
}

.result-status-desc-box {
    background: #ffffff;
    border-left: 4px solid #10b981;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 15px;
    color: #27272a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.result-footer-note {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
}

/* Mobile Stepper */
@media (max-width: 600px) {
    .smart-tracker-card {
        padding: 26px 20px;
    }

    .tracker-input-group {
        flex-direction: column;
    }

    .tracker-submit-btn {
        padding: 14px;
        width: 100%;
    }

    .smart-stepper {
        flex-direction: column;
        gap: 22px;
        align-items: flex-start;
        padding-left: 10px;
    }

    .smart-stepper::before,
    .smart-stepper-progress {
        top: 0;
        bottom: 0;
        left: 29px;
        right: auto;
        width: 3px;
        height: 100%;
    }

    .stepper-step {
        flex-direction: row;
        width: 100%;
        text-align: left;
        gap: 16px;
    }

    .stepper-step .step-circle {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .result-meta-grid {
        grid-template-columns: 1fr;
    }
}
