/*
 * Customer Interface Stylesheet - Gas System v3.0
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --light-gray: #f0f2f5;
    --text-color: #333;
    --border-radius: 1rem;
}

body {
    background-color: var(--light-gray);
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.main-container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.view {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.active-view {
    display: block;
}

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

/* --- Order Tracker View --- */
.tracker-header {
    text-align: center;
    margin-bottom: 2rem;
}
.tracker-header i {
    font-size: 4rem;
    color: var(--primary-color);
}
.tracker-header h3 {
    font-weight: 800;
    margin-top: 1rem;
}
.tracker-header p {
    color: #666;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-bottom: 2rem;
}
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 19px; /* (icon width / 2) - (line width / 2) */
    width: 2px;
    height: 100%;
    background-color: #e9ecef;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1;
    margin-left: 1.5rem;
}
.timeline-item.active .timeline-icon {
    background-color: var(--primary-color);
    color: #fff;
}
.timeline-item.completed .timeline-icon {
    background-color: var(--success-color);
    color: #fff;
}

.timeline-content {
    padding-top: 0.5rem;
}
.timeline-content h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.timeline-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.order-details-summary {
    background-color: var(--light-gray);
    border-radius: .75rem;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}
.order-details-summary span {
    font-weight: 700;
}

/* --- New Order View --- */
.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}
.logo-container img {
    max-height: 60px;
}
.step-title {
    font-weight: 800;
    text-align: center;
}
.step-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

/* --- General Components --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 700;
    padding: 0.75rem;
    border-radius: .75rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}
.btn-success {
    font-weight: 700;
    padding: 0.75rem;
    border-radius: .75rem;
}
.form-control, .form-select {
    border-radius: .75rem;
    padding: 0.75rem 1rem;
}
.alert {
    border-radius: .75rem;
}
