:root {
    --primary: #E31837;
    --background: #121212;
    --surface: #1e1e1e;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --border: #333333;
    --success: #2ecc71;
    --radius: 8px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    max-width: 200px;
    width: 60%;
    height: auto;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
}

/* Search Form */
.search-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.1rem;
    text-align: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.error-message {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    display: inline-block;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

/* CSS for Customer Tracker */

.tracking-main-status {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #fff;
    border-left: 4px solid #da291c;
}

.status-alert {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    line-height: 1.5;
    color: #eee;
}

/* Status Page */
.status-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.status-header {
    background-color: #252525;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-id {
    font-size: 1.25rem;
    font-weight: 700;
}

.order-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.status-body {
    padding: 2rem;
}

.status-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Progress Steps */
.progress-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    background-color: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.step.active .step-circle {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(218, 41, 28, 0.4);
}

.step.completed .step-circle {
    background-color: var(--primary);
    border-color: var(--primary);
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--text);
    font-weight: 700;
}

/* Tracking Details */
.tracking-info {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tracking-code {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    display: inline-block;
}

.tracking-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

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

/* Preview Images */
.design-preview {
    margin-top: 2rem;
    text-align: center;
}

.preview-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.preview-img {
    max-width: 100px;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s;
}

.preview-img:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Timeline Styles */
.tracking-timeline {
    text-align: left;
    margin-top: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    border-left: 2px solid var(--border);
    padding-left: 1rem;
    margin-left: 1rem;
}

.timeline-event {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-event:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.35rem;
    /* Adjust based on padding/border */
    top: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--surface);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 4px;
}

.timeline-desc {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.timeline-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tracking-code-inline {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 5px;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .status-large {
        font-size: 1.8rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
}