/* ====== PoliticoWebExp — Stylesheet ====== */

/* ===== Variables ===== */
:root {
    --primary: #1a2379;
    --primary-light: #3949ab;
    --primary-dark: #0d1352;
    --gold: #ffc107;
    --gold-dark: #b98e00;
    --white: #ffffff;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --border: #e0e0e0;
    --green: #43a047;
    --green-light: #e8f5e9;
    --blue: #1976d2;
    --blue-light: #e3f2fd;
    --yellow: #f9a825;
    --yellow-light: #fff8e1;
    --red: #d32f2f;
    --red-light: #ffebee;
    --orange: #ef6c00;
    --orange-light: #fff3e0;
    --gray: #9e9e9e;
    --gray-light: #f5f5f5;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --sidebar-w: 240px;
    --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
ul { list-style: none; }

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(255,255,255,0.8); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Toast ===== */
.toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 10000;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    padding: 12px 20px; border-radius: var(--radius-sm);
    color: #fff; font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-lg); min-width: 280px;
    animation: toastIn 0.3s ease;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--blue); }
.toast.warning { background: var(--orange); }
@keyframes toastIn { from { opacity:0; transform: translateX(100px); } }

/* ===== Auth Page ===== */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 20px;
}
.auth-container {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-width: 480px; width: 100%;
    padding: 40px; max-height: 95vh; overflow-y: auto;
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-logo { font-size: 56px; margin-bottom: 10px; }
.auth-header h1 { font-size: 28px; font-weight: 800; color: var(--primary); }
.auth-header p { color: var(--text-light); font-size: 14px; margin-top: 5px; }
.auth-form-wrap h2 { font-size: 22px; margin-bottom: 20px; color: var(--primary); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-links { text-align: center; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.auth-links a { color: var(--blue); font-size: 13px; }
.auth-links a:hover { text-decoration: underline; }
.auth-trial-info {
    text-align: center; margin-top: 20px; padding: 12px;
    background: var(--yellow-light); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text);
}
.auth-trial-info strong { color: var(--primary); }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-light); font-size: 12px; }
.reset-token-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ===== Form Elements ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px;
    transition: border-color var(--transition);
    background: #fff; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,35,121,0.1);
}
.form-group textarea { resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row > .form-group { flex: 1; }
.hint { font-size: 12px; color: var(--text-light); }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary, .btn-gold, .btn-danger, .btn-text, .btn-logout, .btn-icon {
    padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px;
    font-weight: 600; transition: all var(--transition); display: inline-flex;
    align-items: center; justify-content: center; gap: 6px; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--gray-light); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-gold { background: var(--gold); color: var(--primary-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b71c1c; }
.btn-text { background: transparent; color: var(--blue); padding: 6px 10px; }
.btn-text:hover { text-decoration: underline; }
.btn-logout {
    width: 100%; background: transparent; color: var(--text-light);
    padding: 10px; justify-content: flex-start; gap: 10px;
}
.btn-logout:hover { background: var(--red-light); color: var(--red); }
.btn-icon { background: transparent; font-size: 20px; padding: 6px 12px; color: var(--primary); }
.btn-icon:hover { background: var(--gray-light); }
.btn-small { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ===== Trial Expired Page ===== */
.trial-expired-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 20px;
}
.trial-expired-container {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-width: 700px; width: 100%; padding: 40px; text-align: center;
}
.trial-expired-icon { font-size: 56px; margin-bottom: 16px; }
.trial-expired-container h2 { font-size: 26px; color: var(--primary); margin-bottom: 10px; }
.trial-expired-container > p { color: var(--text-light); margin-bottom: 30px; }
.trial-plans { display: flex; gap: 20px; margin: 30px 0; }
.plan-card {
    flex: 1; border: 2px solid var(--border); border-radius: var(--radius);
    padding: 30px; text-align: center; position: relative; transition: all var(--transition);
}
.plan-card:hover { border-color: var(--primary); }
.plan-card.plan-highlight { border-color: var(--gold); }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--primary-dark); padding: 4px 16px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
}
.plan-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--text); }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-light); }
.plan-features { margin: 20px 0; text-align: left; }
.plan-features li { padding: 6px 0; font-size: 14px; }
.cupom-wrap { display: flex; gap: 10px; margin: 20px 0; }
.cupom-wrap input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ===== Dashboard Layout ===== */
.dashboard-page { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-w); background: var(--primary); color: #fff;
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0;
    height: 100vh; z-index: 100; transition: transform var(--transition);
}
.sidebar-header {
    padding: 20px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo { font-size: 32px; }
.sidebar-title { font-size: 16px; font-weight: 700; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    color: rgba(255,255,255,0.7); font-size: 14px; transition: all var(--transition);
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.15); color: #fff; border-left: 3px solid var(--gold); }
.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 99;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column;
    min-height: 100vh;
}

/* ===== Top Bar ===== */
.topbar {
    background: #fff; height: 60px; display: flex; align-items: center;
    padding: 0 24px; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50;
    gap: 16px;
}
.menu-toggle { display: none; font-size: 22px; background: none; color: var(--text); }
.topbar-title { font-size: 18px; font-weight: 700; color: var(--text); flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 16px; }
.trial-badge {
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: var(--yellow-light); color: var(--orange);
}
.trial-badge.active { background: var(--green-light); color: var(--green); }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-name { font-size: 14px; font-weight: 600; color: var(--text); }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Content Area ===== */
.content-area { padding: 24px; flex: 1; }
.content-section { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Section Headers ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header h2 { font-size: 24px; color: var(--primary); }

/* ===== Cards ===== */
.card {
    background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 18px; color: var(--primary); margin-bottom: 16px; }
.card.card-danger { border: 1px solid var(--red-light); }
.card.card-danger h3 { color: var(--red); }

/* ===== Metrics Grid ===== */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; transition: transform var(--transition);
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.metric-card .metric-icon { font-size: 28px; margin-bottom: 10px; }
.metric-card .metric-value { font-size: 32px; font-weight: 800; color: var(--text); }
.metric-card .metric-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== Charts ===== */
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.chart-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px;
}
.chart-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 16px; }
.bar-chart { display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.bar-chart-item { display: flex; align-items: center; gap: 10px; }
.bar-chart-item .bar-label { width: 120px; font-size: 13px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-chart-item .bar-wrap { flex: 1; background: var(--gray-light); border-radius: 4px; height: 24px; overflow: hidden; }
.bar-chart-item .bar-fill { height: 100%; border-radius: 4px; background: var(--primary); transition: width 0.5s ease; min-width: 2px; }
.bar-chart-item .bar-value { font-size: 13px; font-weight: 600; min-width: 40px; text-align: right; }

/* ===== Activity Feed ===== */
.activity-feed { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border); font-size: 14px;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { font-size: 20px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray-light); }
.activity-text { flex: 1; }
.activity-text strong { color: var(--primary); }
.activity-time { font-size: 12px; color: var(--text-light); }

/* ===== Filters Bar ===== */
.filters-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filters-bar select, .filters-bar input {
    padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: #fff; min-width: 180px;
}

/* ===== Cards Grid (Propostas/Denuncias/Pesquisas) ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.item-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; transition: transform var(--transition); cursor: default;
    border: 1px solid transparent;
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.item-card h4 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.item-card p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.item-card .card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* ===== Badges ===== */
.badge {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-gray { background: var(--gray-light); color: var(--gray); }
.badge-gold { background: #fff8e1; color: var(--gold-dark); }
.badge-primary { background: #e8eaf6; color: var(--primary); }

/* ===== Card Actions ===== */
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions button { padding: 6px 14px; font-size: 13px; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h4 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--gray-light); }
.data-table tr.highlight td { background: #fff8e1; }
.data-table tr.highlight td:first-child { font-weight: 700; }
.data-table .row-actions { display: flex; gap: 6px; }
.data-table .row-actions button { padding: 4px 10px; font-size: 12px; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.pagination button {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; font-size: 13px; color: var(--text);
}
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Stats Row ===== */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-mini {
    background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
    padding: 14px; text-align: center;
}
.stat-mini .stat-value { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-mini .stat-label { font-size: 12px; color: var(--text-light); }

/* ===== Modals ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 200; display: flex;
    align-items: center; justify-content: center; padding: 20px;
}
.modal {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
    animation: modalIn 0.2s ease;
}
.modal.modal-small { max-width: 400px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; color: var(--primary); }
.modal-close { font-size: 28px; background: none; color: var(--text-light); line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding-top: 10px; }

/* ===== Profile Form ===== */
.profile-form { display: flex; flex-direction: column; gap: 16px; }
.profile-photo-section { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 10px; }
.profile-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-photo-preview {
    width: 120px; height: 120px; border-radius: 50%; background: var(--gray-light);
    display: flex; align-items: center; justify-content: center; font-size: 48px;
    cursor: pointer; border: 3px solid var(--border); overflow: hidden;
}
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-preview {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius); padding: 30px; text-align: center; color: #fff;
}
.profile-preview .pp-avatar {
    width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.2);
    margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
    font-size: 40px; overflow: hidden;
}
.profile-preview .pp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-preview h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.profile-preview .pp-slogan { font-size: 14px; opacity: 0.9; margin-bottom: 16px; }
.profile-preview .pp-bio { font-size: 14px; opacity: 0.8; text-align: left; margin-top: 16px; }
.profile-preview .pp-social { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.profile-preview .pp-social span { font-size: 14px; padding: 4px 12px; background: rgba(255,255,255,0.15); border-radius: 20px; }

/* ===== Promessas ===== */
.promessas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.promessa-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; border-left: 4px solid var(--gray);
}
.promessa-card.pendente { border-left-color: var(--yellow); }
.promessa-card.em_andamento { border-left-color: var(--blue); }
.promessa-card.cumprida { border-left-color: var(--green); }
.promessa-card.quebrada { border-left-color: var(--red); }
.promessa-card h4 { font-size: 16px; margin-bottom: 8px; }
.promessa-card .progress-bar-wrap { background: var(--gray-light); border-radius: 10px; height: 8px; margin: 12px 0; overflow: hidden; }
.promessa-card .progress-bar-fill { height: 100%; border-radius: 10px; transition: width 0.5s; }
.promessa-card .progress-text { font-size: 12px; color: var(--text-light); }

/* ===== Calendar ===== */
.calendar-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.calendar-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
.calendar-month-label { font-size: 16px; font-weight: 700; color: var(--primary); min-width: 180px; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-grid .cal-day-name { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-light); padding: 8px 0; }
.calendar-grid .cal-day {
    aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer; transition: all var(--transition); position: relative;
}
.calendar-grid .cal-day:hover { background: var(--gray-light); }
.calendar-grid .cal-day.has-event { background: var(--blue-light); border-color: var(--blue); }
.calendar-grid .cal-day.today { border-color: var(--gold); border-width: 2px; font-weight: 700; }
.calendar-grid .cal-day.other-month { color: var(--gray); opacity: 0.4; }
.calendar-grid .cal-day .event-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-top: 2px; }

/* ===== Event List ===== */
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-item { display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--gray-light); border-radius: var(--radius-sm); }
.event-item .event-date { width: 60px; text-align: center; }
.event-item .event-date .event-day { font-size: 20px; font-weight: 700; color: var(--primary); }
.event-item .event-date .event-month { font-size: 12px; color: var(--text-light); text-transform: uppercase; }
.event-item .event-info { flex: 1; }
.event-item .event-info h4 { font-size: 15px; }
.event-item .event-info p { font-size: 13px; color: var(--text-light); }
.event-item .event-actions { display: flex; gap: 6px; }

/* ===== Bot Section ===== */
.bot-status-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 20px;
}
.bot-status-card .bot-icon { font-size: 48px; }
.bot-status-card .bot-info { flex: 1; }
.bot-status-card .bot-info h3 { font-size: 18px; color: var(--primary); }
.bot-status-card .bot-info p { font-size: 14px; color: var(--text-light); }
.bot-status-indicator { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.bot-status-indicator.active { background: var(--green-light); color: var(--green); }
.bot-status-indicator.inactive { background: var(--red-light); color: var(--red); }
.bot-status-indicator .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bot-config-form { display: flex; flex-direction: column; gap: 16px; }

/* ===== Bot Test Chat ===== */
.bot-test-chat { display: flex; flex-direction: column; gap: 10px; }
.bot-test-messages {
    min-height: 200px; max-height: 300px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 8px; padding: 10px;
    background: var(--gray-light); border-radius: var(--radius-sm);
}
.bot-test-msg { max-width: 80%; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.bot-test-msg.user { align-self: flex-end; background: var(--primary); color: #fff; }
.bot-test-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); }
.bot-test-input-wrap { display: flex; gap: 8px; }

/* ===== Conversas List ===== */
.conversas-list { display: flex; flex-direction: column; gap: 10px; }
.conversa-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--gray-light); border-radius: var(--radius-sm); cursor: pointer;
    transition: background var(--transition);
}
.conversa-item:hover { background: var(--border); }
.conversa-item .conversa-info { flex: 1; }
.conversa-item .conversa-info h4 { font-size: 14px; }
.conversa-item .conversa-info p { font-size: 12px; color: var(--text-light); }

/* ===== Notificacoes List ===== */
.notificacoes-list { display: flex; flex-direction: column; gap: 10px; }
.notificacao-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--gray-light); border-radius: var(--radius-sm);
}
.notificacao-item.unread { background: var(--blue-light); }
.notificacao-item .notif-info { flex: 1; }
.notificacao-item .notif-info h4 { font-size: 14px; }
.notificacao-item .notif-info p { font-size: 12px; color: var(--text-light); }

/* ===== Comparacao ===== */
.comparacao-selectors { display: flex; gap: 20px; margin-bottom: 20px; }
.comparacao-table-wrap { overflow-x: auto; }
.comparacao-table { width: 100%; border-collapse: collapse; }
.comparacao-table th { background: var(--primary); color: #fff; padding: 14px; text-align: left; }
.comparacao-table td { padding: 14px; border-bottom: 1px solid var(--border); text-align: center; }
.comparacao-table .comp-label { text-align: left; font-weight: 600; color: var(--text); }
.radar-chart-wrap { display: flex; justify-content: center; margin: 20px 0; }
.radar-chart-wrap canvas { max-width: 400px; }

/* ===== Assinatura ===== */
.assinatura-status {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px; margin-bottom: 20px;
}
.assinatura-status .status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.assinatura-status .status-item .label { font-size: 13px; color: var(--text-light); }
.assinatura-status .status-item .value { font-size: 18px; font-weight: 700; color: var(--text); }

/* ===== LGPD ===== */
.lgpd-actions { display: flex; gap: 12px; margin-top: 16px; }

/* ===== Privacy Policy ===== */
.privacy-policy h4 { font-size: 15px; color: var(--primary); margin: 16px 0 8px; }
.privacy-policy p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== Opcoes Wrap (Pesquisa) ===== */
.opcoes-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.opcao-row { display: flex; gap: 8px; }
.opcao-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.opcao-row button { padding: 8px 12px; background: var(--red-light); color: var(--red); border-radius: var(--radius-sm); font-size: 16px; }

/* ===== Responsiveness ===== */
@media (max-width: 1024px) {
    .charts-row { grid-template-columns: 1fr; }
    .trial-plans { flex-direction: column; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar.open + .sidebar-overlay { display: block; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .content-area { padding: 16px; }
    .form-row { flex-direction: column; gap: 12px; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .promessas-grid { grid-template-columns: 1fr; }
    .comparacao-selectors { flex-direction: column; }
    .topbar-user .user-name { display: none; }
    .section-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .calendar-grid .cal-day { font-size: 11px; }
    .assinatura-status .status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .auth-container { padding: 24px; }
    .modal { max-width: 100%; }
}