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

:root {
    --primary: #2f6f53;
    --primary-dark: #23533d;
    --primary-light: #5d9a7d;
    --secondary: #d87a43;
    --secondary-dark: #b8602d;
    --success: #2f9e6d;
    --danger: #d44b43;
    --warning: #e29d38;
    --info: #4f83d1;
    --bg-body: #eef3ee;
    --bg-body-soft: #f7f4ee;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-strong: #fffdf9;
    --text-main: #1f2c24;
    --text-muted: #667369;
    --border: rgba(42, 67, 53, 0.12);
    --border-strong: rgba(42, 67, 53, 0.18);
    --shadow-sm: 0 6px 18px rgba(31, 45, 35, 0.06);
    --shadow: 0 16px 38px rgba(31, 45, 35, 0.12);
    --shadow-lg: 0 24px 54px rgba(31, 45, 35, 0.16);
    --radius-sm: 0.9rem;
    --radius: 1.25rem;
    --radius-lg: 1.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(120, 168, 136, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(224, 183, 127, 0.16), transparent 22%),
        linear-gradient(145deg, var(--bg-body) 0%, var(--bg-body-soft) 100%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    padding: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.25rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 14px 28px rgba(47, 111, 83, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 18px 34px rgba(47, 111, 83, 0.26);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.84);
    border-color: var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--border-strong);
}

.btn-success, .btn-green, .btn-ok {
    background: linear-gradient(135deg, var(--success), #257a54);
    color: white;
    box-shadow: 0 14px 28px rgba(47, 158, 109, 0.2);
}

.btn-success:hover, .btn-green:hover, .btn-ok:hover {
    filter: saturate(1.04);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b33630);
    color: white;
    box-shadow: 0 14px 28px rgba(212, 75, 67, 0.2);
}

.btn-danger:hover {
    filter: saturate(1.04);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #c47f1e);
    color: white;
}

.btn-sm {
    padding: 0.52rem 0.9rem;
    font-size: 0.84rem;
    border-radius: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.82rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text-main);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    margin-bottom: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(47, 111, 83, 0.45);
    box-shadow: 0 0 0 4px rgba(47, 111, 83, 0.12);
    background: white;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.92);
    text-align: left;
    border-radius: var(--radius);
    overflow: hidden;
}

th {
    background: #f6f8f4;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #fbfcfa;
}

.alert {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.alert-success { background: #ecfdf5; color: #166534; border-color: #a7f3d0; }
.alert-danger { background: #fff1f0; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eef6ff; color: #1d4f91; border-color: #bfdbfe; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success { background: #dff7ea; color: #0f6a43; }
.badge-warning { background: #fff0d6; color: #925c12; }
.badge-danger { background: #ffe2df; color: #9f2f2a; }

.navbar {
    background: linear-gradient(135deg, rgba(35, 83, 61, 0.96), rgba(47, 111, 83, 0.92));
    color: white;
    padding: 1rem 1.4rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.navbar a:hover {
    color: white;
}

.header {
    margin-top: 88px;
    margin-bottom: 28px;
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(216, 122, 67, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(251,246,239,0.9));
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: var(--shadow);
    color: var(--text-main);
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
}

.empty-state,
.box,
.panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hidden { display: none; }

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(47, 111, 83, 0.26);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: rgba(47, 111, 83, 0.05);
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .grid { grid-template-columns: 1fr; }
    .header {
        margin-top: 74px;
        padding: 22px 18px;
    }
    table { display: block; overflow-x: auto; white-space: nowrap; }
}
