/* public/styles.css */
:root {
    --brand-color: #FF4C4C;
    --brand-dark: #E63939;
    --text-main: #333333;
    --text-muted: #888888;
    --bg-main: #F9F9FB;
    --card-bg: #FFFFFF;
    --timeline-bg: #FFFFFF;
    --gray-node: #E0E0E0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    background-color: #e5e5e5;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-main);
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.top-bar {
    background: var(--card-bg);
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.brand-logo { height: 30px; object-fit: contain; }

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
}

.order-info h1 { font-size: 1.2rem; margin-bottom: 4px; }
.order-info p { font-size: 0.9rem; color: var(--text-muted); }

.btn-share {
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
}

.invoice-card {
    background: var(--card-bg);
    margin: 0 16px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.invoice-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.invoice-list { list-style: none; margin-bottom: 16px; }
.invoice-list li { display: flex; margin-bottom: 8px; font-size: 0.95rem; }

.qty { font-weight: bold; color: var(--brand-color); width: 30px; }
.product { flex: 1; }

.invoice-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 1px dashed #ccc;
    padding-top: 16px;
}

.timeline-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--timeline-bg);
    padding: 20px 16px;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-node);
    z-index: 1;
}

.node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-node);
    border: 3px solid var(--timeline-bg);
    transition: all 0.3s ease;
}

.node-label {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.node.completed .node-circle { background: var(--brand-color); }
.node.active .node-circle {
    background: var(--brand-color);
    box-shadow: 0 0 0 4px rgba(255, 76, 76, 0.2);
    animation: pulse 1.5s infinite;
}
.node.active .node-label, .node.completed .node-label { color: var(--text-main); }

.banner {
    margin: 16px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    background: #FFF3F3;
    border: 1px solid #FFD1D1;
    color: var(--brand-dark);
}

.banner-action {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--brand-color);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
}

.error-screen { text-align: center; padding: 60px 20px; }
.icon-lock, .icon-error { font-size: 3rem; margin-bottom: 20px; }
.smart-banner { margin-top: 40px; padding: 20px; background: var(--card-bg); border-radius: 12px; }
.btn-primary { display: inline-block; margin-top: 15px; padding: 12px 20px; background: var(--brand-color); color: #fff; text-decoration: none; border-radius: 8px; font-weight: bold; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}