/* ===== MÜŞTERİ PANELİ (dashboard, randevu, profil) ortak stilleri ===== */

.page-wrap { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.page-wrap-narrow { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.page-wrap-form { max-width: 800px; margin: 40px auto; padding: 0 20px; }

.page-header { text-align: center; margin-bottom: 30px; }
.page-header h1 { font-size: 32px; margin-bottom: 10px; }
.page-header p { color: #666; }

/* Karşılama banner'ı */
.welcome-banner {
    background: linear-gradient(135deg, #1e3c1e 0%, #2d5a2d 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border-left: 5px solid var(--color-primary);
}
.welcome-banner h1 { font-size: 32px; margin-bottom: 10px; }
.welcome-banner p { opacity: 0.9; font-size: 16px; }

/* Dashboard grid & kartlar */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.dash-card { background: var(--color-white); padding: 30px; border-radius: 15px; box-shadow: var(--shadow-md); }
.dash-card h3 { margin-bottom: 20px; color: #000; }
.dash-card h3 i { color: var(--color-primary); }
.dash-card p { margin-bottom: 10px; color: #666; }
.dash-link { color: var(--color-primary); text-decoration: none; font-weight: 600; }

.dash-action-primary {
    display: block; background: var(--color-primary); color: black; padding: 15px 20px;
    border-radius: 10px; text-decoration: none; font-weight: 600; margin-bottom: 15px;
    transition: all var(--transition-base); text-align: center;
}
.dash-action-secondary {
    display: block; background: #f8f9fa; color: #333; padding: 15px 20px; border-radius: 10px;
    text-decoration: none; font-weight: 600; border: 2px solid var(--color-gray-200);
    transition: all var(--transition-base); text-align: center;
}

.section-block { margin-top: 40px; }
.section-title { margin-bottom: 20px; color: #000; }

.pending-box { background: #fff3cd; border-left: 5px solid var(--color-warning); padding: 20px; border-radius: 0 10px 10px 0; }
.pending-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #ddd; }
.pending-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.pending-item p { margin: 0; font-weight: 600; color: #856404; }
.pending-item .pending-status { margin: 5px 0 0 0; font-size: 14px; color: #856404; }
.badge-pill { background: var(--color-warning); color: white; padding: 3px 10px; border-radius: 15px; font-size: 12px; }

.empty-state { background: #f8f9fa; padding: 40px; border-radius: 15px; text-align: center; border: 2px dashed #ddd; }
.empty-state.large { padding: 60px; }
.empty-state i { font-size: 48px; color: #ccc; margin-bottom: 15px; }
.empty-state.large i { font-size: 64px; }
.empty-state p { color: #666; margin-bottom: 20px; }
.empty-state h3 { color: #666; margin-bottom: 10px; }

/* Randevu kartları (upcoming grid) */
.appt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.appt-mini-card { background: var(--color-white); padding: 25px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-left: 5px solid var(--color-primary); }
.appt-mini-date { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.appt-mini-day { font-size: 24px; font-weight: 700; color: #000; margin: 0; }
.appt-mini-month { font-size: 14px; color: #666; margin: 0; text-transform: uppercase; }
.appt-mini-time { margin: 0 0 10px 0; color: #333; font-weight: 600; }
.appt-mini-time i { color: var(--color-primary); margin-right: 8px; }
.appt-mini-notes { margin: 10px 0 0 0; color: #666; font-size: 14px; font-style: italic; }
.status-chip { background: var(--color-success-bg); color: var(--color-success-text); padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* Tam randevu kartları (appointments-list) */
.aptlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.aptlist-section { margin-bottom: 40px; }
.aptlist-section.past { opacity: 0.9; }
.aptlist-section-title { margin-bottom: 20px; font-size: 20px; padding-bottom: 10px; border-bottom: 2px solid; }
.aptlist-section-title.pending { color: var(--color-warning); border-color: var(--color-warning); }
.aptlist-section-title.upcoming { color: var(--color-success); border-color: var(--color-success); }
.aptlist-section-title.history { color: #6c757d; border-color: #6c757d; }

.apt-card { background: var(--color-white); border-radius: 15px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin-bottom: 20px; }
.apt-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.apt-card-date { font-size: 24px; font-weight: 700; color: #000; margin-bottom: 5px; }
.apt-card-time { color: #666; font-size: 16px; }
.apt-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.apt-card-notes { background: #f8f9fa; padding: 15px; border-radius: 8px; margin: 15px 0; color: #666; font-size: 14px; font-style: italic; }
.apt-card-notes i { color: #999; margin-right: 8px; }
.apt-card-actions { display: flex; gap: 10px; margin-top: 20px; }
.apt-btn-edit, .apt-btn-cancel { flex: 1; text-align: center; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all var(--transition-base); font-family: inherit; }
.apt-btn-edit { background: var(--color-info); color: white; }
.apt-btn-edit:hover { background: #2980b9; }
.apt-btn-cancel { background: var(--color-danger); color: white; width: 100%; }
.apt-btn-cancel:hover { background: #c0392b; }
.apt-locked-note { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; color: #999; font-size: 13px; text-align: center; }

.job-stage-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 15px; font-size: 12px; font-weight: 600; margin-top: 10px; }
.job-stage-note { background: #f0f6ff; border-left: 3px solid var(--color-info); padding: 12px 15px; border-radius: 0 8px 8px 0; margin-top: 12px; font-size: 14px; color: #333; }
.job-stage-note strong { display: block; margin-bottom: 4px; color: var(--color-info); }
.job-stage-updated { font-size: 12px; color: #999; margin-top: 6px; }

/* Değerlendirme kutusu (appointments-list içinde) */
.review-box { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #ddd; }
.review-stars-input { display: flex; gap: 8px; font-size: 28px; margin-bottom: 15px; }
.review-stars-input i { cursor: pointer; color: #ddd; transition: color 0.15s; }
.review-stars-input i.active { color: #f5a623; }
.review-stars-display { color: #f5a623; font-size: 16px; letter-spacing: 2px; }
.review-existing-box { background: #f8f9fa; border-radius: 10px; padding: 15px; }
.review-status-tag { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-left: 8px; }
.review-status-pending { background: var(--color-warning-bg); color: var(--color-warning-text); }
.review-status-approved { background: var(--color-success-bg); color: var(--color-success-text); }
.review-status-rejected { background: var(--color-danger-bg); color: var(--color-danger-text); }
.review-admin-reply { margin-top: 10px; padding: 10px 15px; background: #fff; border-left: 3px solid var(--color-primary); border-radius: 0 8px 8px 0; font-size: 14px; }
.review-admin-reply strong { display: block; color: var(--color-primary-dark); margin-bottom: 3px; }

/* Randevu formu takvimi (booking + edit) */
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; max-height: 300px; overflow-y: auto; padding: 10px; background: #f8f9fa; border-radius: 10px; }
.date-label-wrap { cursor: pointer; }
.date-label-wrap.disabled { cursor: not-allowed; opacity: 0.5; }
.date-input { display: none; }
.date-box { text-align: center; padding: 15px 5px; border: 2px solid var(--color-gray-200); border-radius: 10px; background: white; transition: all var(--transition-base); }
.date-box.is-selected { border-color: var(--color-primary); background: var(--color-success-bg); }
.date-box.is-full { border-color: #ddd; background: #eee; }
.date-box-dow { font-size: 12px; color: #666; text-transform: uppercase; font-weight: 600; }
.date-box-num { font-size: 22px; font-weight: 700; color: #000; margin: 5px 0; }
.date-box-month { font-size: 11px; color: #666; }
.date-box-status { font-size: 10px; margin-top: 5px; font-weight: 600; }
.date-box-status.full { color: var(--color-danger); }
.date-box-status.limited { color: var(--color-warning); }
.date-box-status.free { color: var(--color-success); }
.date-box-status.current { color: var(--color-success); }

.time-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.time-slot-empty { text-align: center; color: #999; padding: 20px; background: #f8f9fa; border-radius: 10px; grid-column: 1/-1; }
.time-slot { padding: 15px; background: white; border: 2px solid var(--color-gray-200); border-radius: 8px; text-align: center; cursor: pointer; transition: all var(--transition-base); }
.time-slot i { color: var(--color-primary); margin-right: 5px; }
.time-slot.is-selected { background: var(--color-success-bg); border-color: var(--color-primary); color: var(--color-success-text); }
.time-slot.is-selected i { color: var(--color-success-text); }
.time-slot-booked { padding: 15px; background: #eee; border: 2px solid #ddd; border-radius: 8px; text-align: center; opacity: 0.6; cursor: not-allowed; }
.time-slot-booked i { color: var(--color-danger); margin-right: 5px; }
.time-slot-booked span { text-decoration: line-through; color: #999; }
.time-slot-booked-tag { font-size: 10px; color: var(--color-danger); margin-top: 3px; }

.summary-box { background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); padding: 20px; border-radius: 10px; margin-bottom: 30px; border-left: 5px solid var(--color-warning); color: #856404; }
.summary-box h4 { margin: 0 0 10px 0; }
.summary-box .badge-inline { display: inline-block; margin-left: 10px; padding: 3px 10px; color: white; border-radius: 12px; font-size: 12px; }

/* Profil sayfası */
.profile-section { background: var(--color-white); border-radius: 15px; box-shadow: var(--shadow-md); margin-bottom: 30px; }
.profile-section.padded { padding: 30px; }
.profile-section.form-padded { padding: 40px; box-shadow: var(--shadow-lg); }
.profile-email-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 25px; border-left: 5px solid var(--color-success); border-radius: 15px; background: white; box-shadow: var(--shadow-md); margin-bottom: 30px; }
.profile-email-card.unverified { border-left-color: var(--color-warning); }
.profile-email-card h3 { margin: 0 0 10px 0; font-size: 18px; }
.profile-email-card h3 i { margin-right: 8px; }
.profile-email-card p { margin: 0; color: #333; font-weight: 600; font-size: 16px; }
.badge-verified { background: var(--color-success-bg); color: var(--color-success-text); padding: 3px 10px; border-radius: 12px; font-size: 12px; margin-left: 10px; }
.badge-pending { background: var(--color-warning-bg); color: var(--color-warning-text); padding: 3px 10px; border-radius: 12px; font-size: 12px; margin-left: 10px; }
.btn-sm { padding: 10px 20px; border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 14px; }

.email-change-section { padding: 30px; border-radius: 15px; box-shadow: var(--shadow-md); margin-bottom: 30px; border-left: 5px solid #9b59b6; background: white; }
.email-change-section h3 { margin: 0 0 20px 0; color: #000; }
.email-change-section h3 i { color: #9b59b6; margin-right: 10px; }
.email-change-info { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; color: #666; }
.email-change-info i { color: #9b59b6; }
.email-change-pending-box { background: #e3f2fd; border: 2px solid #2196f3; padding: 20px; border-radius: 10px; }
.email-change-pending-box h4 { margin: 0 0 15px 0; color: #1565c0; }
.email-change-pending-box p { margin: 5px 0; color: #333; }
.email-change-reviewing-tag { display: inline-block; background: #2196f3; color: white; padding: 5px 15px; border-radius: 15px; font-size: 12px; margin-top: 10px; }
.btn-purple { background: #9b59b6; color: white; }
.btn-purple:hover { background: #8e44ad; }
.email-history-list { display: flex; flex-direction: column; gap: 10px; }
.email-history-item { padding: 15px; border-radius: 8px; font-size: 14px; }
.email-history-item.approved { background: var(--color-success-bg); }
.email-history-item.rejected { background: var(--color-danger-bg); }
.email-history-status { text-transform: uppercase; font-weight: 600; }
.email-history-status.approved { color: var(--color-success); }
.email-history-status.rejected { color: var(--color-danger); }

.form-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.form-grid-postal { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; margin-bottom: 30px; }
.customer-type-options { display: flex; gap: 15px; flex-wrap: wrap; }
.customer-type-option { flex: 1; min-width: 200px; padding: 20px; border: 2px solid var(--color-gray-200); border-radius: 10px; cursor: pointer; background: white; }
.customer-type-option.is-active { border-color: var(--color-primary); background: #f0fff0; }
.customer-type-option input { margin-right: 10px; }
.password-disabled-box { background: var(--color-danger-bg); color: var(--color-danger-text); padding: 20px; border-radius: 8px; text-align: center; }
.password-disabled-box i { font-size: 24px; margin-bottom: 10px; }

@media (max-width: 640px) {
    .apt-card-actions { flex-direction: column; }
    .profile-email-card { flex-direction: column; align-items: flex-start; }
}
