:root {
    --earth:   #3d2b1f;
    --coffee:  #2c1a0e;
    --caramel: #b5682a;
}

* { box-sizing: border-box; }

body { font-family: 'Baloo 2', sans-serif; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    transition: all 0.18s;
    text-decoration: none;
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
}
.sidebar-link.active {
    background: var(--caramel);
    color: #fff;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}
.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body { padding: 16px 20px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    background: #fafafa;
    border-bottom: 1px solid #f3f4f6;
}
.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafafa; }

.toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: 0.2s;
    cursor: pointer;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--caramel); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Baloo 2', sans-serif;
    cursor: pointer;
    transition: all 0.18s;
    border: none;
    text-decoration: none;
    line-height: 1;
}
.btn-primary-admin {
    background: var(--caramel);
    color: #fff;
}
.btn-primary-admin:hover { background: #9d5a24; }
.btn-secondary-admin {
    background: #fff;
    color: var(--earth);
    border: 1.5px solid #e5e7eb;
}
.btn-secondary-admin:hover { background: #f9fafb; border-color: #d1d5db; }
.btn-danger-admin {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}
.btn-danger-admin:hover { background: #fee2e2; }

.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--earth);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Baloo 2', sans-serif;
    background: #fff;
    color: var(--earth);
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    appearance: none;
}
.form-input:focus {
    border-color: var(--caramel);
    box-shadow: 0 0 0 3px rgba(181,104,42,0.1);
}
textarea.form-input { resize: vertical; min-height: 90px; }

.img-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.18s, background 0.18s;
    cursor: pointer;
}
.img-upload-area:hover, .img-upload-area.drag-over {
    border-color: var(--caramel);
    background: rgba(181,104,42,0.03);
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.w-full { width: 100%; }
.justify-center { justify-content: center; }
.hidden { display: none !important; }
