/* Melumi Business panel — Bootstrap 5 + Melumi green, close to the legacy Volour Business look. */
:root {
    --biz-green: #1a472d;
    --biz-green-2: #1f5d39;
    --biz-cream: #fbf3ea;
    --biz-line: #e7e2d9;
}

body { background: var(--biz-cream); color: #23282f; }

.btn-primary {
    color: #fff !important;
    background-color: var(--biz-green) !important;
    border-color: var(--biz-green) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--biz-green-2) !important;
    border-color: var(--biz-green-2) !important;
}
.text-green { color: var(--biz-green); }

.biz-nav { background: #fff; border-bottom: 1px solid var(--biz-line); box-shadow: 0 1px 2px rgba(45,35,20,.05); }
.biz-brand { font-weight: 800; color: var(--biz-green); letter-spacing: -.02em; }
.biz-brand span { font-weight: 400; color: #8c9199; }
.biz-main { padding-top: 1.5rem; padding-bottom: 3rem; }

/* Login (mirrors legacy signin.css layout) */
.biz-signin { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.biz-signin__card { width: 100%; max-width: 380px; background: #fff; border-radius: 18px;
    box-shadow: 0 10px 40px rgba(45,35,20,.12); padding: 2rem 1.75rem; text-align: center; }
.biz-signin__logo { font-size: 2rem; font-weight: 800; color: var(--biz-green); margin-bottom: 1.5rem; }
.biz-signin__logo span { font-weight: 400; color: #8c9199; }

/* Admin table */
.admin-toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-toolbar .form-control { max-width: 340px; }
.clinic-table tbody tr { cursor: pointer; }
.clinic-table tbody tr:hover { background: #f4efe7; }
.mono { font-variant-numeric: tabular-nums; color: #8c9199; }

/* Dashboard sections */
.section-card { background: #fff; border: 1px solid var(--biz-line); border-radius: 16px; padding: 1.25rem 1.35rem; margin-bottom: 1.25rem; }
/* The four small editors sit in a 2×2 grid on desktop, stacked on phone. */
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 0 1.25rem; }
.dash-grid > .section-card { margin-bottom: 1.25rem; }
@media (min-width: 768px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
.section-card h4 { font-weight: 800; margin-bottom: .25rem; }
.section-card .hint { color: #8c9199; font-size: .9rem; margin-bottom: 1rem; }

/* Gallery (drag + drop) */
.gallery-grid { display: flex; flex-wrap: wrap; gap: .8rem; }
.gallery-item { position: relative; width: 190px; height: 120px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--biz-line); background: #eee; cursor: grab; }
.gallery-item.dragging { opacity: .4; }
.gallery-item.drop-target { outline: 3px solid var(--biz-green); outline-offset: -3px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gallery-item__del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
    border: none; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gallery-item__handle { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.5); color: #fff;
    border-radius: 6px; padding: 1px 6px; font-size: .7rem; }
.gallery-add { width: 190px; height: 120px; border-radius: 12px; border: 2px dashed #c8ccc8; background: #fff;
    display: grid; place-items: center; color: var(--biz-green); font-weight: 700; cursor: pointer; }
.logo-preview { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 1px solid var(--biz-line); background: #eee; }

/* True category-card preview. The values MIRROR the customer app's card image
   (melumi.css .clinic-card__img): square aspect, cover-crop, 12px radius, gradient
   placeholder. Keep the two in sync if the app card ever changes. */
.cardpreview { width: 190px; flex: none; }
.cardpreview img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 12px; background: linear-gradient(135deg,#eee,#e3e3e3); }
.cardpreview__caption { display: block; margin-top: .35rem; font-size: .8rem; color: #8c9199; }

/* Employee rows (dashboard Behandlere box) — circular preview like the app */
.emp-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .2rem; border-bottom: 1px solid var(--biz-line); }
.emp-row:last-child { border-bottom: none; }
.emp-row__img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--biz-line); background: #eee; flex: none; }
.emp-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.emp-row__active { margin-bottom: 0; flex: none; }
.emp-row .btn { flex: none; white-space: nowrap; }

/* Category picker rows */
.cat-row { display: flex; align-items: center; justify-content: space-between; padding: .6rem .2rem; border-bottom: 1px solid var(--biz-line); }
.cat-row:last-child { border-bottom: none; }

/* Cropper dialog */
.crop-area { width: 100%; height: 340px; background: #111; }
.crop-hint { color: #8c9199; font-size: .85rem; }

/* Toast */
.biz-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 1080;
    background: var(--biz-green); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.biz-toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.biz-toast.err { background: #b23b4e; }
