@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --ink: #202321; --ink-soft: #69716d; --canvas: #f6f7f3; --surface: #fff;
    --surface-muted: #eef1eb; --line: #dfe4dc; --accent: #e4573d; --accent-dark: #bd3f2d;
    --accent-soft: #fff0eb; --green: #287c62; --danger: #b63232; --radius: 12px;
    --shadow: 0 12px 30px rgba(31, 39, 34, 0.07); --border: var(--line); --red: var(--accent);
    --red-dark: var(--accent-dark); --red-light: #f17761; --white: #fff; --bg: var(--canvas);
    --text: var(--ink); --subtle: var(--ink-soft); --green-dark: var(--green);
}
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--canvas); font-family: 'DM Sans', sans-serif; line-height: 1.5; }
body > * { position: relative; } a { color: inherit; }
h1, h2, h3, h4, .nav-brand { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.025em; }
button, input, select, textarea { font: inherit; } :focus-visible { outline: 3px solid rgba(228,87,61,.35); outline-offset: 2px; }

.navbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .75rem clamp(1rem, 4vw, 3.5rem); color: #fff; background: var(--ink); box-shadow: 0 4px 18px rgba(32,35,33,.18); position: sticky; top: 0; z-index: 100; }
.nav-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.nav-brand img { width: auto; height: 42px; max-width: 156px; object-fit: contain; flex-shrink: 0; border-radius: 7px; border: 2px solid rgba(255,255,255,.7); }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: .18rem; flex-wrap: wrap; }
.nav-links a { padding: .45rem .65rem; color: #e8ece7; text-decoration: none; border-radius: 7px; font-size: .82rem; font-weight: 600; transition: background .2s, color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.btn-logout { padding: .45rem .7rem; color: #fff; background: var(--accent); border: 0; border-radius: 7px; cursor: pointer; font-size: .82rem; font-weight: 700; transition: background .2s; }
.btn-logout:hover { background: var(--accent-dark); } .nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 23px; height: 2px; margin: 4px; background: #fff; }

.page-container { width: min(1180px, calc(100% - 2rem)); margin: clamp(1.5rem, 4vw, 3rem) auto; flex: 1; }
.card { padding: clamp(1rem, 2.5vw, 1.5rem); margin-bottom: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-wrap { max-width: 620px; } .page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-header h2 { color: var(--ink); font-size: clamp(1.4rem, 3vw, 2rem); } .page-header h2::after { content: ''; display: block; width: 34px; height: 3px; margin-top: .35rem; background: var(--accent); border-radius: 3px; }
.login-wrap { max-width: 430px; margin: clamp(1rem, 8vh, 5rem) auto; } .login-wrap h2 { margin-bottom: .5rem; color: var(--ink); }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-1 { gap: .5rem; } .mt-1 { margin-top: .4rem; } .mt-2 { margin-top: .8rem; } .mt-3 { margin-top: 1.4rem; } .mb-1 { margin-bottom: .6rem; } .text-muted { color: var(--subtle); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .5rem .95rem; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; cursor: pointer; font-size: .88rem; font-weight: 700; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { color: #fff; background: var(--accent-dark); box-shadow: 0 5px 14px rgba(228,87,61,.2); transform: translateY(-1px); } .btn-sm { min-height: 32px; padding: .3rem .65rem; font-size: .8rem; }
.btn-outline { color: var(--accent); background: transparent; border-color: var(--accent); } .btn-outline:hover { color: var(--accent-dark); background: var(--accent-soft); }
.btn-accent { background: var(--accent); } .btn-danger { background: var(--danger); border-color: var(--danger); }
.alert { padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface); font-weight: 600; }
.alert-success { color: var(--green); border-left-color: var(--green); background: #eff9f4; } .alert-error { color: var(--danger); border-left-color: var(--danger); background: #fff1f0; }
.table-wrap { width: 100%; margin-bottom: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9rem; } thead th { padding: .8rem .75rem; color: #fff; background: var(--ink); text-align: left; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
tbody td { padding: .75rem; color: #3e4742; border-top: 1px solid var(--line); } tbody tr:hover { background: #fbfcf9; }
form { margin-top: .5rem; } input, select, textarea { width: 100%; padding: .65rem .75rem; margin-bottom: .8rem; color: var(--ink); background: #fff; border: 1px solid #ccd4ca; border-radius: 8px; font-size: .92rem; transition: border .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,87,61,.13); } label { display: block; margin-bottom: .3rem; color: #414944; font-size: .86rem; font-weight: 700; } .form-group { margin-bottom: .8rem; }
.badge { display: inline-block; padding: .24rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; } .badge-ok { color: var(--green); background: #e4f4ed; } .badge-low { color: #a86610; background: #fff1d8; } .badge-out { color: #59615d; background: var(--surface-muted); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1rem; } .stat-card { padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-value { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; } .stat-label { margin-top: .2rem; color: var(--subtle); font-size: .82rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.product-card, .action-card { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(31,39,34,.04); transition: transform .18s, border .18s, box-shadow .18s; }
.product-card:hover, .action-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); } .product-name { color: var(--ink); font-weight: 700; } .product-price { color: var(--accent-dark); font-size: 1.08rem; font-weight: 700; } .product-stock { color: var(--subtle); font-size: .84rem; } .card-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.booking-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); } .booking-item:last-child { border-bottom: 0; }
.home-banner { display: flex; align-items: center; gap: 1.15rem; padding: clamp(1.2rem, 4vw, 2rem); margin-bottom: 1.4rem; color: #fff; background: linear-gradient(115deg, #202321 0%, #34443c 100%); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.home-banner h1 { margin-bottom: .35rem; font-size: clamp(1.7rem, 4vw, 2.5rem); } .home-banner p { color: #cbd6ce; } .action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; margin-top: 1rem; }
.action-card { text-decoration: none; } .action-icon { font-size: 1.3rem; } .action-label { color: var(--ink); font-weight: 700; } .action-desc { color: var(--subtle); font-size: .86rem; }
.site-footer { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem; color: var(--subtle); border-top: 1px solid var(--line); font-size: .78rem; } .site-footer a { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 850px) { .nav-toggle { display: block; } .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; align-items: stretch; flex-direction: column; padding: .75rem 1rem 1rem; background: var(--ink); box-shadow: 0 12px 16px rgba(32,35,33,.15); } .nav-links.is-open { display: flex; } .nav-links a, .btn-logout { width: 100%; padding: .65rem .75rem; text-align: left; } }
@media (max-width: 600px) { .page-container { width: min(100% - 1.25rem, 1180px); margin-top: 1rem; } .navbar { min-height: 62px; } .nav-brand img { height: 36px; max-width: 132px; } .nav-links { top: 62px; } .home-banner { align-items: flex-start; flex-direction: column; } .booking-item { flex-direction: column; } .booking-item > div:last-child { width: 100%; align-items: flex-start !important; text-align: left !important; } .site-footer { flex-direction: column; align-items: center; gap: .25rem; } }
