:root {
    --primary-dark: #2A0A0A;
    --primary-light: #4A1C1C;
    --gold: #C5A059;
    --gold-hover: #b08d4b;
    --bg-color: #f4f7f6;
    --text-dark: #333;
    --text-light: #666;
    --success: #2ecc71;
    --danger: #e74c3c;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------------- HEADER ---------------- */
header {
    background: var(--primary-dark);
    color: white;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header .brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 1px;
}

header .user-info {
    font-size: 14px;
    color: #ccc;
}

/* ---------------- LAYOUT CONTAINERS ---------------- */
.main-wrapper {
    margin-top: 70px;
    padding: 40px;
    flex: 1;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.hidden {
    display: none !important;
}

/* ---------------- LOGIN CARD ---------------- */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid var(--gold);
}

.login-card h3 {
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
}

/* ---------------- INPUTS & BUTTONS ---------------- */
input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #f9f9f9;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--gold);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

button.secondary {
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--text-light);
}

button.secondary:hover {
    background: #fff5f5;
    color: var(--danger);
    border-color: var(--danger);
}

button.primary-action {
    background: var(--primary-dark);
    color: white;
}

button.primary-action:hover {
    background: #000;
}

/* ---------------- ORDERS GRID ---------------- */
h2.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-dark);
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#orders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* ---------------- ORDER CARD ---------------- */
.order-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    position: relative;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.order-card.done {
    opacity: 0.8;
    border-left: 5px solid var(--success);
}

.order-card.pending {
    border-left: 5px solid var(--gold);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: start;
    background: #fcfcfc;
}

.customer-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.order-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.status-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff8e1;
    color: #f39c12;
}

.status-badge.done {
    background: #e8f8f5;
    color: var(--success);
}

.card-body {
    padding: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.info-row i {
    width: 20px;
    color: var(--gold);
    text-align: center;
}

.items-box {
    background: #faf7f2;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--primary-dark);
    line-height: 1.5;
}

.items-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.price-tag {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: right;
    margin-top: 10px;
}

.card-footer {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #999;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .main-wrapper {
        padding: 20px;
    }

    #orders {
        grid-template-columns: 1fr;
    }
}