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

:root {
    --bg: #f8f5f1;
    --surface: #ffffff;
    --surface-soft: #fffaf3;
    --text: #2d241d;
    --muted: #7d6b5d;
    --primary: #c86b2a;
    --primary-strong: #b3581c;
    --primary-soft: #ffe6d2;
    --danger: #c2412d;
    --success: #1f7a43;
    --border: #eadfce;
    --ring: rgba(200, 107, 42, 0.22);
    --shadow: 0 18px 40px rgba(64, 34, 12, 0.08);
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 520px at 10% -10%, #ffe8d5 0%, transparent 60%),
        radial-gradient(900px 480px at 90% -20%, #ffe2c7 0%, transparent 62%),
        var(--bg);
    line-height: 1.45;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 22px 34px;
}

.container.small {
    max-width: 470px;
}

.container.full {
    max-width: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    margin: 0;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 28px;
    font-weight: 800;
}

h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

h3 {
    font-size: 15px;
    font-weight: 700;
    color: #5f4a3c;
    margin: 16px 0 10px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.topbar.warm {
    margin: 0;
    padding: 18px 26px;
    border-bottom: 1px solid #f0d8c2;
    background: linear-gradient(180deg, #ffe5cf 0%, #ffefe0 100%);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.warm-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    margin: 0;
    background: #fffdf9;
    box-shadow: none;
}

.warm-card + .warm-card {
    border-top: 1px solid var(--border);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

label {
    display: block;
    margin-bottom: 12px;
    color: #5e4d40;
    font-size: 13px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
textarea,
select,
input[type="file"] {
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
    font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
}

.inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    font-size: 13px;
    color: var(--muted);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
    box-shadow: 0 8px 18px rgba(200, 107, 42, 0.28);
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    opacity: .96;
}

.button.ghost {
    background: var(--primary-soft);
    color: #6f3b16;
    box-shadow: none;
}

.button.danger {
    background: linear-gradient(180deg, #d5573f 0%, #bf3f29 100%);
    box-shadow: 0 8px 16px rgba(191, 63, 41, 0.22);
}

.button.mini {
    padding: 7px 10px;
    font-size: 12px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.alert {
    margin: 10px 0 14px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.alert.error {
    background: #fde9e5;
    color: #8a2f21;
    border: 1px solid #f7c8be;
}

.alert.success {
    background: #e5f7ec;
    color: var(--success);
    border: 1px solid #bce9ce;
}

.muted {
    color: var(--muted);
    font-size: 12px;
    margin: 6px 0 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

th, td {
    text-align: left;
    padding: 11px 10px;
    border-bottom: 1px solid #efe6da;
    font-size: 13px;
}

th {
    background: #fff3e7;
    color: #70472c;
    font-weight: 700;
}

tr:hover td {
    background: #fffaf4;
}

@media (max-width: 950px) {
    .grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
}

