/* ============================================================
   KLIKY — CSS Admin Panel
   Fiel ao design original PHP
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary:        #FFDE59;
    --primary-light:  #FEF9C3;
    --primary-dark:   #EAB308;
    --secondary:      #262626;
    --accent:         #FFDE59;

    --gradient-main:  linear-gradient(135deg, #262626 0%, #111827 100%);
    --gradient-soft:  linear-gradient(135deg, #FEF9C3 0%, #FFFBEA 100%);

    --sidebar-w: 260px;
    --topbar-h: 64px;

    --bg:         #F9FAFB;
    --surface:    #FFFFFF;
    --surface-2:  #F8F7FF;
    --border:     #E5E7EB;
    --border-light: #F3F4F6;

    --text:       #111827;
    --text-sec:   #6B7280;
    --text-muted: #9CA3AF;

    --success: #10B981;
    --warning: #F59E0B;
    --danger:  #EF4444;
    --info:    #3B82F6;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow:    0 4px 16px rgba(0,0,0,.07);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.1);

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; width: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; width: 100%; }
a { color: #1F2937; text-decoration: none; transition: var(--transition); }
a:hover { color: #111827; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.admin-layout {
    display: flex;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
}

/* ── SIDEBAR FLUTUANTE (Substituída por Apple Liquid Glass Popover Menu) ── */
.sidebar {
    display: none !important;
}

.sidebar-logo {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124,58,237,.4);
}

.sidebar-logo-text {
    font-size: 15px;
    font-weight: 800;
    color: #222;
    line-height: 1.2;
    white-space: nowrap;
}

.sidebar-logo-sub {
    font-size: 10px;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.sidebar-section {
    padding: 8px 12px;
    margin-bottom: 4px;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 8px 4px;
    white-space: nowrap;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    white-space: nowrap;
}

.sidebar-link:hover { background: #F3F4F6; color: #111; }
.sidebar-link.active { background: #EDF2FF; color: var(--primary); font-weight: 600; }

.sidebar-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    white-space: nowrap;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid #F0F0F0;
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-name { font-size: 13px; font-weight: 600; color: #222; white-space: nowrap; }
.sidebar-user-role { font-size: 11px; color: #777; white-space: nowrap; }

.link-text { white-space: nowrap; }

/* ── Topbar (Apple Liquid Glass Floating Islands) ── */
.topbar {
    height: 52px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 14px;
    margin: 14px 0 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    pointer-events: none;
}

.topbar-left,
.topbar-right {
    pointer-events: auto;
    height: 48px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(28px) saturate(190%) brightness(102%);
    -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(102%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 1px 3px 0 rgba(0, 0, 0, 0.02), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-right:empty {
    display: none;
}

.topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.topbar-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-sec);
    transition: var(--transition);
}
.topbar-btn:hover { background: rgba(255, 255, 255, 0.95); color: var(--primary); transform: translateY(-1px); }

/* ── Main content ── */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content {
    flex: 1;
    padding: 28px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* ── Page Header ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 { font-size: 22px; font-weight: 800; }
.page-header-sub { font-size: 14px; color: var(--text-sec); margin-top: 2px; font-weight: 400; }

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.stat-icon.violet { background: #EDE9FE; }
.stat-icon.pink   { background: #FCE7F3; }
.stat-icon.green  { background: #D1FAE5; }
.stat-icon.amber  { background: #FEF3C7; }

.stat-num { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-sec); font-weight: 500; }

/* ── Table ── */
.table-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: none;
    border: 1px solid #F0F0F0;
    overflow: hidden;
}

.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }

.data-table th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    user-select: none;
}
.data-table th:hover { color: var(--text); }

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: 14px;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }

/* ── Forms ── */
.form-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.form-control::placeholder { color: var(--text-muted); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--gradient-main); color: white; box-shadow: 0 3px 12px rgba(124,58,237,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.4); color: white; }
.btn-ghost   { background: var(--bg); color: var(--text-sec); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-danger  { background: var(--danger); color: white; }
.btn-danger:hover { background: #DC2626; color: white; }
.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { width: 34px; height: 34px; padding: 0; }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700;
}
.badge-pendente   { background: #FEF3C7; color: #92400E; }
.badge-confirmada { background: #D1FAE5; color: #065F46; }
.badge-cancelada  { background: #FEE2E2; color: #991B1B; }
.badge-concluida  { background: #EDE9FE; color: #5B21B6; }
.badge-no-show    { background: #FEE2E2; color: #7C2D12; }

/* ── Alert / Flash ── */
.alert {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    min-width: 280px;
    max-width: 90vw;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    cursor: pointer;
    user-select: none;
}
.alert.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.alert.hide { transform: translateX(-50%) translateY(-100px); opacity: 0; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal {
    background: var(--surface);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.96) translateY(18px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    scrollbar-width: none;
}
.modal::-webkit-scrollbar { display: none; }
.modal-overlay.open .modal { transform: scale(1) translateY(0); opacity: 1; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px;
    border-radius: var(--radius);
    border: none; background: var(--bg);
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-sec);
    transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body   { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Paginação ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}
.pagination a, .pagination span {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    color: var(--text-sec);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination span.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Search bar ── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.search-bar input {
    border: none; background: transparent; outline: none;
    font-size: 14px; font-family: var(--font); color: var(--text);
    min-width: 200px;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ── Colab card styles ── */
.colab-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}
.colab-card:hover { box-shadow: var(--shadow); border-color: var(--border); }

.colab-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
}
.colab-header:hover { background: #fafafa; }

.colab-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: white; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.colab-info { flex: 1; min-width: 0; }
.colab-nome { font-weight: 700; font-size: 15px; color: var(--text); }
.colab-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.colab-body { padding: 0 24px 24px; border-top: 1px solid var(--border-light); background: #fefefe; }
.colab-body.collapsed { display: none; }

.horario-grid { display: grid; gap: 8px; margin-top: 16px; }
.horario-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}
.horario-row:hover { border-color: var(--border); }
.horario-row label { min-width: 90px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); }
.horario-row input[type="time"] {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 12px;
    font-size: 13px; background: var(--surface); color: var(--text); outline: none;
    font-family: var(--font); font-weight: 600;
}
.horario-row input[type="time"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.horario-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.horario-sep { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.horario-row.inactive { opacity: 0.5; }

.servico-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.servico-chip {
    background: #EDE9FE; color: var(--primary-dark); border-radius: 20px;
    padding: 4px 12px; font-size: 12px; font-weight: 600;
}

.alert-info-box {
    background: #EFF6FF; border-left: 4px solid #3B82F6; border-radius: var(--radius);
    padding: 12px 16px; font-size: 13px; color: #1d4ed8; margin-bottom: 20px;
}

/* ── Global confirm modal (sidebar includes) ── */
#modal-confirmacao .modal-body { padding: 32px 24px 24px; }

/* ── Responsive ── */
.admin-main {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1024px) {
    .topbar { margin: 10px 0 0 0; padding: 0 16px; width: 100%; box-sizing: border-box; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .topbar { margin: 8px 0 0 0; padding: 0 12px; width: 100%; box-sizing: border-box; height: 50px; }
    .topbar-title { font-size: 15px; }
    .stats-grid { grid-template-columns: 1fr; }
    .main-content { padding: 14px 12px 24px; }
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   APPLE LIQUID GLASS MENU POPOVER (iOS Context Menu Style)
   ============================================================ */

.topbar-left {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001;
}

.btn-topbar-title {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 14.5px;
    color: #111827;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-topbar-title:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 4px 12px rgba(0, 0, 0, 0.07);
}

.btn-topbar-title:active,
.btn-topbar-title.menu-open {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.apple-menu-chevron {
    font-size: 11px;
    color: #64748B;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-topbar-title.menu-open .apple-menu-chevron {
    transform: rotate(180deg);
    color: #111827;
}

/* ── Apple Liquid Glass Popover ── */
.apple-glass-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 295px;
    max-width: calc(100vw - 28px);
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(40px) saturate(220%) brightness(105%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(105%) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 24px;
    box-shadow: 
        inset 0 1.5px 2px 0 rgba(255, 255, 255, 1),
        0 24px 60px -10px rgba(0, 0, 0, 0.16),
        0 8px 24px -4px rgba(0, 0, 0, 0.06);
    padding: 10px;
    z-index: 10005;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top left;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s;
    pointer-events: none;
    overflow: hidden;
}

.apple-glass-popover.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── Header da Conta no Menu ── */
.apple-glass-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 2px 8px rgba(0,0,0,0.03);
}

.apple-glass-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: #FFF;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.apple-glass-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apple-glass-salon-name {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apple-glass-user-role {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
    margin-top: 2px;
}

/* ── Lista de Navegação ── */
.apple-glass-nav-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.apple-glass-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    color: #1E293B !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer !important;
    user-select: none;
    border: 1px solid transparent;
    pointer-events: auto !important;
    z-index: 10006;
}

.apple-glass-nav-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
    transform: translateX(3px);
}

.apple-glass-nav-item:hover .apple-nav-icon {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.apple-glass-nav-item:active {
    transform: scale(0.97);
    background: rgba(0, 0, 0, 0.08) !important;
}

.apple-glass-nav-item.active {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255,255,255,1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.apple-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.apple-nav-label {
    flex: 1;
    white-space: nowrap;
}

.apple-nav-badge {
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 9999px;
    margin-left: auto;
}

.apple-nav-check {
    margin-left: auto;
    font-size: 15px;
    color: #3B82F6;
    font-weight: 800;
}

/* ── Divisórias e Ações Rápidas ── */
.apple-glass-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.07);
    margin: 8px 4px;
}

.apple-glass-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.apple-glass-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    color: #475569 !important;
    font-size: 13.5px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    width: 100%;
    text-align: left;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font);
    pointer-events: auto !important;
    z-index: 10006;
}

.apple-glass-action-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0F172A !important;
    transform: translateX(3px);
}

.apple-glass-action-item.danger {
    color: #DC2626 !important;
}
.apple-glass-action-item.danger:hover {
    background: rgba(254, 226, 226, 0.85) !important;
    color: #B91C1C !important;
    border-color: rgba(254, 202, 202, 0.8);
}

/* ── Overlay invisível para fechar ao clicar fora (sem escurecer a página) ── */
.apple-glass-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto;
}
.apple-glass-backdrop.open {
    display: block;
}
