:root {
    /* DEFAULT: LIGHT MODE */
    --bg: #ffffff;
    --text: #000000;
    --border: #000000;
    --accent: #000000;
    --muted: #f5f5f5;
    --card-bg: #ffffff;
    --status-success: #000000;
    --status-pending: #888888;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #000000;
    --text: #ffffff;
    --border: #ffffff;
    --accent: #ffffff;
    --muted: #1a1a1a;
    --card-bg: #000000;
    --status-success: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color var(--transition), color var(--transition);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* TYPOGRAPHY */
h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

/* BUTTONS & INPUTS */
button, .btn {
    background: var(--accent);
    color: var(--bg);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

button:hover, .btn:hover {
    background: var(--bg);
    color: var(--accent);
}

textarea, select {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 1rem;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

textarea:focus {
    background: var(--muted);
}

/* THEME TOGGLE */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

/* CARDS / TABLES */
.order-card {
    border: 2px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.order-card:hover {
    background: var(--muted);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-number {
    font-weight: 900;
    font-size: 1.25rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* FLASH MESSAGES */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: var(--bg);
    padding: 1rem 2rem;
    font-weight: 700;
    border: 2px solid var(--border);
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ANIMATIONS */
.stagger-item {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* UTILITY */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.mt-4 { margin-top: 1rem; }
