/* ============================================================
   ACCOUNT / USER PAGES — Element Spa
   ============================================================ */

/* ── Header: Giriş Linki ────────────────────────────────── */
.hdr-login-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    color: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.hdr-login-link:hover { background: rgba(255,255,255,0.12); }

/* ── Header: User Dropdown ──────────────────────────────── */
.hdr-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}
.hdr-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background .2s;
    color: inherit;
}
.hdr-avatar-btn:hover, .hdr-avatar-btn.open { background: rgba(255,255,255,0.1); }
.hdr-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-green, #335c67);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hdr-user-name { font-size: 13px; font-weight: 500; }
.hdr-chevron { font-size: 10px; transition: transform .2s; }
.hdr-avatar-btn.open .hdr-chevron { transform: rotate(180deg); }

.hdr-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    overflow: hidden;
    z-index: 9999;
    animation: ddFadeIn .15s ease;
}
.hdr-dropdown.open { display: block; }
@keyframes ddFadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.hdr-dropdown-header {
    padding: 14px 16px 12px;
    background: #f8faf9;
    border-bottom: 1px solid #eee;
}
.hdr-dropdown-header strong { display: block; font-size: 14px; color: #222; }
.hdr-dropdown-header span { font-size: 12px; color: #888; }

.hdr-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: #333;
    text-decoration: none;
    transition: background .15s;
}
.hdr-dropdown a:hover { background: #f5f5f5; }
.hdr-dropdown a i { width: 16px; color: var(--primary-green, #335c67); }
.hdr-dropdown-divider { height: 1px; background: #eee; margin: 4px 0; }
.hdr-logout { color: #c0392b !important; }
.hdr-logout i { color: #c0392b !important; }

/* ── Login/Register: Alert Boxes ────────────────────────── */
/* (bd-template içinde kullanılan, randevu sayfasıyla uyumlu) */
.bd-alert-error {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    margin: 0 0 15px;
}
.bd-alert-success {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    margin: 8px 0;
}

/* ── Dashboard Layout ───────────────────────────────────── */
.ac-dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 160px);
    background: #f4f6f4;
}

/* Sidebar */
.ac-sidebar {
    background: #fff;
    border-right: 1px solid #eee;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.ac-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.ac-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #335c67, #4a8a7a);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ac-sidebar-user strong { display: block; font-size: 14px; color: #222; line-height: 1.3; }
.ac-sidebar-user span   { font-size: 12px; color: #888; }

.ac-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.ac-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all .15s;
}
.ac-sidebar-nav a i { width: 16px; color: #aaa; }
.ac-sidebar-nav a:hover { background: #f5f5f5; color: #222; }
.ac-sidebar-nav a.active { background: #edf4f2; color: #335c67; font-weight: 600; }
.ac-sidebar-nav a.active i { color: #335c67; }
.ac-nav-cta {
    margin-top: 8px;
    background: linear-gradient(135deg, #335c67, #4a8a7a) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.ac-nav-cta i { color: #fff !important; }
.ac-nav-cta:hover { opacity: .9; }
.ac-nav-logout { color: #c0392b !important; margin-top: 8px; }
.ac-nav-logout i { color: #c0392b !important; }

/* Main */
.ac-main { padding: 36px 40px; }
.ac-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.ac-main-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.ac-main-header h2 i { color: #335c67; }
.ac-customer-code { font-size: 13px; color: #888; }
.ac-customer-code strong { color: #335c67; }

/* ── Profile Form ───────────────────────────────────────── */
.ac-profile-form { display: flex; flex-direction: column; gap: 24px; }
.ac-section-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.ac-section-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.ac-section-desc { font-size: 13px; color: #888; margin: -12px 0 16px; }
.ac-form-actions { display: flex; justify-content: flex-end; }

/* Profile form field helpers (ac-field, ac-row-2, ac-hint, ac-input-wrap, ac-alert, ac-btn-primary) */
.ac-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ac-alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ac-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.ac-form { display: flex; flex-direction: column; gap: 16px; }
.ac-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ac-field { display: flex; flex-direction: column; gap: 6px; }
.ac-field label { font-size: 13px; font-weight: 600; color: #444; }
.ac-field label span { color: #e53e3e; }
.ac-hint { font-size: 11.5px; color: #999; margin-top: 2px; }

.ac-input-wrap { position: relative; display: flex; align-items: center; }
.ac-input-wrap > i:first-child {
    position: absolute; left: 13px; color: #aaa; font-size: 13px; pointer-events: none;
}
.ac-input-wrap input {
    width: 100%;
    padding: 11px 13px 11px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fafafa;
    color: #222;
}
.ac-input-wrap input:focus {
    border-color: #335c67;
    box-shadow: 0 0 0 3px rgba(51,92,103,0.1);
    background: #fff;
}
.ac-input-disabled input { background: #f0f0f0; color: #888; cursor: not-allowed; }
.ac-eye-btn {
    position: absolute; right: 12px;
    background: none; border: none; cursor: pointer;
    color: #aaa; font-size: 14px; padding: 0; line-height: 1;
}
.ac-eye-btn:hover { color: #555; }

.ac-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    background: linear-gradient(135deg, #335c67, #4a8a7a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
    margin-top: 4px;
}
.ac-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.ac-btn-sm { padding: 9px 18px; font-size: 13px; margin-top: 0; }

/* ── Appointments List ──────────────────────────────────── */
.ac-appointments-list { display: flex; flex-direction: column; gap: 20px; }

.ac-appt-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    transition: box-shadow .2s;
}
.ac-appt-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.ac-appt-past { opacity: .6; }

/* Tarih kolonu */
.ac-appt-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 20px 16px;
    background: linear-gradient(160deg, #335c67, #4a8a7a);
    color: #fff;
    text-align: center;
    flex-shrink: 0;
}
.ac-appt-day   { font-size: 32px; font-weight: 800; line-height: 1; }
.ac-appt-month { font-size: 11px; text-transform: uppercase; opacity: .85; margin-top: 3px; letter-spacing: .5px; }
.ac-appt-time  { font-size: 13px; font-weight: 600; margin-top: 8px; opacity: .9; }

/* Detay alanı */
.ac-appt-detail {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 0;
}
.ac-appt-detail-left {
    padding: 20px 24px;
    border-right: 1px solid #f0f0f0;
}
.ac-appt-detail-right {
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* bd-review-row içinde kullanılan stiller (randevu özet sayfasından miras) */
.ac-appt-detail-left .bd-review-section { gap: 6px; display: flex; flex-direction: column; }
.ac-appt-detail-left .bd-review-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #f7f7f7;
    font-size: 13.5px;
}
.ac-appt-detail-left .bd-review-row:last-child { border-bottom: none; }
.ac-appt-detail-left .bd-review-label {
    min-width: 130px;
    color: #888;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ac-appt-detail-left .bd-review-label i { width: 14px; color: #bbb; }
.ac-appt-detail-left .bd-review-value { color: #222; font-weight: 500; flex: 1; }

/* Ekstra tag'ler */
.ac-extra-tag {
    display: inline-block;
    background: #f0f7f5;
    color: #335c67;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px 3px 2px 0;
}

/* Fiyat kutusu (randevu özet sayfasından miras) */
.ac-appt-detail-right .bd-price-box {
    background: #f8faf9;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
}
.ac-appt-detail-right .bd-price-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #555;
}
.ac-appt-detail-right .bd-price-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}
.ac-appt-detail-right .bd-price-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

.ac-appt-status-wrap { display: flex; justify-content: flex-end; }

.ac-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.status-scheduled { background: #eff6ff; color: #1d4ed8; }
.status-completed  { background: #f0fdf4; color: #15803d; }
.status-cancelled  { background: #fef2f2; color: #b91c1c; }
.status-noshow     { background: #fefce8; color: #92400e; }

/* Empty State */
.ac-empty-state {
    text-align: center; padding: 60px 20px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.ac-empty-state i { font-size: 48px; color: #ddd; margin-bottom: 16px; display: block; }
.ac-empty-state h3 { font-size: 18px; color: #444; margin: 0 0 8px; }
.ac-empty-state p  { font-size: 14px; color: #888; margin: 0 0 24px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .ac-dashboard-wrapper { grid-template-columns: 1fr; }
    .ac-sidebar { flex-direction: row; flex-wrap: wrap; padding: 16px 20px; border-right: none; border-bottom: 1px solid #eee; }
    .ac-sidebar-user { border-bottom: none; padding-bottom: 0; }
    .ac-sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .ac-main { padding: 24px 20px; }
    .ac-appt-detail { grid-template-columns: 1fr; }
    .ac-appt-detail-left { border-right: none; border-bottom: 1px solid #f0f0f0; }
}
@media (max-width: 600px) {
    .ac-row-2 { grid-template-columns: 1fr; }
    .ac-section-card { padding: 20px 16px; }
    .hdr-user-name { display: none; }
    .ac-appt-card { flex-direction: column; }
    .ac-appt-date-col { flex-direction: row; justify-content: flex-start; gap: 12px; min-width: unset; width: 100%; padding: 12px 16px; }
    .ac-appt-detail-left .bd-review-label { min-width: 100px; }
}
