/* ===========================================================
   Syrine Tours — Admin styles (plain Bootstrap + native Blazor).
   Scoped under .admin-shell so it never affects the public site.
   =========================================================== */

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #f4f6f8; font-family: var(--font-rubik); }
.admin-side { background: #14211a; color: #c5d0c9; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-brand { padding: 20px 22px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand img { max-height: 34px; }
.admin-brand b { color: #fff; font-size: 18px; }
.admin-nav { padding: 12px; overflow-y: auto; flex: 1; }
.admin-nav .grp { color: #6f8278; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 14px 12px 6px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 8px; color: #c5d0c9; font-size: 14.5px; font-weight: 500; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--primary-color1); color: #fff; }
.admin-nav a .badge { margin-inline-start: auto; background: var(--primary-color2); color: #14211a; border-radius: 20px; font-size: 11px; padding: 1px 8px; }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e6e9ec; padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.admin-topbar .right { display: flex; align-items: center; gap: 16px; }
.admin-content { padding: 26px; }

@media (max-width: 900px){ .admin-shell { grid-template-columns: 1fr; } .admin-side { position: static; height: auto; } }

/* Toolbar */
.app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.app-toolbar-title { display: flex; align-items: center; gap: 12px; }
.app-toolbar-title i { font-size: 24px; color: var(--primary-color1); }
.app-toolbar-title h1 { font-size: 24px; margin: 0; color: var(--title-color); }
.app-toolbar-sub { color: #8a949c; font-size: 14px; }
.app-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 26px; }
.kpi-card { background: #fff; border: 1px solid #e6e9ec; border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.kpi-card .ic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex: none; }
.kpi-card .num { font-size: 26px; font-weight: 700; color: var(--title-color); line-height: 1; }
.kpi-card .lbl { color: #8a949c; font-size: 13px; margin-top: 4px; }

/* Card / panel */
.admin-card { background: #fff; border: 1px solid #e6e9ec; border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.admin-card h2, .admin-card h3 { font-size: 18px; margin-bottom: 16px; color: var(--title-color); }

/* Grid */
.app-grid-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.app-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d9dee2; border-radius: 8px; padding: 7px 12px; min-width: 240px; }
.app-search input { border: none; outline: none; flex: 1; font-size: 14px; }
.app-table { background: #fff; margin: 0; }
.app-table thead th { background: #f0f3f5; font-size: 13px; color: #5c6770; font-weight: 600; border-bottom: 1px solid #e1e6ea; white-space: nowrap; }
.app-table th.sortable { cursor: pointer; user-select: none; }
.app-table th.sortable:hover { color: var(--primary-color1); }
.app-table td { font-size: 14px; border-bottom: 1px solid #eef1f3; }
.app-grid { background: #fff; border: 1px solid #e6e9ec; border-radius: 14px; padding: 16px; }
.app-pager { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: #6b757d; }

/* Badges */
.st-badge { font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; display: inline-block; }
.st-pending { background: #fff3cd; color: #8a6d1b; }
.st-confirmed { background: #d8f3dc; color: #1b6b34; }
.st-cancelled { background: #f8d7da; color: #842029; }
.st-completed { background: #cfe2ff; color: #084298; }
.st-refunded { background: #e2e3e5; color: #41464b; }
.st-paid { background: #d8f3dc; color: #1b6b34; }
.st-unpaid { background: #f8d7da; color: #842029; }
.st-partiallypaid { background: #fff3cd; color: #8a6d1b; }
.st-on { background: #d8f3dc; color: #1b6b34; }
.st-off { background: #e2e3e5; color: #41464b; }

/* Buttons (admin green) */
.btn-admin { background: var(--primary-color1); color: #fff; border: none; border-radius: 8px; padding: 9px 18px; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.btn-admin:hover { background: #538f39; color: #fff; }
.btn-admin.outline { background: #fff; border: 1px solid #d9dee2; color: var(--title-color); }
.btn-admin.outline:hover { border-color: var(--primary-color1); color: var(--primary-color1); background: #fff; }
.btn-admin.danger { background: #d9534f; }
.btn-admin.danger:hover { background: #c33; }
.btn-icon { background: none; border: 1px solid #e1e6ea; border-radius: 7px; width: 32px; height: 32px; cursor: pointer; color: #5c6770; }
.btn-icon:hover { border-color: var(--primary-color1); color: var(--primary-color1); }

/* Forms */
.app-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-field { display: flex; flex-direction: column; gap: 6px; }
.app-field.wide { grid-column: 1 / -1; }
.app-field label { font-size: 13px; font-weight: 600; color: #46505a; }
.app-field .req { color: #d9534f; }
.app-hint { color: #98a2ab; font-size: 12px; }
.app-input, .app-field input:not([type=checkbox]), .app-field select, .app-field textarea {
    width: 100%; border: 1px solid #d9dee2; border-radius: 8px; padding: 9px 11px; font-size: 14px; background: #fff;
}
.app-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.app-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* Modal */
.app-modal-backdrop { position: fixed; inset: 0; background: rgba(16,12,8,.5); z-index: 1100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.app-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.app-modal.wide { max-width: 920px; }
.app-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #eef1f3; }
.app-modal-head h3 { margin: 0; font-size: 18px; }
.app-modal-body { padding: 22px; }
.app-modal-foot { padding: 16px 22px; border-top: 1px solid #eef1f3; display: flex; justify-content: flex-end; gap: 10px; }

/* Repeater rows (itinerary/sessions/extras) */
.repeater-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid #eef1f3; border-radius: 8px; margin-bottom: 8px; }
.repeater-row > * { flex: 1; }
.repeater-row .grow2 { flex: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #eef3f1; border-radius: 20px; padding: 5px 12px; font-size: 13px; }
.chip input { margin: 0; }

/* Upload */
.app-upload-preview { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.app-upload-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.app-upload-preview code { font-size: 11px; color: #8a949c; }

/* Chart */
.app-chart-bars { display: flex; align-items: flex-end; gap: 16px; height: 200px; padding-top: 20px; }
.app-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.app-chart-val { font-size: 12px; color: #6b757d; margin-bottom: 4px; }
.app-chart-bar { width: 70%; max-width: 46px; background: linear-gradient(180deg, var(--primary-color1), #7cc35e); border-radius: 6px 6px 0 0; min-height: 3px; }
.app-chart-label { font-size: 12px; color: #8a949c; margin-top: 8px; }

/* Recent bookings list */
.recent-list .row-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eef1f3; gap: 12px; }
.recent-list .row-item:last-child { border-bottom: none; }
