/* ── Amplifier — Light & Clean ───────────────────────────────── */

body { background: #f8fafc; font-family: 'Segoe UI', system-ui, sans-serif; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
    width: 220px;
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0; left: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 18px 16px 14px;
    border-bottom: 1px solid #e2e8f0;
}
.sidebar-brand .logo {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -.3px;
}
.sidebar-brand .hotel-name {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.3;
}

.sidebar-nav { padding: 10px 0; flex: 1; }
.sidebar-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #cbd5e1;
    padding: 14px 16px 4px;
    font-weight: 600;
}

.sidebar-nav .nav-link {
    color: #64748b;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13.5px;
    margin: 1px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .12s;
    text-decoration: none;
}
.sidebar-nav .nav-link:hover { background: #f1f5f9; color: #1e293b; }
.sidebar-nav .nav-link.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.sidebar-nav .nav-link.active-ia { background: #f5f3ff; color: #7c3aed; font-weight: 700; }
.sidebar-nav .nav-link .nav-icon { width: 16px; text-align: center; }

/* ── Main layout ─────────────────────────────────────────────── */
.main-content { margin-left: 220px; min-height: 100vh; }

.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-title { font-size: 15px; font-weight: 600; color: #1e293b; }
.topbar-badges { display: flex; gap: 6px; align-items: center; }

.badge-integration {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bi-ga  { background: #f0fdf4; color: #15803d; }
.bi-ads { background: #eff6ff; color: #1d4ed8; }
.bi-pms { background: #fff7ed; color: #c2410c; }

.content-area { padding: 24px; }

/* ── KPI Cards ───────────────────────────────────────────────── */
.kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    height: 100%;
}
.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 600;
}
.kpi-value { font-size: 26px; font-weight: 700; color: #1e293b; line-height: 1; }
.kpi-sub { font-size: 12px; margin-top: 6px; }
.trend-up   { color: #16a34a; }
.trend-down { color: #ef4444; }
.trend-warn { color: #f59e0b; }

/* ── Chart / generic cards ───────────────────────────────────── */
.card-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    height: 100%;
}
.card-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

/* ── Progress bars ───────────────────────────────────────────── */
.prog-bar-wrap { margin-bottom: 12px; }
.prog-bar-label { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.prog-bar-label span:last-child { font-weight: 600; color: #1e293b; }
.prog-bar-bg { background: #e2e8f0; border-radius: 4px; height: 6px; }
.prog-bar-fill { height: 6px; border-radius: 4px; }

/* ── Tables ──────────────────────────────────────────────────── */
.data-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #94a3b8; font-weight: 600; border-top: none; padding: 8px 10px; }
.data-table td { font-size: 13px; color: #475569; padding: 8px 10px; vertical-align: middle; }
.data-table tr:hover td { background: #f8fafc; }

/* ── Campaign suggestion cards ───────────────────────────────── */
.suggestion-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border-left: 4px solid transparent;
    transition: box-shadow .15s;
}
.suggestion-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.suggestion-card.urgente   { border-left-color: #ef4444; }
.suggestion-card.recomendado { border-left-color: #f97316; }
.suggestion-card.oportunidade { border-left-color: #eab308; }
.suggestion-card.positivo  { border-left-color: #22c55e; }

.sug-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.sug-badge.urgente    { background: #fef2f2; color: #dc2626; }
.sug-badge.recomendado { background: #fff7ed; color: #ea580c; }
.sug-badge.oportunidade { background: #fefce8; color: #ca8a04; }
.sug-badge.positivo   { background: #f0fdf4; color: #15803d; }

.sug-title { font-size: 15px; font-weight: 600; color: #1e293b; margin: 8px 0 6px; }
.sug-reasoning { font-size: 13px; color: #64748b; line-height: 1.6; }
.sug-reasoning li { margin-bottom: 3px; }
.sug-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sug-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
}
.sug-tag.budget  { background: #eff6ff; color: #1d4ed8; }
.sug-tag.roas    { background: #f0fdf4; color: #15803d; }
.sug-tag.janela  { background: #fff7ed; color: #c2410c; }
.sug-tag.canal   { background: #f5f3ff; color: #6d28d9; }

/* ── Heatmap calendar ────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-name { font-size: 10px; text-align: center; color: #94a3b8; font-weight: 600; padding: 2px 0; }
.cal-cell {
    aspect-ratio: 1;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    cursor: default;
    min-height: 36px;
}
.cal-cell .day-num { font-size: 11px; font-weight: 700; }
.cal-cell .day-pct { font-size: 9px; }
.occ-high { background: #dcfce7; color: #15803d; }
.occ-med  { background: #fef9c3; color: #a16207; }
.occ-low  { background: #fee2e2; color: #b91c1c; }
.occ-none { background: #f1f5f9; color: #94a3b8; }
.cal-empty { background: transparent; }

/* ── Weather cards ───────────────────────────────────────────── */
.weather-card {
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.weather-icon { font-size: 36px; }
.weather-temp { font-size: 22px; font-weight: 700; color: #1e293b; }
.weather-week { font-size: 11px; color: #64748b; font-weight: 600; margin-bottom: 6px; }
.weather-desc { font-size: 11px; color: #94a3b8; }

/* ── IA page header ──────────────────────────────────────────── */
.ia-header {
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.ia-header h4 { color: #5b21b6; font-weight: 700; margin-bottom: 6px; }
.ia-header p  { color: #6b7280; font-size: 13px; margin: 0; }
.ia-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    margin-right: 4px;
}

/* ── Filters (static pills) ──────────────────────────────────── */
.filter-pills { display: flex; gap: 6px; margin-bottom: 20px; }
.filter-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: default;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
}
.filter-pill.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ── Misc ────────────────────────────────────────────────────── */
.section-divider { height: 1px; background: #e2e8f0; margin: 8px 0 20px; }
.text-muted-sm { font-size: 12px; color: #94a3b8; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-green  { background: #22c55e; }
.dot-yellow { background: #f59e0b; }
.dot-red    { background: #ef4444; }
.dot-gray   { background: #cbd5e1; }

/* ── Workspace Switcher ──────────────────────────────────────── */
.ws-switcher { padding: 10px 12px 10px; border-bottom: 1px solid #e2e8f0; }

.ws-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 6px 8px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .12s, border-color .12s, box-shadow .12s;
}
.ws-btn::after { display: none; } /* remove Bootstrap chevron */
.ws-btn:hover  { background: #f1f5f9; border-color: #cbd5e1; }
.ws-btn:focus  { outline: none; box-shadow: 0 0 0 2px #bfdbfe; }

.ws-avatar {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -.3px;
}
.ws-av-blue   { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.ws-av-cyan   { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.ws-av-purple { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.ws-av-green  { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }

.ws-meta  { flex: 1; min-width: 0; }
.ws-name  { font-size: 12px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-sector{ font-size: 10px; color: #94a3b8; margin-top: 1px; }

.ws-chevron {
    color: #94a3b8; font-size: 12px; flex-shrink: 0;
    transition: transform .18s;
}
.ws-btn[aria-expanded="true"] .ws-chevron { transform: rotate(180deg); }

/* Dropdown */
.ws-dropdown {
    width: 240px;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(14,25,41,.12), 0 2px 8px rgba(14,25,41,.06);
    padding: 8px;
    margin-top: 6px !important;
    left: 0 !important;
}
.ws-dd-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #94a3b8;
    font-weight: 600;
    padding: 2px 8px 8px;
}
.ws-dd-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 9px;
    text-decoration: none;
    cursor: pointer;
    transition: background .1s;
}
.ws-dd-item:hover { background: #f8fafc; }
.ws-dd-item.ws-active { background: #eff6ff; }

.ws-dd-name   { font-size: 12.5px; font-weight: 500; color: #1e293b; line-height: 1.3; }
.ws-dd-role   { font-size: 10.5px; color: #94a3b8; }
.ws-dd-check  { color: #2563eb; font-size: 15px; margin-left: auto; flex-shrink: 0; }

.ws-inactive-pill {
    font-size: 10px; font-weight: 600;
    background: #fef3c7; color: #92400e;
    border-radius: 8px; padding: 1px 7px;
    margin-left: auto; flex-shrink: 0; white-space: nowrap;
}

.ws-dd-divider { height: 1px; background: #f1f5f9; margin: 6px 0; }

.ws-dd-add {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 9px;
    text-decoration: none;
    cursor: pointer;
    transition: background .1s;
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 500;
}
.ws-dd-add:hover { background: #eff6ff; color: #1d4ed8; }
.ws-dd-add-icon {
    width: 30px; height: 30px;
    border: 1.5px dashed #bfdbfe;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #2563eb; font-size: 15px; flex-shrink: 0;
}

/* ── Token Wallet ────────────────────────────────────────────── */
.token-wallet {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
}
.token-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.token-wallet-label { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: #94a3b8; font-weight: 600; }
.token-balance { font-size: 12px; font-weight: 700; color: #1e293b; }
.token-bar-bg { background: #e2e8f0; border-radius: 4px; height: 5px; margin-bottom: 6px; }
.token-bar-fill { height: 5px; border-radius: 4px; background: #2563eb; }
.token-bar-fill.warn { background: #f59e0b; }
.token-bar-fill.critical { background: #ef4444; }
.token-wallet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.token-wallet-days { font-size: 10.5px; color: #64748b; }
.btn-recharge {
    font-size: 10.5px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 5px;
}
.btn-recharge:hover { background: #dbeafe; color: #1d4ed8; }

/* ── Location tags ───────────────────────────────────────────── */
.location-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px 10px; }
.location-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ── Integration badges new ──────────────────────────────────── */
.bi-meta   { background: #eff6ff; color: #1d4ed8; }
.bi-tiktok { background: #f5f3ff; color: #6d28d9; }

/* ── Topbar token chip ───────────────────────────────────────── */
.token-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
}
.token-chip .token-chip-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
}

/* ── Events banner ───────────────────────────────────────────── */
.events-banner {
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.event-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #fde047;
    color: #854d0e;
    white-space: nowrap;
}

/* ── Tokens page ─────────────────────────────────────────────── */
.wallet-card {
    background: linear-gradient(135deg, #1d54c4 0%, #1e40af 100%);
    border-radius: 14px;
    padding: 24px;
    color: #fff;
}
.wallet-balance-label { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; }
.wallet-balance-value { font-size: 38px; font-weight: 700; letter-spacing: -1px; margin: 4px 0; }
.wallet-balance-sub { font-size: 12px; opacity: .75; }
.wallet-action-btn {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    backdrop-filter: blur(4px);
}
.inactivity-notice {
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 10px;
    padding: 14px 16px;
}
.module-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.module-row:last-child { border-bottom: none; }
.module-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.module-name { font-size: 13px; font-weight: 500; color: #1e293b; }
.module-cost { font-size: 11px; color: #94a3b8; }
.module-tokens { font-size: 13px; font-weight: 700; color: #1e293b; margin-left: auto; white-space: nowrap; }
