@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');
:root {
--bg-primary: #05070c;
--bg-secondary: #0c1119;
--bg-card: #121826;
--bg-elevated: #1a2233;
--accent-primary: #4f7fff; /* Enterprise Blue, refinado */
--accent-secondary: #8b5cf6; /* Violeta premium */
--accent-success: #10b981; /* Emerald Green */
--accent-excellent: #059669; /* Darker Green for Ótimo */
--accent-danger: #ef4444;
--accent-warning: #f59e0b;
--text-primary: #f9fafb;
--text-secondary: #ccd3e0;
--text-muted: #8792a8;
--border-color: #232c42;
--border-color-soft: rgba(148, 163, 184, 0.12);
--glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.045);
--font-display: 'Manrope', 'Inter', sans-serif;
--font-body: 'Inter', sans-serif;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-full: 999px;
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4), var(--glass-highlight);
--shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 14px 28px -16px rgba(0, 0, 0, 0.6), var(--glass-highlight);
--shadow-hover: 0 6px 14px rgba(0, 0, 0, 0.35), 0 26px 48px -20px rgba(0, 0, 0, 0.65), var(--glass-highlight);
--shadow-lg: 0 30px 64px -20px rgba(0, 0, 0, 0.75), var(--glass-highlight);
--gradient-primary: linear-gradient(135deg, #4f7fff, #8b5cf6);
--gradient-secondary: linear-gradient(160deg, #0a0e17, #121826);
--row-even-bg: rgba(255, 255, 255, 0.02);
--focus-ring: 0 0 0 3px rgba(79, 127, 255, 0.24);
--trial-banner-height: 0px; /* atualizado via JS (license-check.js) quando a faixa de teste gratis esta visivel */
}
.light-theme {
--bg-primary: #c7cddb;
--bg-secondary: #eef1f7;
--bg-card: #ffffff;
--bg-elevated: #e3e7f0;
--text-primary: #0f172a;
--text-secondary: #3f4a5e;
--text-muted: #5c6880;
--border-color: #a7afc4;
--border-color-soft: rgba(15, 23, 42, 0.22);
--shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.1);
--shadow: 0 2px 5px rgba(15, 23, 42, 0.1), 0 12px 26px -12px rgba(15, 23, 42, 0.32);
--shadow-hover: 0 8px 18px rgba(15, 23, 42, 0.14), 0 24px 42px -14px rgba(15, 23, 42, 0.36);
--shadow-lg: 0 26px 56px -16px rgba(15, 23, 42, 0.38);
--gradient-secondary: linear-gradient(160deg, #f6f8fb, #dfe4ee);
--row-even-bg: rgba(15, 23, 42, 0.05);
}
.light-theme .stat-icon.otimo { background: rgba(16, 185, 129, 0.16); }
.light-theme .stat-icon.bom { background: rgba(59, 130, 246, 0.16); }
.light-theme .stat-icon.medio { background: rgba(245, 158, 11, 0.16); }
.light-theme .stat-icon.ruim { background: rgba(239, 68, 68, 0.16); }
.light-theme .stat-icon.neutral { background: rgba(92, 104, 128, 0.14); }
.light-theme .progress-container { background: #d8dce6; }
.light-theme .chart-container,
.light-theme .stat-card,
.light-theme .filters,
.light-theme .data-table-container,
.light-theme .upload-section {
border: 1px solid var(--border-color);
}
.light-theme .section-controls button:hover {
background: rgba(0, 0, 0, 0.05);
}
/* Header sempre escuro, igual ao modo escuro, mesmo com .light-theme ativo:
   redefine aqui as variaveis de texto/borda para os valores do tema escuro,
   direto no <header>, independente da classe .light-theme estar no body.
   Sem isso, o header ficava com fundo escuro fixo mas texto escuro (herdado
   do tema claro) por cima, quase invisivel. */
header {
--text-primary: #f8fafc;
--text-secondary: #cbd5e1;
--text-muted: #94a3b8;
--border-color: #29334a;
--bg-card: #141b2c;
--bg-elevated: #1b2438;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: var(--font-body);
}
html {
height: auto;
}
body {
background-color: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
display: flex;
flex-direction: column;
overflow-y: auto;
height: auto;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
.main-container {
flex: 1;
display: flex;
flex-direction: column;
padding: 0;
width: 100%;
min-height: 100vh;
overflow-y: auto;
padding-top: calc(80px + var(--trial-banner-height));
padding-bottom: 90px;
transition: padding-top 0.2s ease;
}
header {
background: #05070c; /* mesma cor do fundo já embutido na logo, pra não sobrar contorno visível */
color: var(--text-primary);
padding: 1rem 0;
border-bottom: 1px solid var(--border-color);
box-shadow: var(--shadow);
position: fixed;
top: var(--trial-banner-height); /* desce automaticamente quando a faixa de teste gratis esta visivel, e volta ao topo (0px) quando ela some */
overflow: hidden;
flex-shrink: 0;
width: 100%;
z-index: 1000;
transition: top 0.2s ease;
}
header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: var(--gradient-primary);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 100%;
}
header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.015em;
}
header h1 i {
color: var(--accent-primary);
}
header h1 .header-logo-icon {
height: 60px;
width: 280px;
object-fit: contain;
flex-shrink: 0;
}
.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.plano-badge-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    margin-right: 14px;
}
.plano-badge-header i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}
.plano-badge-header .plano-badge-nome {
    color: var(--text-primary);
}
.theme-toggle {
    background: var(--gradient-primary);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    box-shadow: 0 4px 10px -4px rgba(59, 130, 246, 0.5);
}
.theme-toggle:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.55);
}
.theme-toggle:active {
    transform: translateY(0) scale(0.96);
}
.theme-toggle:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}
.header-tab-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    height: 30px;
    box-sizing: border-box;
    padding: 0 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: all 0.18s ease;
}
.header-tab-btn i {
    font-size: 0.76rem;
    color: var(--accent-primary);
}
.header-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(59,130,246,0.5);
    background: var(--bg-elevated);
}
.header-tab-btn:active {
    transform: scale(0.97);
}
.header-tab-btn.neon-flash {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.content-area {
    flex: 1;
    overflow-y: visible;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.section-header {
background: var(--gradient-secondary);
color: var(--text-primary);
padding: 1rem 1.75rem;
border-radius: var(--radius-md);
box-shadow: var(--shadow);
border: 1px solid var(--border-color-soft);
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.section-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: var(--gradient-primary);
}
.section-title {
font-family: var(--font-display);
display: flex;
align-items: center;
gap: 0.6rem;
font-size: 1.3rem;
font-weight: 700;
letter-spacing: -0.015em;
}
.section-title i {
color: var(--accent-primary);
}
.nora-avatar-icon {
width: 56px;
height: 56px;
flex-shrink: 0;
object-fit: cover;
border-radius: 50%;
}
.section-controls {
display: flex;
gap: 0.5rem;
}
.section-controls button {
background: none;
border: none;
color: var(--text-primary);
font-size: 1rem;
cursor: pointer;
padding: 0.25rem;
border-radius: 4px;
transition: background 0.3s ease;
}
.section-controls button:hover {
background: rgba(255, 255, 255, 0.1);
}
.financial-parent {
background: transparent;
border-radius: var(--radius-lg);
padding: 0;
box-shadow: none;
border: none;
flex-shrink: 0;
}
.dashboard {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.25rem;
height: 50vh;
width: 100%;
}
.financial-dashboard {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 0.9fr 1.1fr;
height: 76vh;
gap: 1.25rem;
}
.marketing-dashboard {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
height: 70vh;
gap: 1.25rem;
}
.trends-dashboard {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr;
height: 40vh;
gap: 1.25rem;
width: 100%;
}
.channel-analysis .dashboard {
height: 40vh;
}
.rfm-parent .dashboard {
height: 40vh;
}
.chart-container {
background: var(--bg-secondary);
padding: 1.1rem 1.25rem 1.25rem;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-xs);
height: 100%;
border: 1px solid var(--border-color-soft);
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}
.chart-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
background: var(--gradient-primary);
opacity: 0.9;
z-index: 1;
}
.chart-container .chart-title {
position: relative;
z-index: 2;
margin-bottom: 0.6rem;
flex-shrink: 0;
}
.chart-container:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-hover);
border-color: rgba(59, 130, 246, 0.28);
}
.chart-wrapper {
flex: 1;
height: 100%;
}
.chart-title {
font-size: 1rem;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
letter-spacing: -0.005em;
}
.chart-title i {
color: var(--accent-primary);
font-size: 0.9em;
}
.rfm-actions {
padding: 1.5rem;
background: var(--bg-secondary);
border-top: 1px solid var(--border-color);
}
.rfm-actions h3 {
color: var(--text-primary);
margin-bottom: 1rem;
font-size: 1.05rem;
font-weight: 600;
}
.rfm-table {
width: 100%;
border-collapse: collapse;
color: var(--text-secondary);
}
.rfm-table th,
.rfm-table td {
padding: 0.75rem;
text-align: left;
border: 1px solid var(--border-color);
}
.rfm-table th {
background: var(--bg-secondary);
color: var(--text-primary);
font-weight: 600;
position: sticky;
top: 0;
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.05em;
z-index: 10;
}
.rfm-table tr:nth-child(even) {
background: var(--row-even-bg);
}
.rfm-table tr:hover {
background: rgba(59, 130, 246, 0.08);
cursor: pointer;
}
.rfm-table tr:nth-child(1) { background: rgba(16, 185, 129, 0.12); }
.rfm-table tr:nth-child(2) { background: rgba(59, 130, 246, 0.12); }
.rfm-table tr:nth-child(3) { background: rgba(139, 92, 246, 0.12); }
.rfm-table tr:nth-child(4) { background: rgba(245, 158, 11, 0.12); }
.rfm-table tr:nth-child(5) { background: rgba(239, 68, 68, 0.12); }
.rfm-table tr:nth-child(6) { background: rgba(148, 163, 184, 0.12); }
.stats-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.25rem;
margin-bottom: 0;
flex-shrink: 0;
}
#stats-resumo {
grid-template-columns: repeat(7, 1fr);
gap: 0.75rem;
margin-bottom: 1rem;
}
#stats-resumo .stat-card {
padding: 0.9rem 0.85rem;
}
#stats-resumo .stat-value {
font-size: 1.05rem;
}
.stat-label {
font-size: 0.625rem;
}
.overview-cards {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 1.25rem;
margin-bottom: 1.5rem;
}
.overview-cards .stat-card {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.overview-cards .stat-change {
color: white;
}
.stat-card {
background: var(--bg-secondary);
padding: 1.35rem 1.4rem;
border-radius: var(--radius-md);
box-shadow: var(--shadow-xs);
text-align: left;
border: 1px solid var(--border-color-soft);
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
position: relative;
overflow: hidden;
}
.stat-card.otimo {
border-left: 3px solid #10b981;
}
.stat-card.bom {
border-left: 3px solid #3b82f6;
}
.stat-card.medio {
border-left: 3px solid var(--accent-warning);
}
.stat-card.ruim {
border-left: 3px solid var(--accent-danger);
}
.stat-card.neutral {
border-left: 3px solid var(--border-color);
}
.stat-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-hover);
border-color: rgba(148, 163, 184, 0.22);
}
.stat-icon {
width: 42px;
height: 42px;
border-radius: var(--radius-md);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.05rem;
margin-bottom: 0.85rem;
transition: transform 0.2s ease;
}
.stat-card:hover .stat-icon {
transform: scale(1.08) rotate(-2deg);
}
.stat-icon.otimo { color: #10b981; background: rgba(16, 185, 129, 0.12); }
.stat-icon.bom { color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
.stat-icon.medio { color: var(--accent-warning); background: rgba(245, 158, 11, 0.12); }
.stat-icon.ruim { color: var(--accent-danger); background: rgba(239, 68, 68, 0.12); }
.stat-icon.neutral { color: var(--text-muted); background: rgba(148, 163, 184, 0.1); }
.stat-value {
font-family: var(--font-display);
font-size: 1.65rem;
font-weight: 800;
margin: 0.2rem 0;
color: var(--text-primary);
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums;
}
.stat-value.otimo { color: #10b981; }
.stat-value.bom { color: #3b82f6; }
.stat-value.medio { color: var(--accent-warning); }
.stat-value.ruim { color: var(--accent-danger); }
.stat-value.neutral { color: var(--text-primary); }
.stat-positive {
color: var(--accent-success);
}
.stat-negative {
color: var(--accent-danger);
}
.stat-change {
font-size: 0.85rem;
font-weight: 600;
margin: 0.2rem 0;
font-variant-numeric: tabular-nums;
}
.stat-change.positive {
color: var(--accent-success);
}
.stat-change.negative {
color: var(--accent-danger);
}
.progress-container {
width: 100%;
height: 4px;
background: var(--border-color);
border-radius: 2px;
margin-top: 0.6rem;
overflow: hidden;
}
.progress-fill {
height: 100%;
border-radius: 2px;
transition: width 0.3s ease;
}
.progress-fill.otimo {
background: #10b981;
}
.progress-fill.bom {
background: #3b82f6;
}
.progress-fill.medio {
background: var(--accent-warning);
}
.progress-fill.ruim {
background: var(--accent-danger);
}
.progress-fill.neutral {
background: var(--text-muted);
width: 0%;
}
.score-text {
font-size: 0.72rem;
color: var(--text-muted);
margin-top: 0.3rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stat-label {
font-size: 0.72rem;
color: var(--text-muted);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 0.1rem;
}
.avaliacao-regra {
background: var(--bg-secondary);
display: flex;
align-items: center;
gap: 1.5rem;
flex-wrap: wrap;
padding: 0.65rem 1.1rem;
border-radius: var(--radius-sm);
margin-bottom: 1.5rem;
border: 1px solid var(--border-color-soft);
flex-shrink: 0;
font-size: 0.85rem;
}
.avaliacao-regra .regra-label {
font-weight: 600;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 0.4rem;
}
.avaliacao-regra .regra-label i {
color: var(--accent-primary);
}
.avaliacao-regra .regra-item.otimo {
color: #10b981;
}
.avaliacao-regra .regra-item.bom {
color: #3b82f6;
}
.avaliacao-regra .regra-item.medio {
color: #f59e0b;
}
.avaliacao-regra .regra-item.ruim {
color: #ef4444;
}
.filters {
background: var(--bg-secondary);
padding: 1.5rem;
border-radius: var(--radius-md);
box-shadow: var(--shadow-xs);
margin-bottom: 0;
border: 1px solid var(--border-color-soft);
flex-shrink: 0;
}
.filter-row {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.filter-group {
flex: 1;
min-width: 200px;
}
.filter-group.full-width {
flex: 1 1 100%;
min-width: 100%;
}
.filter-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--text-secondary);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.filter-group select, .filter-group input {
width: 100%;
padding: 0.7rem 1rem;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
font-size: 0.875rem;
color: var(--text-primary);
box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.filter-group select:focus, .filter-group input:focus {
outline: none;
border-color: var(--accent-primary);
box-shadow: var(--focus-ring);
}
/* Campos de digitação: borda discreta com destaque sutil apenas no foco (sem brilho neon) */
input, select, textarea {
border-color: var(--border-color);
transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:hover, select:hover, textarea:hover {
border-color: rgba(148, 163, 184, 0.45);
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--accent-primary) !important;
box-shadow: var(--focus-ring);
}
.paired-inputs {
display: flex;
gap: 0.5rem;
}
.paired-inputs input {
flex: 1;
}
.filter-bottom-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 1rem;
gap: 1rem;
}
.filter-actions {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
}
.export-options {
display: flex;
justify-content: flex-start;
gap: 0.75rem;
margin-bottom: 0;
flex-shrink: 0;
}
button {
font-family: var(--font-display);
padding: 0.6rem 1.15rem;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
font-weight: 700;
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.8rem;
letter-spacing: -0.005em;
position: relative;
}
button i {
font-size: 0.92em;
}
button:active {
transform: translateY(0) scale(0.98);
filter: brightness(0.97);
}
button:focus {
outline: none;
box-shadow: var(--focus-ring);
}
button:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.btn-primary {
background: var(--gradient-primary);
color: white;
border: 1px solid rgba(255,255,255,0.1);
box-shadow: 0 4px 14px -6px rgba(79, 127, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-secondary {
background: var(--bg-card);
color: var(--text-primary);
border: 1px solid var(--border-color);
box-shadow: var(--shadow-xs);
}
.btn-success {
background: linear-gradient(135deg, var(--accent-success), #059669);
color: white;
border: 1px solid rgba(255,255,255,0.08);
box-shadow: 0 4px 12px -6px rgba(16, 185, 129, 0.5);
}
button:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-hover);
}
.btn-primary:hover {
box-shadow: 0 10px 22px -6px rgba(79, 127, 255, 0.65), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-secondary:hover {
border-color: var(--accent-primary);
background: var(--bg-elevated);
}
.btn-success:hover {
box-shadow: 0 8px 18px -6px rgba(16, 185, 129, 0.6);
}
.data-table-container {
background: var(--bg-secondary);
padding: 1.5rem;
border-radius: var(--radius-md);
box-shadow: var(--shadow-xs);
margin-bottom: 0;
overflow: hidden;
border: 1px solid var(--border-color-soft);
height: auto;
flex-shrink: 0;
display: block;
min-height: auto;
}
.data-table-header {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 1rem;
margin-bottom: 1rem;
flex-wrap: wrap;
flex-shrink: 0;
padding: 0;
}
.table-title {
font-family: var(--font-display);
font-size: 1.2rem;
font-weight: 700;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
letter-spacing: -0.015em;
}
.table-title i {
color: var(--accent-primary);
}
.record-counter {
color: var(--text-muted);
font-size: 0.82rem;
flex-shrink: 0;
}
.table-search {
position: relative;
flex: 1;
max-width: 300px;
}
.table-search input {
width: 100%;
padding: 0.7rem 1rem 0.7rem 2.5rem;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 0.875rem;
transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.table-search input:focus {
outline: none;
border-color: var(--accent-primary);
box-shadow: var(--focus-ring);
}
.table-search input::placeholder {
color: var(--text-muted);
}
.table-search i {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
}
.table-controls {
display: flex;
gap: 0.5rem;
flex-shrink: 0;
margin-left: auto;
}
.table-controls button {
padding: 0.4rem 0.8rem;
font-size: 0.78rem;
}
.table-wrapper {
overflow-x: auto;
min-height: 0;
position: relative;
height: auto;
border-radius: var(--radius-sm);
border: 1px solid var(--border-color);
}
table {
width: 100%;
border-collapse: collapse;
table-layout: auto;
background: var(--bg-card);
}
th, td {
padding: 0.55rem 0.5rem;
text-align: left;
border-bottom: 1px solid var(--border-color-soft);
word-break: break-word;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.74rem;
color: var(--text-secondary);
vertical-align: middle;
transition: background-color 0.15s ease;
}
th {
background: var(--bg-secondary);
font-weight: 600;
color: var(--text-primary);
position: sticky;
top: 0;
font-size: 0.64rem;
text-transform: uppercase;
letter-spacing: 0.06em;
z-index: 10;
user-select: none;
border-right: 1px solid var(--border-color-soft);
border-bottom: 2px solid var(--accent-primary);
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease;
}
th:first-child {
border-left: none;
}
th:last-child {
border-right: none;
}
th:hover {
background: var(--bg-elevated);
color: var(--accent-primary);
cursor: pointer;
}
th.sort-asc::after {
content: ' ▲';
font-size: 0.72rem;
color: var(--accent-success);
transition: opacity 0.2s ease;
}
th.sort-desc::after {
content: ' ▼';
font-size: 0.72rem;
color: var(--accent-warning);
transition: opacity 0.2s ease;
}
tr:nth-child(even) {
background: var(--row-even-bg);
}
tr:hover {
background: rgba(59, 130, 246, 0.06);
color: var(--text-primary);
}
.positive {
color: var(--accent-success);
font-weight: 600;
}
.negative {
color: var(--accent-danger);
font-weight: 600;
}
.context-menu {
position: absolute;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 0.5rem 0;
z-index: 1000;
display: none;
min-width: 150px;
box-shadow: var(--shadow-hover);
transition: opacity 0.2s ease, transform 0.2s ease;
}
.context-menu ul {
list-style: none;
margin: 0;
padding: 0;
}
.context-menu li {
padding: 0.75rem 1rem;
cursor: pointer;
color: var(--text-primary);
transition: background 0.2s;
}
.context-menu li:hover {
background: rgba(59, 130, 246, 0.1);
}
.pagination {
display: flex;
justify-content: center;
margin-top: 1.5rem;
gap: 0.3rem;
flex-shrink: 0;
}
.pagination button {
padding: 0.45rem 0.85rem;
background: var(--bg-card);
color: var(--text-primary);
border: 1px solid var(--border-color);
font-size: 0.78rem;
border-radius: var(--radius-sm);
box-shadow: none;
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pagination button:hover:not(:disabled) {
background: var(--accent-primary);
color: white;
border-color: var(--accent-primary);
}
.pagination button.active {
background: var(--gradient-primary);
color: white;
border-color: var(--accent-primary);
box-shadow: 0 4px 10px -5px rgba(59, 130, 246, 0.55);
}
.pagination button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.upload-section {
background: var(--bg-secondary);
padding: 1.5rem;
border-radius: var(--radius-md);
box-shadow: var(--shadow-xs);
border: 1px solid var(--border-color-soft);
margin-bottom: 0.5rem;
flex-shrink: 0;
}
.upload-controls {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.upload-section p {
color: var(--text-muted);
font-size: 0.875rem;
}
/* Scrollbar personalizada */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent-primary);
}
/* Animações */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.45s ease forwards;
}
/* Estilos para KPI NRR */
.kpi-value {
font-family: var(--font-display);
font-size: 2.4rem;
font-weight: 800;
color: var(--accent-success);
text-align: center;
margin: -0.25rem 0 0.25rem 0;
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums;
}
.kpi-value.otimo { color: #10b981; }
.kpi-value.bom { color: #3b82f6; }
.kpi-value.medio { color: #f59e0b; }
.kpi-value.ruim { color: #ef4444; }
.kpi-subtitle {
color: var(--text-muted);
text-align: center;
font-size: 0.85rem;
margin-bottom: 1rem;
}
#nrr-line-chart {
width: 100% !important;
height: 150px !important;
}
/* Drag and Drop */
th.drag-over {
background: var(--accent-primary) !important;
color: white !important;
}
/* Hidden columns */
.hidden-column {
display: none;
}
/* Estilos para o Mapa de Calor RFM */
.rfm-heatmap {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
padding: 1rem;
}
.rfm-heatmap-table {
border-collapse: separate;
border-spacing: 3px;
font-size: 0.8rem;
color: var(--text-primary);
}
.rfm-heatmap-table th,
.rfm-heatmap-table td {
border: 1px solid var(--border-color-soft);
border-radius: 6px;
padding: 1rem;
text-align: center;
min-width: 60px;
height: 60px;
position: relative;
}
.rfm-heatmap-table th {
background: var(--bg-secondary);
color: var(--text-primary);
font-weight: 600;
font-size: 0.72rem;
text-transform: uppercase;
border-radius: 6px;
}
.rfm-heatmap-table .cell-low { background-color: rgba(239, 68, 68, 0.85); color: white; }
.rfm-heatmap-table .cell-med { background-color: rgba(245, 158, 11, 0.85); color: white; }
.rfm-heatmap-table .cell-high { background-color: rgba(16, 185, 129, 0.85); color: white; }
.rfm-heatmap-table .cell-value {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
}
.rfm-heatmap-labels {
display: flex;
justify-content: space-around;
width: 100%;
margin-top: 0.5rem;
}
.rfm-heatmap-label {
font-size: 0.75rem;
color: var(--text-secondary);
text-align: center;
min-width: 60px;
}
/* Ajustes para os gráficos RFM - Aumentar ligeiramente o tamanho */
.rfm-dashboard .chart-container:nth-child(2) .chart-wrapper { /* Clientes por Categoria RFM */
height: 85% !important;
max-height: 320px;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
}
.rfm-dashboard .chart-container:nth-child(2) canvas {
max-height: 100% !important;
width: 100% !important;
max-width: 360px;
}
.rfm-dashboard .chart-container:nth-child(3) .chart-wrapper { /* Novos vs Recorrentes */
height: 100% !important;
max-height: 320px;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
}
.rfm-dashboard .chart-container:nth-child(3) canvas {
max-height: 100% !important;
width: 100% !important;
max-width: 360px;
}
/* Responsivo para mobile */
@media (max-width: 768px) {
.rfm-dashboard .chart-container:nth-child(2) .chart-wrapper,
.rfm-dashboard .chart-container:nth-child(3) .chart-wrapper {
height: 75% !important;
max-height: 260px;
}
.rfm-dashboard .chart-container:nth-child(2) canvas,
.rfm-dashboard .chart-container:nth-child(3) canvas {
max-width: 320px;
}
}
/* Responsividade */
@media (max-width: 1100px) {
.dashboard {
grid-template-columns: 1fr;
height: auto;
}
.financial-dashboard {
grid-template-columns: 1fr;
grid-template-rows: repeat(4, 1fr);
height: auto;
}
.marketing-dashboard {
grid-template-columns: 1fr;
grid-template-rows: repeat(4, 1fr);
height: auto;
}
.trends-dashboard {
grid-template-columns: 1fr;
grid-template-rows: repeat(2, 1fr);
height: auto;
}
.channel-analysis .dashboard,
.rfm-parent .dashboard {
height: auto;
}
.chart-container {
height: 40vh;
}
.stats-cards, .overview-cards {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.data-table-container {
padding: 0.5rem;
}
th, td {
padding: 0.4rem 0.2rem;
font-size: 0.6rem;
}
}
@media (max-width: 768px) {
.content-area {
padding: 1rem;
gap: 1rem;
}
.header-content {
flex-direction: column;
gap: 1rem;
text-align: center;
padding: 0 1rem;
}
.filter-row {
flex-direction: column;
}
.filter-group {
min-width: 100%;
}
.export-options {
justify-content: center;
}
.filter-actions {
justify-content: center;
}
.filter-bottom-row {
flex-direction: column;
gap: 1rem;
}
.section-header {
padding: 1rem;
}
.filters, .data-table-container, .upload-section {
padding: 1rem;
}
.avaliacao-regra {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.overview-cards {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.upload-controls {
flex-direction: column;
}
.data-table-header {
flex-direction: column;
align-items: stretch;
gap: 1rem;
}
.table-search {
max-width: none;
}
th, td {
padding: 0.4rem 0.2rem;
font-size: 0.6rem;
}
.rfm-heatmap-table th,
.rfm-heatmap-table td {
padding: 0.5rem;
min-width: 40px;
height: 40px;
font-size: 0.7rem;
}
}
.section-content {
display: block;
}
.chart-selector {
display: none;
position: absolute;
top: 8px;
right: 8px;
background: var(--bg-card);
padding: 5px;
border-radius: var(--radius-sm);
box-shadow: var(--shadow);
border: 1px solid var(--border-color);
z-index: 5;
gap: 3px;
align-items: center;
}
.chart-container:hover .chart-selector {
display: flex;
}
.chart-selector select, .chart-selector button {
background: none;
border: none;
color: var(--text-primary);
cursor: pointer;
padding: 3px;
transition: color 0.3s;
}
.chart-selector select:hover, .chart-selector button:hover {
color: var(--accent-primary);
}
.chart-selector label {
display: flex;
align-items: center;
gap: 3px;
color: var(--text-primary);
cursor: pointer;
}
.color-palette {
display: none;
position: absolute;
top: 100%;
right: 0;
background: var(--bg-card);
padding: 10px;
border-radius: var(--radius-sm);
box-shadow: var(--shadow-hover);
border: 1px solid var(--border-color);
z-index: 10;
flex-direction: column;
gap: 5px;
}
.color-palette label {
display: flex;
align-items: center;
gap: 5px;
font-size: 0.8rem;
color: var(--text-secondary);
}
#chart-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(5, 8, 15, 0.6);
backdrop-filter: blur(2px);
z-index: 2000;
align-items: center;
justify-content: center;
}
#expanded-chart-container {
width: 90%;
height: 90%;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 20px;
position: relative;
resize: both;
overflow: hidden;
box-shadow: var(--shadow-lg);
}
#expanded-chart-wrapper {
width: 100%;
height: calc(100% - 40px);
}
.chat-container {
background: var(--bg-secondary);
border: 1px solid var(--border-color-soft);
padding: 1rem;
border-radius: var(--radius-md);
box-shadow: var(--shadow-xs);
display: flex;
flex-direction: column;
height: 400px;
}
.chat-messages {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1rem;
}
.message {
max-width: 80%;
padding: 0.75rem 1rem;
border-radius: var(--radius-md);
}
.message.user {
background: var(--gradient-primary);
color: white;
align-self: flex-end;
}
.message.ai {
background: var(--bg-card);
border: 1px solid var(--border-color-soft);
color: var(--text-primary);
align-self: flex-start;
}
.chat-input {
display: flex;
gap: 0.5rem;
padding: 0.5rem;
border-top: 1px solid var(--border-color);
}
.chat-input input {
flex: 1;
padding: 0.75rem;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
}
.chat-input button {
padding: 0.5rem 1rem;
}
.title-container {
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.status-list {
display: flex;
flex-direction: column;
gap: 0.15rem;
font-size: 0.85rem;
color: var(--text-secondary);
}
.status-list div {
display: flex;
align-items: center;
gap: 0.5rem;
}
.status-list i {
color: var(--accent-primary);
width: 1em;
text-align: center;
}
.btn-drive-sync {
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
color: white;
border: 1px solid rgba(255,255,255,0.08);
box-shadow: 0 4px 12px -6px rgba(59, 130, 246, 0.5);
}
.theme-toggle.logout-btn {
background: linear-gradient(135deg, var(--accent-success), #059669);
box-shadow: 0 4px 12px -6px rgba(16, 185, 129, 0.5);
}
.btn-drive-sync:hover {
box-shadow: 0 8px 18px -6px rgba(59, 130, 246, 0.6);
}
.drive-date-range {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
background: var(--bg-card);
border: 1px solid var(--border-color);
padding: 6px 10px;
border-radius: var(--radius-sm);
}
.drive-date-range label {
font-size: 0.8rem;
color: var(--text-muted);
}
.drive-date-range input[type="date"] {
padding: 4px 26px 4px 6px;
border-radius: 6px;
border: 1px solid var(--border-color);
background: var(--bg-primary);
color: var(--text-primary);
}
.date-input-wrap {
position: relative;
display: inline-flex;
align-items: center;
}
.date-input-wrap input[type="date"] {
width: 130px;
}
.date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
position: absolute;
right: 0;
top: 0;
width: 26px;
height: 100%;
opacity: 0;
cursor: pointer;
margin: 0;
padding: 0;
}
.date-input-wrap i {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
color: #ffffff;
font-size: 0.8rem;
pointer-events: none;
}
.online {
color: var(--accent-success);
display: flex;
align-items: center;
gap: 0.3rem;
margin-left: auto;
}
.online::before {
content: '●';
font-size: 0.8rem;
}
/* Custom Alert and Confirm Styles */
.custom-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(5, 8, 15, 0.6);
backdrop-filter: blur(2px);
display: none;
align-items: center;
justify-content: center;
z-index: 3000;
}
.custom-modal-content {
background: var(--bg-card);
color: var(--text-primary);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.5rem;
width: 340px;
max-width: 90vw;
text-align: center;
box-shadow: var(--shadow-lg);
position: relative;
overflow: hidden;
}
.custom-modal-content::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 3px;
background: var(--gradient-primary);
}
.custom-modal-title {
font-size: 1rem;
font-weight: 700;
margin-top: 0.2rem;
margin-bottom: 0.6rem;
}
.custom-modal-message {
font-size: 0.875rem;
color: var(--text-secondary);
line-height: 1.5;
margin-bottom: 1.25rem;
}
.custom-modal-buttons {
display: flex;
justify-content: center;
gap: 0.6rem;
}
.custom-modal-btn {
padding: 0.55rem 1.2rem;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
font-size: 0.82rem;
font-weight: 600;
transition: transform 0.15s ease, filter 0.15s ease;
}
.custom-modal-ok {
background: var(--gradient-primary);
color: #fff;
}
.custom-modal-cancel {
background: var(--bg-secondary);
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.custom-modal-btn:hover {
transform: translateY(-1px);
filter: brightness(1.06);
}
/* Tooltip Styles */
.stat-card, .chart-container {
position: relative;
}
.tooltip-content {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  z-index: 10;
  text-align: center;
  max-width: 90%;
  box-shadow: var(--shadow-hover);
  font-size: 0.8rem;
}
.tooltip-icon {
  position: absolute;
  bottom: 3px;
  right: 3px;
  cursor: help;
  z-index: 5;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(148,163,184,0.2);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-size: 0.68rem;
}
.tooltip-icon i {
  color: var(--text-muted);
}
.tooltip-icon:hover + .tooltip-content {
  display: block;
}

/* Rodapé (footer) — mesmo estilo fino do header: linha de gradiente no topo,
   cores do tema, compacto. */
.app-footer {
  background: #05070c;
  border-top: 1px solid var(--border-color);
  position: fixed;
  bottom: 0;
  left: 0;
  flex-shrink: 0;
  width: 100%;
  z-index: 1000;
}
.app-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.app-footer-content {
  max-width: 100%;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.app-footer-copy {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.app-footer-company {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.app-footer-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.app-footer-whatsapp:hover {
  color: #25d366;
}
.app-footer-whatsapp i {
  color: #25d366;
  font-size: 1rem;
}
@media (max-width: 640px) {
  .app-footer-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1.25rem;
  }
}
</content>
