/* HamamSpaAdvisor - İşletme Paneli Stilleri */

:root {
    --biz-bg: #f0f2f5;
    --biz-sidebar: #ffffff;
    --biz-primary: #1a2744;
    --biz-accent: #c9a84c;
    --biz-text: #374151;
    --biz-border: #e5e7eb;
    --biz-white: #ffffff;
    --biz-radius: 12px;
    --biz-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

body.business-body {
    font-family: 'Inter', sans-serif;
    background: var(--biz-bg);
    color: var(--biz-text);
    font-size: 0.875rem;
}

.business-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.business-sidebar {
    width: 260px;
    background: var(--biz-sidebar);
    border-right: 1px solid var(--biz-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.business-sidebar .sidebar-brand {
    padding: 24px 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--biz-primary);
    border-bottom: 1px solid var(--biz-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-sidebar .sidebar-brand span { color: var(--biz-accent); }
.business-sidebar .sidebar-brand i { color: var(--biz-accent); }

.business-sidebar .sidebar-nav { padding: 16px 12px; }

.business-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #6b7280;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.business-sidebar .sidebar-nav a:hover { background: #f3f4f6; color: var(--biz-primary); }
.business-sidebar .sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(26,39,68,0.08), rgba(201,168,76,0.08));
    color: var(--biz-primary);
    font-weight: 600;
}
.business-sidebar .sidebar-nav a i { width: 18px; text-align: center; }

/* Main */
.business-main { flex: 1; margin-left: 260px; }

.business-topbar {
    background: var(--biz-white);
    border-bottom: 1px solid var(--biz-border);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.business-topbar .sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.business-topbar .topbar-right { display: flex; gap: 16px; }
.business-topbar .topbar-right a {
    font-size: 0.85rem;
    color: var(--biz-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.business-topbar .topbar-right a:hover { color: var(--biz-accent); }

.business-content { padding: 24px; max-width: 1200px; }

.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-title-bar h1 { font-size: 1.5rem; font-weight: 700; color: var(--biz-primary); }
.page-title-bar p { color: #6b7280; font-size: 0.85rem; }

/* Business Info Banner */
.business-info-banner {
    background: linear-gradient(135deg, var(--biz-primary), #2a3a5c);
    color: #fff;
    border-radius: var(--biz-radius);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.business-info-banner h3 { font-size: 1.2rem; margin-bottom: 4px; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--biz-white);
    border-radius: var(--biz-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--biz-shadow);
    border: 1px solid var(--biz-border);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.green { background: #d1fae5; color: #059669; }
.stat-icon.gold { background: #fef3c7; color: #d97706; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }

.stat-info strong { display: block; font-size: 1.4rem; font-weight: 700; color: var(--biz-primary); }
.stat-info span { font-size: 0.75rem; color: #6b7280; }

/* Cards */
.business-card-panel {
    background: var(--biz-white);
    border-radius: var(--biz-radius);
    padding: 24px;
    box-shadow: var(--biz-shadow);
    border: 1px solid var(--biz-border);
}

.business-card-panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--biz-primary); }

.business-table { width: 100%; border-collapse: collapse; }
.business-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 2px solid var(--biz-border);
}
.business-table td {
    padding: 12px;
    border-bottom: 1px solid var(--biz-border);
    vertical-align: middle;
}

/* Buttons */
.btn-business-primary {
    padding: 9px 20px;
    background: var(--biz-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-business-primary:hover { background: #2a3a5c; color: #fff; }

.btn-business-outline {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-business-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 4px 8px; font-size: 0.75rem; border-radius: 6px; border: none; cursor: pointer; color: #fff; }
.btn-primary { background: #2563eb; }
.btn-danger { background: #dc2626; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 6px; }
.form-control, .form-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--biz-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
}
.form-control:focus, .form-select:focus { outline: none; border-color: var(--biz-accent); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.form-select-sm { padding: 4px 8px; font-size: 0.75rem; }

/* Native fallback — JS yüklenmeden önce */
.form-select:not(.custom-select-native) {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23101B33' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Custom select — custom-select.css ile panel formlarında */
.business-content .custom-select { max-width: 100%; }
.business-content .app-datepicker { max-width: 100%; }

.upload-form { display: flex; gap: 12px; align-items: flex-end; }
.upload-form .form-control { flex: 1; }

/* Gallery Manager */
.gallery-grid-manager {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.gallery-item-manager {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item-manager img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item-manager .delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(220,38,38,0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Reviews */
.review-panel-item { border-left: 3px solid var(--biz-accent); }
.review-panel-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 12px; }
.review-panel-user { display: flex; gap: 12px; align-items: center; }
.review-avatar-sm {
    width: 40px; height: 40px; background: var(--biz-primary); color: var(--biz-accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.review-panel-date { display: block; font-size: 0.75rem; color: #6b7280; }
.review-panel-rating { text-align: right; }
.review-panel-text { line-height: 1.7; margin-bottom: 12px; }
.review-reply-form textarea { font-size: 0.85rem; }
.review-reply-box {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Stats Page */
.rating-stats-list, .res-stats-list { display: flex; flex-direction: column; gap: 12px; }
.rating-stat-item, .res-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}
.rating-stat-item .rating-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--biz-accent); border-radius: 4px; }
.res-stat-item { justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--biz-border); }

.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    margin-top: 16px;
}
.trend-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.trend-bar .bar { width: 100%; background: var(--biz-accent); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.3s; }
.trend-bar span { font-size: 0.75rem; font-weight: 600; margin-top: 4px; }
.trend-bar small { font-size: 0.65rem; color: #6b7280; }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tabs a {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    background: var(--biz-white);
    border: 1px solid var(--biz-border);
}
.filter-tabs a.active { background: var(--biz-primary); color: #fff; border-color: var(--biz-primary); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 500; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.85rem; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-warning { background: #fffbeb; color: #92400e; }

.text-muted { color: #6b7280; }

/* Login */
.business-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--biz-primary) 0%, #2a3a5c 100%);
}

.business-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.business-login-card .login-brand {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--biz-primary);
    margin-bottom: 8px;
}
.business-login-card .login-brand span { color: var(--biz-accent); }
.login-subtitle { text-align: center; color: #6b7280; font-size: 0.85rem; margin-bottom: 24px; }
.business-login-card h2 { text-align: center; font-size: 1.1rem; margin-bottom: 4px; color: var(--biz-primary); }
.back-link { display: block; text-align: center; margin-top: 20px; font-size: 0.85rem; color: #6b7280; }

.text-muted { color: #6b7280; }

/* Profile Completion */
.profile-completion-card {
    background: var(--biz-white); border: 1px solid var(--biz-border);
    border-radius: var(--biz-radius); padding: 20px; margin-bottom: 24px;
    box-shadow: var(--biz-shadow);
}
.completion-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.completion-header strong { color: var(--biz-accent); font-size: 1.1rem; }
.completion-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.completion-fill { height: 100%; background: linear-gradient(90deg, var(--biz-primary), var(--biz-accent)); border-radius: 4px; transition: width 0.5s; }
.completion-tip { font-size: 0.8rem; color: #6b7280; margin-top: 8px; margin-bottom: 0; }

.quick-action-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 24px; background: var(--biz-white); border: 1px solid var(--biz-border);
    border-radius: var(--biz-radius); text-align: center; color: var(--biz-text);
    transition: var(--transition, all 0.2s); text-decoration: none;
}
.quick-action-card:hover { border-color: var(--biz-accent); box-shadow: var(--biz-shadow); color: var(--biz-primary); }
.quick-action-card i { font-size: 1.5rem; color: var(--biz-accent); }

/* Reservation Status Buttons */
.status-actions { display: flex; gap: 4px; }
.btn-status {
    width: 32px; height: 32px; border-radius: 6px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 0.8rem; color: #fff;
}
.btn-status-confirm { background: #059669; }
.btn-status-complete { background: #2563eb; }
.btn-status-cancel { background: #dc2626; }
.btn-status:hover { opacity: 0.85; color: #fff; }

@media (max-width: 768px) {
    .business-sidebar { transform: translateX(-100%); box-shadow: 0 0 20px rgba(0,0,0,0.1); }
    .business-sidebar.active { transform: translateX(0); }
    .business-main { margin-left: 0; }
    .business-topbar .sidebar-toggle { display: block; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .business-info-banner { flex-direction: column; gap: 12px; text-align: center; }
}
