/* ========================================
   Wasata Express - Unified Stylesheet
   ======================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* Global Styles */
* {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* CSS Variables - Brand Colors (loaded from API) */
:root {
    --brand-primary: #dc2626;
    --brand-dark: #374151;
    --brand-light: #f9fafb;
    --brand-gray: #6b7280;
}

/* Body */
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: #f9fafb;
}

/* ========================================
   Timeline Styles
   ======================================== */

.timeline-step {
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 40px;
    width: 2px;
    height: calc(100% - 40px);
    background: #e5e7eb;
    transform: translateX(-50%);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.completed::before {
    background: #10b981;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
}

.timeline-step.completed .timeline-icon {
    background: #10b981;
    color: white;
}

.timeline-step.active .timeline-icon {
    background: var(--brand-primary);
    color: white;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ========================================
   Custom Utilities
   ======================================== */

.brand-text {
    color: var(--brand-primary);
}

.brand-bg {
    background-color: var(--brand-primary);
}

.brand-border {
    border-color: var(--brand-primary);
}

/* Smooth Transitions */
a,
button {
    transition: all 0.2s ease-in-out;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--brand-primary);
}

/* ========================================
   Loading Spinner
   ======================================== */

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--brand-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 768px) {
    .timeline-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}