/* Public CSS for WaybackRevive Orders Manager */

/* Track Order Form */
.wayback-track-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wayback-track-form h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
    font-size: 24px;
}

.wayback-track-form p {
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.wayback-track-form .form-group {
    margin-bottom: 20px;
}

.wayback-track-form .wayback-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.wayback-track-form .wayback-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wayback-track-form .wayback-button {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.wayback-track-form .wayback-button:hover {
    background: #005a87;
}

.wayback-track-form .wayback-button:active {
    transform: translateY(1px);
}

/* Order Results */
#wayback-track-results {
    margin-top: 30px;
}

.wayback-order-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wayback-order-details h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-row strong {
    color: #333;
    min-width: 150px;
}

.order-info-row span {
    color: #666;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Status Badge */
.order-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status-badge.pending {
    background: #FFF3CD;
    color: #856404;
}

.order-status-badge.processing {
    background: #D1ECF1;
    color: #0C5460;
}

.order-status-badge.completed {
    background: #D4EDDA;
    color: #155724;
}

.order-status-badge.cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.order-status-badge.refunded {
    background: #E2E3E5;
    color: #383D41;
}

/* Status Timeline */
.status-timeline {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
}

.status-timeline h4 {
    margin-top: 0;
    color: #333;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ddd;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0073aa;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #0073aa;
}

.timeline-content {
    padding: 5px 0;
}

.timeline-content .timeline-status {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.timeline-content .timeline-date {
    font-size: 12px;
    color: #999;
}

/* Loading Spinner */
.wayback-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.wayback-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.wayback-error {
    background: #F8D7DA;
    color: #721C24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #F5C6CB;
    margin-top: 20px;
}

/* Success Message */
.wayback-success {
    background: #D4EDDA;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #C3E6CB;
    margin-top: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wayback-track-form {
        margin: 20px auto;
        padding: 20px;
    }

    .order-info-row {
        flex-direction: column;
    }

    .order-info-row strong {
        margin-bottom: 5px;
    }

    .order-info-row span {
        text-align: left;
    }
}

/* Print Styles */
@media print {
    .wayback-track-form form {
        display: none;
    }

    .wayback-track-form {
        box-shadow: none;
        border: none;
    }
}