/* ==========================================
   BERBER RANDEVUM PRO - STYLES
   ========================================== */

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    min-height: 100vh;
    color: #334155;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.loading-icon {
    font-size: 4rem;
    animation: bounce 1s infinite;
}

.loading-screen p {
    color: #64748b;
    margin-top: 1rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); }
    50% { transform: translateY(0); }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-dark { background: #1e293b; color: white; }
.btn-green { background: #22c55e; color: white; }
.btn-blue { background: #3b82f6; color: white; }
.btn-orange { background: #f97316; color: white; }
.btn-red { background: #ef4444; color: white; }

/* ==========================================
   CARDS & CONTAINERS
   ========================================== */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 24px;
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    font-size: 2rem;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.header-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-free { background: #f3f4f6; color: #475569; }
.badge-pro { background: #dbeafe; color: #1d4ed8; }
.badge-premium { background: #fef3c7; color: #b45309; }

/* ==========================================
   TABS
   ========================================== */
.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    margin: -8px -24px 16px -24px;
    padding: 0 24px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab:hover {
    background: #f8fafc;
}

.tab.active {
    border-bottom-color: #1e293b;
    font-weight: 600;
}

/* ==========================================
   FORMS & INPUTS
   ========================================== */
.input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input:focus {
    outline: none;
    border-color: #1e293b;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #475569;
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-width: 450px;
    width: 100%;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .btn {
    flex: 1;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 100;
    animation: slideUp 0.3s ease;
}

.toast-success { background: #22c55e; color: white; }
.toast-error { background: #ef4444; color: white; }
.toast-warning { background: #f97316; color: white; }

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================
   STEP INDICATOR (Müşteri Akışı)
   ========================================== */
.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #e2e8f0;
    color: #94a3b8;
}

.step.active .step-number {
    background: #1e293b;
    color: white;
}

.step.completed .step-number {
    background: #22c55e;
    color: white;
}

.step-label {
    font-size: 12px;
    margin-top: 8px;
    color: #94a3b8;
}

.step.active .step-label,
.step.completed .step-label {
    font-weight: 500;
    color: #334155;
}

.step-line {
    flex: 1;
    height: 4px;
    margin: 0 8px;
    border-radius: 2px;
    background: #e2e8f0;
}

.step-line.active {
    background: #1e293b;
}

/* ==========================================
   SERVICE & STAFF CARDS
   ========================================== */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-card,
.staff-card {
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    text-align: left;
}

.service-card:hover,
.staff-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card.selected,
.staff-card.selected {
    border-color: #1e293b;
    background: #f8fafc;
}

.staff-card {
    text-align: center;
    position: relative;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.staff-avatar {
    font-size: 3rem;
    margin-bottom: 12px;
}

.patron-badge {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* ==========================================
   DAY PICKER
   ========================================== */
.day-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.day-picker {
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    background: white;
    transition: all 0.2s;
}

.day-picker:hover {
    background: #f1f5f9;
}

.day-picker.selected {
    background: #1e293b;
    color: white;
}

.day-picker.today {
    border-color: #3b82f6;
}

.day-name {
    font-size: 12px;
    opacity: 0.75;
}

.day-number {
    font-weight: 700;
    font-size: 1.125rem;
}

/* ==========================================
   TIME SLOTS
   ========================================== */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.slot {
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    background: white;
    transition: all 0.2s;
}

.slot:hover:not(.booked):not(.blocked) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.slot.selected {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}

.slot.booked {
    background: #fee2e2;
    color: #991b1b;
    cursor: not-allowed;
    border-color: #fecaca;
}

.slot.blocked {
    background: #fef3c7;
    color: #92400e;
    cursor: not-allowed;
    border-color: #fde68a;
}

.slot-status {
    font-size: 11px;
    margin-top: 2px;
}

/* ==========================================
   APPOINTMENT CARDS
   ========================================== */
.appointment-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: white;
    margin-bottom: 12px;
}

.appointment-card.status-booked {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.appointment-card.status-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.appointment-card.status-cancelled {
    background: #fef2f2;
    border-color: #fecaca;
}

.appointment-card.status-noshow {
    background: #fff7ed;
    border-color: #fed7aa;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.appointment-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #475569;
}

.appointment-customer {
    font-weight: 600;
}

.appointment-phone {
    font-size: 14px;
    color: #64748b;
}

.appointment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.appointment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.appointment-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.risk-badge {
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* ==========================================
   VIEW TOGGLE (Günlük/Haftalık)
   ========================================== */
.view-toggle {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.view-toggle-btn {
    padding: 8px 16px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.view-toggle-btn:hover {
    background: #f1f5f9;
}

.view-toggle-btn.active {
    background: #1e293b;
    color: white;
}

/* ==========================================
   WEEKLY CALENDAR
   ========================================== */
.weekly-calendar {
    overflow-x: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.weekly-grid {
    display: grid;
    grid-template-columns: 50px repeat(7, minmax(100px, 1fr));
    min-width: 800px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.weekly-header {
    background: #f8fafc;
    font-weight: 600;
    padding: 12px 4px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    font-size: 12px;
}

.weekly-header.today-col {
    background: #dbeafe;
    color: #1d4ed8;
}

.weekly-time {
    background: #f8fafc;
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}

.weekly-cell {
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 2px;
    min-height: 50px;
    background: white;
    cursor: pointer;
    transition: background 0.15s;
}

.weekly-cell:hover {
    background: #f8fafc;
}

.weekly-cell.today-col {
    background: #eff6ff;
}

.weekly-cell.today-col:hover {
    background: #dbeafe;
}

.weekly-apt {
    font-size: 10px;
    padding: 3px 5px;
    border-radius: 4px;
    margin-bottom: 2px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: transform 0.1s;
}

.weekly-apt:hover {
    transform: scale(1.02);
}

.weekly-apt.status-booked {
    background: #dbeafe;
    color: #1e40af;
    border-left: 2px solid #3b82f6;
}

.weekly-apt.status-done {
    background: #dcfce7;
    color: #166534;
    border-left: 2px solid #22c55e;
}

.weekly-apt.status-noshow {
    background: #ffedd5;
    color: #9a3412;
    border-left: 2px solid #f97316;
}

.weekly-apt.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border-left: 2px solid #ef4444;
}

.blocked-indicator {
    font-size: 9px;
    color: #92400e;
    text-align: center;
    padding: 2px;
}

/* ==========================================
   CALENDAR NAVIGATION
   ========================================== */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-nav-title {
    font-weight: 600;
    text-align: center;
}

/* ==========================================
   STATS CARDS
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
}

.stat-card.blue { background: #eff6ff; }
.stat-card.green { background: #f0fdf4; }
.stat-card.orange { background: #fff7ed; }

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
}

.stat-card.blue .stat-value { color: #2563eb; }
.stat-card.green .stat-value { color: #16a34a; }
.stat-card.orange .stat-value { color: #ea580c; }

.stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ==========================================
   QUICK STATS (Header inline)
   ========================================== */
.quick-stats {
    display: flex;
    gap: 24px;
}

.quick-stat {
    text-align: center;
}

.quick-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.quick-stat-label {
    font-size: 12px;
    color: #64748b;
}

/* ==========================================
   UPCOMING APPOINTMENTS ALERT
   ========================================== */
.upcoming-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.upcoming-alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.upcoming-alert-title {
    font-weight: 600;
    color: #92400e;
}

.upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.upcoming-time {
    font-weight: 600;
}

.upcoming-time.urgent {
    color: #dc2626;
}

.upcoming-time.soon {
    color: #ea580c;
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ==========================================
   CUSTOMER LIST
   ========================================== */
.customer-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
    margin-bottom: 12px;
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.customer-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-phone {
    font-size: 14px;
    color: #64748b;
}

.customer-stats {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.customer-notes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #475569;
}

/* ==========================================
   STAFF LIST
   ========================================== */
.staff-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
    margin-bottom: 12px;
}

.staff-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-info-avatar {
    font-size: 2.5rem;
}

.staff-info-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-info-spec {
    font-size: 14px;
    color: #64748b;
}

.staff-phone {
    font-size: 14px;
    margin-top: 4px;
}

.staff-phone.has-phone {
    color: #16a34a;
}

.staff-phone.no-phone {
    color: #ea580c;
}

/* ==========================================
   SERVICE LIST
   ========================================== */
.service-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
    margin-bottom: 16px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-item-icon {
    font-size: 2rem;
}

.service-item-name {
    font-weight: 600;
}

.service-item-duration {
    font-size: 12px;
    color: #64748b;
}

.service-prices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ==========================================
   SETTINGS
   ========================================== */
.settings-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
    margin-bottom: 16px;
}

.settings-section-title {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   CHECKBOX CUSTOM
   ========================================== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ==========================================
   SUMMARY BOX
   ========================================== */
.summary-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.summary-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-label {
    color: #64748b;
}

.summary-value {
    font-weight: 500;
}

.summary-value.price {
    color: #16a34a;
}

/* ==========================================
   CONSENT BOX
   ========================================== */
.consent-box {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.consent-box.green {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.consent-box.blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.consent-text {
    font-size: 14px;
}

.consent-box.green .consent-text { color: #166534; }
.consent-box.blue .consent-text { color: #1d4ed8; }

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
    height: 16px;
    overflow: hidden;
}

.progress-fill {
    background: #3b82f6;
    height: 100%;
    transition: width 0.3s ease;
}

/* ==========================================
   AVATAR SELECTOR
   ========================================== */
.avatar-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avatar-btn {
    font-size: 2rem;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-btn:hover {
    background: #f1f5f9;
}

.avatar-btn.selected {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* ==========================================
   ICON SELECTOR
   ========================================== */
.icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icon-btn {
    font-size: 1.5rem;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #f1f5f9;
}

.icon-btn.selected {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* ==========================================
   UTILITIES
   ========================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-white { color: white; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-green-600 { color: #16a34a; }
.text-blue-600 { color: #2563eb; }
.text-orange-600 { color: #ea580c; }
.text-red-600 { color: #dc2626; }

.bg-slate-100 { background: #f1f5f9; }
.bg-green-100 { background: #dcfce7; }
.bg-blue-100 { background: #dbeafe; }
.bg-orange-100 { background: #ffedd5; }
.bg-red-100 { background: #fee2e2; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.px-4 { padding-left: 16px; padding-right: 16px; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }

.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
    
    .selection-grid {
        grid-template-columns: 1fr;
    }
    
    .day-picker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-stats {
        gap: 16px;
    }
    
    .appointment-header {
        flex-direction: column;
    }
}

@media (min-width: 641px) {
    .hide-desktop { display: none !important; }
}

@media (min-width: 768px) {
    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .day-picker-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================
   DRAG & DROP
   ========================================== */
.weekly-apt[draggable="true"] {
    cursor: grab;
}

.weekly-apt[draggable="true"]:active {
    cursor: grabbing;
}

.weekly-cell.drag-over {
    background: #dbeafe !important;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.weekly-apt.dragging {
    opacity: 0.5;
}

/* ==========================================
   TEAM CALENDAR - Çoklu Personel Görünümü
   ========================================== */
.team-calendar {
    overflow-x: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.team-grid {
    display: grid;
    min-width: 500px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.team-header {
    background: #f8fafc;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    font-size: 12px;
}

.team-header.team-time-col {
    font-weight: 600;
    color: #64748b;
}

.team-time {
    background: #f8fafc;
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}

.team-cell {
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 4px;
    min-height: 55px;
    background: white;
    cursor: pointer;
    transition: background 0.15s;
}

.team-cell:hover {
    background: #f8fafc;
}

.team-cell.drag-over {
    background: #dbeafe !important;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.team-apt {
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: transform 0.1s;
}

.team-apt:hover {
    transform: scale(1.02);
}

.team-apt[draggable="true"] {
    cursor: grab;
}

.team-apt[draggable="true"]:active {
    cursor: grabbing;
}

.team-apt.status-booked {
    background: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.team-apt.status-done {
    background: #dcfce7;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.team-apt.status-noshow {
    background: #ffedd5;
    color: #9a3412;
    border-left: 3px solid #f97316;
}

.team-apt.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.team-apt-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-apt-service {
    font-size: 10px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   REVENUE REPORTS - Gelir Raporu
   ========================================== */
.report-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.revenue-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.revenue-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
}

.revenue-card.highlight {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
}

.revenue-card.highlight .revenue-label {
    color: #94a3b8;
}

.revenue-card.highlight .revenue-count {
    color: #cbd5e1;
}

.revenue-icon {
    font-size: 28px;
}

.revenue-info {
    flex: 1;
}

.revenue-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.revenue-amount {
    font-size: 20px;
    font-weight: 700;
}

.revenue-count {
    font-size: 11px;
    color: #94a3b8;
}

.report-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.report-section-title {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 14px;
}

.staff-revenue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-revenue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.staff-revenue-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.staff-revenue-medal {
    font-size: 16px;
    width: 20px;
}

.staff-revenue-avatar {
    font-size: 20px;
}

.staff-revenue-name {
    font-weight: 500;
    font-size: 14px;
}

.staff-revenue-bar-container {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    min-width: 80px;
    overflow: hidden;
}

.staff-revenue-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.staff-revenue-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 90px;
}

.staff-revenue-amount {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.staff-revenue-count {
    font-size: 11px;
    color: #64748b;
}

.service-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
}

.service-stat-name {
    flex: 1;
    font-weight: 500;
}

.service-stat-count {
    color: #64748b;
    margin-right: 16px;
}

.service-stat-revenue {
    font-weight: 600;
    color: #22c55e;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.summary-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
}

.summary-stat-label {
    color: #64748b;
}

.summary-stat-value {
    font-weight: 700;
}

/* Period Toggle */
.period-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: #f1f5f9;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    background: #e2e8f0;
}

.period-btn.active {
    background: #1e293b;
    color: white;
}

.revenue-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.revenue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}