@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ============================================================
   VegManage Order System - shared base tokens
   Used by both public (customer) and admin surfaces.
   ============================================================ */

:root {
    --bg: #f7f4ec;
    --surface: #ffffff;
    --surface-soft: #fbf9f2;
    --text: #1d2a20;
    --text-soft: #54624f;
    --text-muted: #8a9487;

    --primary: #1f4a32;
    --primary-dark: #123021;
    --leaf: #4a7a3f;
    --leaf-bright: #72a24f;
    --accent: #e38a3d;
    --accent-dark: #c3582a;

    --border: rgba(29, 42, 32, 0.10);
    --border-soft: rgba(29, 42, 32, 0.06);

    --shadow-sm: 0 4px 14px rgba(29, 42, 32, 0.06);
    --shadow: 0 18px 40px rgba(29, 42, 32, 0.08);
    --shadow-lg: 0 28px 60px rgba(29, 42, 32, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', 'PingFang TC', 'Noto Sans TC', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'palt';
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-family: 'Noto Serif TC', 'Manrope', serif;
    margin: 0;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.card,
.panel,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   Buttons
   ============================================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.94rem;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(18, 48, 33, 0.22);
}

.button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.button-ghost {
    background: transparent;
    color: var(--primary);
    border-color: rgba(31, 74, 50, 0.22);
    box-shadow: none;
}

.button-ghost:hover {
    background: rgba(31, 74, 50, 0.06);
    color: var(--primary-dark);
}

.button-secondary {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 22px rgba(227, 138, 61, 0.3);
}

.button-secondary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.button-home,
.button-ghost-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.button-home {
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary);
    border-color: transparent;
}

.button-home:hover {
    background: #fff;
    color: var(--primary-dark);
}

.button-ghost-light:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* ============================================================
   Form primitives
   ============================================================ */

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 4px rgba(114, 162, 79, 0.18);
}

label {
    display: block;
    font-weight: 600;
    color: var(--text);
}

label > span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: var(--text-soft);
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* ============================================================
   Tables (admin lists)
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   Utility
   ============================================================ */

.eyebrow {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--leaf);
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 74, 50, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.empty-state {
    padding: 48px 32px;
    text-align: center;
    color: var(--text-soft);
}

.grid {
    display: grid;
    gap: 24px;
}

@media (max-width: 900px) {
    .container {
        width: calc(100% - 32px);
    }
}
