/* ============================================================
   WeMeeting — Sistema de Design Unificado
   3 Temas: Purple (padrão), Blue, Yellow
   Font: Inter (Google Fonts)
   ============================================================ */

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

/* ============================================================
   VARIÁVEIS DO TEMA PADRÃO (Purple)
   ============================================================ */
:root {
    --primary:        #8B7DC4;
    --primary-light:  #EDE8F8;
    --primary-dark:   #6D5FAF;
    --primary-rgb:    139, 125, 196;

    --bg:             #F2EFF9;
    --bg-card:        #FFFFFF;
    --bg-sidebar:     #FFFFFF;

    --text-primary:   #2D2840;
    --text-secondary: #7B7490;
    --text-muted:     #A89EC8;

    --border:         #E8E3F3;
    --shadow-sm:      0 2px 8px rgba(139, 125, 196, 0.08);
    --shadow:         0 4px 20px rgba(139, 125, 196, 0.12);
    --shadow-lg:      0 8px 40px rgba(139, 125, 196, 0.18);

    --radius-xs:      6px;
    --radius-sm:      10px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --radius-xl:      28px;

    --spacing-xs:     4px;
    --spacing-sm:     8px;
    --spacing-md:     16px;
    --spacing-lg:     24px;
    --spacing-xl:     36px;

    --transition:     all 0.22s ease;

    --sidebar-width:  260px;
}

/* ============================================================
   TEMA 1: PURPLE (padrão — já definido em :root)
   ============================================================ */
body.theme-purple {
    --primary:        #8B7DC4;
    --primary-light:  #EDE8F8;
    --primary-dark:   #6D5FAF;
    --primary-rgb:    139, 125, 196;
    --bg:             #F2EFF9;
}

/* ============================================================
   TEMA 2: BLUE
   ============================================================ */
body.theme-blue {
    --primary:        #5B91D4;
    --primary-light:  #E3EFF9;
    --primary-dark:   #4178B8;
    --primary-rgb:    91, 145, 212;
    --bg:             #EDF3FB;
    --text-primary:   #1E2D40;
    --text-secondary: #5E789A;
    --text-muted:     #90AECB;
    --border:         #D9E8F5;
}

/* ============================================================
   TEMA 3: YELLOW
   ============================================================ */
body.theme-yellow {
    --primary:        #C49B30;
    --primary-light:  #FEF5DD;
    --primary-dark:   #A07E1E;
    --primary-rgb:    196, 155, 48;
    --bg:             #FDFAF0;
    --text-primary:   #2D2410;
    --text-secondary: #7A6A3C;
    --text-muted:     #C4AA6E;
    --border:         #F0E6C4;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ============================================================
   LAYOUT PRINCIPAL (Sidebar + Conteúdo)
   ============================================================ */
.wm-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.wm-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: fixed;          /* fixa na lateral */
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 200;             /* acima de tudo no mobile */
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    will-change: transform;   /* GPU hint para animação suave */
}

.wm-sidebar::-webkit-scrollbar { width: 4px; }
.wm-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Logo */
.wm-sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border);
}

.wm-sidebar-logo h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.wm-sidebar-logo p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

/* User info */
.wm-sidebar-user {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.wm-sidebar-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.wm-sidebar-user-info {
    overflow: hidden;
}

.wm-sidebar-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wm-sidebar-user-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav Menu */
.wm-sidebar-nav {
    flex: 1;
    padding: 16px 16px;
    list-style: none;
}

.wm-sidebar-nav li { margin-bottom: 4px; }

.wm-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.wm-sidebar-nav a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

.wm-sidebar-nav a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.wm-sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* Theme Switcher */
.wm-theme-switcher {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.wm-theme-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.wm-theme-options {
    display: flex;
    gap: 8px;
}

.wm-theme-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.wm-theme-dot:hover { transform: scale(1.12); }
.wm-theme-dot.active { border-color: var(--text-primary); }

.wm-theme-dot.dot-purple { background: linear-gradient(135deg, #8B7DC4, #6D5FAF); }
.wm-theme-dot.dot-blue   { background: linear-gradient(135deg, #5B91D4, #4178B8); }
.wm-theme-dot.dot-yellow { background: linear-gradient(135deg, #D4A840, #A07E1E); }

/* Logout */
.wm-sidebar-logout {
    padding: 16px 16px;
    border-top: 1px solid var(--border);
}

/* Botão de fechar sidebar (mobile) */
/* Funciona porque position:fixed cria stacking context — */
/* não é necessário position:relative no <aside> */
.wm-sidebar-close {
    display: none;
    position: absolute;       /* relativo ao viewport fixado da sidebar */
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
}
.wm-sidebar-close:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary);
}


.wm-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    width: 100%;
    background: #FEF0F0;
    color: #D14040;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.wm-logout-btn:hover {
    background: #FEE2E2;
    color: #B91C1C;
    text-decoration: none;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.wm-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--spacing-xl);
    min-height: 100vh;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.wm-page-header {
    margin-bottom: var(--spacing-xl);
}

.wm-page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.wm-page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.wm-page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Gradient hero header (para páginas internas de agenda) */
.wm-hero-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.wm-hero-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.wm-hero-header p  { font-size: 13px; opacity: 0.85; }

/* ============================================================
   CARDS
   ============================================================ */
.wm-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.wm-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* Stat Card */
.wm-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.wm-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.wm-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
}

.wm-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.wm-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Agenda Card */
.wm-agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.wm-agenda-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wm-agenda-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.wm-agenda-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.wm-agenda-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.wm-agenda-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Section title */
.wm-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1;
    white-space: nowrap;
}

.wm-btn:hover { text-decoration: none; }

.wm-btn-primary {
    background: var(--primary);
    color: #fff;
}

.wm-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.wm-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.wm-btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.wm-btn-ghost {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1.5px solid var(--primary-dark);
}

.wm-btn-ghost:hover {
    background: var(--border);
    color: var(--text-primary);
}

.wm-btn-danger {
    background: #FEF0F0;
    color: #D14040;
    border: 1.5px solid #FDD;
}

.wm-btn-danger:hover {
    background: #FEE2E2;
    color: #B91C1C;
}

.wm-btn-sm { padding: 7px 14px; font-size: 12px; }
.wm-btn-lg { padding: 14px 28px; font-size: 16px; }
.wm-btn-block { width: 100%; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.wm-form-group {
    margin-bottom: 20px;
}

.wm-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
}

.wm-form-group label .required {
    color: #E53935;
    margin-left: 3px;
}

.wm-input,
.wm-select,
.wm-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}

.wm-input:focus,
.wm-select:focus,
.wm-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.wm-input::placeholder { color: var(--text-muted); }
.wm-textarea { resize: vertical; min-height: 100px; }

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

.wm-form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.wm-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wm-form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wm-form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ============================================================
   AUTOCOMPLETE CHIPS (Acompanhantes)
   ============================================================ */
.wm-autocomplete-wrapper {
    position: relative;
}

.wm-chips-input-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    min-height: 46px;
    cursor: text;
    transition: var(--transition);
}

.wm-chips-input-box.focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.wm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.wm-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition);
}

.wm-chip-remove:hover { opacity: 1; }

.wm-chips-text-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    min-width: 120px;
    flex: 1;
}

.wm-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.wm-autocomplete-dropdown.open { display: block; }

.wm-autocomplete-option {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.wm-autocomplete-option:hover,
.wm-autocomplete-option.highlighted {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.wm-autocomplete-option .option-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.wm-autocomplete-empty {
    padding: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================================
   ALERTS
   ============================================================ */
.wm-alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
}

.wm-alert-success {
    background: #F0FDF4;
    color: #16A34A;
    border-left-color: #16A34A;
}

.wm-alert-error {
    background: #FEF2F2;
    color: #DC2626;
    border-left-color: #DC2626;
}

.wm-alert-warning {
    background: #FFFBEB;
    color: #D97706;
    border-left-color: #D97706;
}

.wm-alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

/* ============================================================
   BADGES
   ============================================================ */
.wm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.wm-badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.wm-badge-success { background: #DCFCE7; color: #15803D; }
.wm-badge-danger  { background: #FEE2E2; color: #B91C1C; }
.wm-badge-warning { background: #FEF9C3; color: #92400E; }
.wm-badge-muted   { background: #F1F5F9; color: #64748B; }

/* ============================================================
   DIVIDER
   ============================================================ */
.wm-divider {
    height: 1px;
    background: var(--border);
    margin: var(--spacing-lg) 0;
}

/* ============================================================
   STATUS COLORS
   ============================================================ */
.wm-status-verde   { background: #DCFCE7; color: #15803D; }
.wm-status-amarelo { background: #FEF9C3; color: #92400E; }
.wm-status-vermelho{ background: #FEE2E2; color: #B91C1C; }

/* ============================================================
   CALENDAR
   ============================================================ */
.wm-calendar-table { width: 100%; border-collapse: collapse; }

.wm-calendar-table th {
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wm-calendar-table td {
    height: 80px;
    border: 1px solid var(--border);
    vertical-align: top;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-secondary);
}

.wm-calendar-table td:hover { background: var(--primary-light); }
.wm-calendar-table td.outro-mes { background: var(--bg); color: var(--text-muted); opacity: 0.5; cursor: default; }
.wm-calendar-table td.selecionado { background: var(--primary); color: #fff; }
.wm-calendar-table td.com-agendamento { background: var(--primary-light); }
.wm-calendar-table td.selecionado .dia-num { color: #fff; font-weight: 700; }

.wm-cal-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin: 2px 1px;
}

.wm-calendar-table td.selecionado .wm-cal-dot { background: #fff; }

/* ============================================================
   LISTA DE AGENDAMENTOS (sidebar do calendário)
   ============================================================ */
.wm-event-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.wm-event-item:hover { background: var(--primary-light); }

.wm-event-time  { font-size: 12px; font-weight: 600; color: var(--primary); }
.wm-event-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin: 3px 0; }
.wm-event-local { font-size: 12px; color: var(--text-muted); }

.wm-event-actions { display: flex; gap: 6px; margin-top: 8px; }

.wm-event-actions a {
    flex: 1;
    padding: 5px 8px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-xs);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.wm-event-actions a:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* ============================================================
   AUTH PAGES (Login, Registro, Esqueceu senha...)
   ============================================================ */
.wm-auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    padding: 20px;
}

.wm-auth-card {
    background: var(--bg-card);
    padding: 44px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
}

.wm-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.wm-auth-logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.wm-auth-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.wm-auth-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.wm-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.wm-auth-footer a {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================================
   MOBILE HEADER (para páginas com sidebar)
   ============================================================ */
.wm-mobile-header {
    display: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99;
    align-items: center;
    justify-content: space-between;
}

.wm-mobile-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.wm-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 22px;
    padding: 4px;
}

/* ============================================================
   TABLES
   ============================================================ */
.wm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wm-table thead tr {
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

.wm-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wm-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.wm-table tbody tr:hover { background: var(--bg); }

/* ============================================================
   SWITCH TOGGLE
   ============================================================ */
.wm-switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.wm-switch input { opacity: 0; width: 0; height: 0; }
.wm-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #D1D5DB;
    border-radius: 24px;
    transition: var(--transition);
}
.wm-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition);
}
.wm-switch input:checked + .wm-switch-slider { background: var(--primary); }
.wm-switch input:checked + .wm-switch-slider::before { transform: translateX(22px); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.wm-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.wm-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.wm-empty h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.wm-empty p { font-size: 13px; }

/* ============================================================
   OVERLAY (escurece o conteúdo quando sidebar abre no mobile)
   ============================================================ */
.wm-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 199;          /* abaixo da sidebar (200) */
    backdrop-filter: blur(1px);
    transition: opacity 0.28s ease;
    opacity: 0;
}
.wm-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* ============================================================
   MOBILE HEADER TITLE
   ============================================================ */
.wm-mobile-header-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================================
   RESPONSIVE — tablet / mobile
   ============================================================ */
@media (max-width: 1024px) {
    /* Main não tem mais margin-left — a sidebar vira overlay */
    .wm-main {
        margin-left: 0 !important;
        padding-top: 70px;
    }

    /* Sidebar escorrega para dentro quando .open */
    .wm-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .wm-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.18);
    }

    /* Botão X aparece quando sidebar aberta */
    .wm-sidebar.open .wm-sidebar-close { display: flex; }

    /* Header mobile aparece */
    .wm-mobile-header { display: flex; }

    /* Formulários em coluna única */
    .wm-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wm-main { padding: 16px 14px; padding-top: 70px; }
    .wm-auth-card { padding: 28px 20px; }
    .wm-stat-grid { grid-template-columns: 1fr 1fr; }
    .wm-agenda-grid { grid-template-columns: 1fr; }
    .wm-hero-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .wm-page-header-row { flex-direction: column; align-items: flex-start; }
    .wm-hero-header h1 { font-size: 18px; }
}

@media (max-width: 420px) {
    .wm-main { padding: 12px 10px; padding-top: 68px; }
    .wm-sidebar { width: 100vw; } /* sidebar ocupa tela toda em telas muito pequenas */
}
