/* ============================================
   Reusable Components - Shared UI elements
   ============================================ */

/* ============================================
   Header & Branding
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: white;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.brand-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   Status Progress Indicator
   ============================================ */
.status-progress {
    text-align: center;
    padding-bottom: 1.375rem;
}

.status-label {
    margin-bottom: 1.0rem;
}

.status-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.status-step.completed .step-circle {
    background: #86efac;
    border-color: #86efac;
}

.status-step.active .step-circle {
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.9);
    transform: scale(1.2);
}

.step-label {
    font-size: 0.7rem;
    margin-top: 0.35rem;
    opacity: 0.6;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.status-step.completed .step-label {
    opacity: 0.7;
    color: #86efac;
}

.status-step.active .step-label {
    opacity: 1;
    font-weight: 600;
    color: #fbbf24;
}

.status-connector {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.25rem 1.5rem;
    transition: all 0.3s ease;
}

.status-connector.completed {
    background: #86efac;
}

/* Dark theme overrides for status */
@media (prefers-color-scheme: dark) {
    .status-step.completed .step-circle {
        background: #48bb78;
        border-color: #48bb78;
    }
    
    .status-step.completed .step-label {
        color: #48bb78;
    }
    
    .status-connector.completed {
        background: #48bb78;
    }
}

/* ============================================
   Timestamp
   ============================================ */
.timestamp {
    text-align: right;
}

.timestamp .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.timestamp .date {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================================
   Statistics Cards
   ============================================ */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.stat-card h3 {
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .unit {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* Dark theme overrides for stat cards */
@media (prefers-color-scheme: dark) {
    .stat-card {
        border-left-color: var(--accent-color);
    }
}

/* ============================================
   Location Tags
   ============================================ */
.location-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-weight: 500;
}

.location-tag.office {
    background: #ebf8ff;
    color: #2b6cb0;
}

.location-tag.on-site {
    background: #f0fff4;
    color: #276749;
}

.location-tag.travel {
    background: #faf5ff;
    color: #6b46c1;
}

/* Dark theme overrides for location tags */
@media (prefers-color-scheme: dark) {
    .logo {
        background-color: var(--accent-color) !important;
        color: #1a202c !important;
    }

    .location-tag.office {
        background: rgba(66, 153, 225, 0.2);
        color: #90cdf4;
    }

    .location-tag.on-site {
        background: rgba(104, 211, 145, 0.2);
        color: #68d391;
    }

    .location-tag.travel {
        background: rgba(183, 148, 244, 0.2);
        color: #b794f4;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* ============================================
   Responsive - Components
   ============================================ */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .timestamp {
        text-align: center;
    }

    .main-content {
        padding: 1rem;
    }
}

/* ============================================
   Navigation Links
   ============================================ */
.back-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}
