/* ==========================================================================
   HEALTH ONE CO. | PAINEL EXECUTIVO MOBILE "HEALTH ONE EM 30 SEGUNDOS"
   VANESSA GOLTZMAN & MINHA AGENDA VIP
   CSS Design System • Ultra-Luxury Dark Mobile First
   Regra Mandatória: Zero Emojis
   ========================================================================== */

:root {
    --bg-base: #0C0A09;
    --bg-surface: #14110F;
    --bg-card: rgba(22, 19, 17, 0.88);
    --bg-card-hover: rgba(30, 26, 23, 0.95);
    --bg-input: #1A1614;

    --gold-primary: #C5A059;
    --gold-light: #DFC07D;
    --gold-dark: #98783A;
    --gold-glow: rgba(197, 160, 89, 0.22);
    
    --bronze-primary: #B87333;
    --bronze-glow: rgba(184, 115, 51, 0.22);

    --emerald-primary: #10B981;
    --emerald-glow: rgba(16, 185, 129, 0.2);
    --emerald-surface: rgba(16, 185, 129, 0.08);

    --amber-primary: #F59E0B;
    --amber-surface: rgba(245, 158, 11, 0.08);

    --rose-primary: #F43F5E;
    --rose-surface: rgba(244, 63, 94, 0.08);

    --text-primary: #F9F9F7;
    --text-secondary: #D5CFBF;
    --text-muted: #8E867A;

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-gold: rgba(197, 160, 89, 0.28);
    --border-gold-strong: rgba(197, 160, 89, 0.6);

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

    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.16);

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 90px; /* espaco para a barra de acoes inferior */
}

/* Scrollbar refinada */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #2C2622;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Container Mobile Master */
.mobile-app-wrapper {
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0 16px;
}

/* ==========================================================================
   HEADER EXECUTIVO
   ========================================================================== */
.executive-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(12, 10, 9, 0.92);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0 12px;
    margin-bottom: 16px;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gold);
    background: #181412;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}

.brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.brand-sub {
    font-size: 10px;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-header-pill:hover, .btn-header-pill:active {
    background: rgba(197, 160, 89, 0.2);
    border-color: var(--gold-primary);
}

.status-telemetry-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.telemetry-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-primary);
    box-shadow: 0 0 8px var(--emerald-primary);
    animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.telemetry-clock {
    color: var(--emerald-primary);
    font-weight: 600;
}

/* ==========================================================================
   SEÇÃO 1: "HEALTH ONE EM 30 SEGUNDOS" (OS 4 KPIS VITAIS)
   ========================================================================== */
.section-block {
    margin-bottom: 24px;
}

.section-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-primary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-tag-badge {
    background: rgba(197, 160, 89, 0.14);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-family: 'IBM Plex Mono', monospace;
}

.section-heading {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

/* Grade de 4 KPIs Executivos */
.kpi-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.kpi-card.highlight-gold {
    border-color: var(--border-gold);
    background: linear-gradient(145deg, rgba(22, 19, 17, 0.95) 0%, rgba(35, 29, 23, 0.9) 100%);
    box-shadow: var(--shadow-gold);
}

.kpi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kpi-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.kpi-card-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.kpi-card-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.kpi-card-subinfo {
    font-size: 11px;
    color: var(--emerald-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Especial: Meta de Faturamento com Barra */
.kpi-banner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: var(--shadow-gold);
}

.banner-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.banner-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.banner-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    background: var(--emerald-surface);
    color: var(--emerald-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
}

.banner-values-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.banner-value-large {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.banner-value-target {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-primary) 50%, #E6C87C 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.banner-footer-notes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Card Destaque: Próxima Sessão Imediata */
.urgent-meeting-card {
    background: linear-gradient(135deg, rgba(28, 23, 19, 0.95) 0%, rgba(18, 15, 13, 0.98) 100%);
    border: 1px solid var(--border-gold-strong);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 20px var(--gold-glow);
}

.urgent-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.urgent-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.urgent-countdown-pill {
    background: rgba(197, 160, 89, 0.18);
    border: 1px solid var(--border-gold);
    color: #FFE6A8;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
}

.urgent-doc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.urgent-doc-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.urgent-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.meta-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.meta-chip.gold {
    border-color: var(--border-gold);
    color: var(--gold-light);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

.urgent-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: 1px solid var(--border-gold-strong);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-action-primary:hover, .btn-action-primary:active {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-action-secondary:hover, .btn-action-secondary:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SEÇÃO 2: "MINHA AGENDA EXECUTIVA VIP"
   ========================================================================== */
.agenda-filter-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
    scrollbar-width: none;
}
.agenda-filter-row::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab.active {
    background: rgba(197, 160, 89, 0.16);
    border-color: var(--border-gold);
    color: var(--gold-light);
}

.agenda-cards-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agenda-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px;
    position: relative;
    transition: var(--transition);
}

.agenda-item-card:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.item-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.item-time-box {
    display: flex;
    flex-direction: column;
}

.item-time-main {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-primary);
}

.item-time-date {
    font-size: 11px;
    color: var(--text-muted);
}

.item-status-pill {
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.item-status-pill.confirmed {
    background: var(--emerald-surface);
    color: var(--emerald-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.item-status-pill.pending {
    background: var(--amber-surface);
    color: var(--amber-primary);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.item-status-pill.blocked {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.item-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.item-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    gap: 8px;
}

.btn-wpp-direct {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wpp-direct:hover, .btn-wpp-direct:active {
    background: rgba(16, 185, 129, 0.22);
}

.btn-meet-direct {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-meet-direct:hover, .btn-meet-direct:active {
    background: rgba(197, 160, 89, 0.24);
}

/* ==========================================================================
   SEÇÃO 3: CENTRAL DE ALERTAS PWA & CONTROLE CONCIERGE
   ========================================================================== */
.alert-box-pwa {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alert-box-info {
    display: flex;
    flex-direction: column;
}

.alert-box-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.alert-box-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-pwa-trigger {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-pwa-trigger:hover, .btn-pwa-trigger:active {
    background: rgba(197, 160, 89, 0.16);
}

/* ==========================================================================
   ATALHOS DA MATRIZ HEALTH ONE
   ========================================================================== */
.matrix-shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.shortcut-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shortcut-card:hover, .shortcut-card:active {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.shortcut-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-primary);
}

.shortcut-desc {
    font-size: 10px;
    color: var(--text-muted);
}

/* ==========================================================================
   BOTTOM TOOLBAR (BARRA FIXA INFERIOR)
   ========================================================================== */
.bottom-executive-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(12, 10, 9, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-gold);
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
}

.bottom-bar-inner {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.btn-bottom-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: 1px solid var(--border-gold-strong);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.btn-bottom-action:hover, .btn-bottom-action:active {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-bottom-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-bottom-secondary:hover, .btn-bottom-secondary:active {
    border-color: var(--border-gold);
    color: var(--text-primary);
}

/* ==========================================================================
   MODAL: NOVO ENCAIXE VIP / BLOQUEIO DE AGENDA
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal-sheet {
    background: #14110F;
    border-top: 1px solid var(--border-gold-strong);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 540px;
    padding: 20px 18px max(24px, env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
}

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

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px var(--gold-glow);
}

/* Toast Notificacao Mobile */
.mobile-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10000;
    background: #181412;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: var(--text-primary);
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 90%;
    width: 380px;
}

.mobile-toast.show {
    transform: translateX(-50%) translateY(0);
}
