/* ========== MIDA Monitoring - Light Theme CSS ========== */
:root {
    --primary: #dc2626;
    --primary-light: #ef4444;
    --primary-dark: #b91c1c;
    --primary-bg: rgba(220, 38, 38, 0.08);
    --primary-bg2: rgba(220, 38, 38, 0.15);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f97316;
    --warning-bg: rgba(249, 115, 22, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --purple: #ef4444;
    --purple-bg: rgba(239, 68, 68, 0.1);
    --bg: #f5f6fa;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text: #1e1b4b;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --sidebar-w: 260px;
    --header-h: 64px;
    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.3;
}

code {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* ===== LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== SIDEBAR ===== */
.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.75rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.25rem;
}

.nav-section-title {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary-bg2);
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.nav-badge {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: auto;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.user-logout {
    color: var(--text-muted);
    padding: 4px;
    border-radius: 6px;
    transition: all var(--transition);
}

.user-logout:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===== TOP HEADER ===== */
.top-header {
    height: var(--header-h);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.menu-toggle:hover {
    background: var(--primary-bg);
}

.header-search {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.header-search input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--bg);
    transition: all var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.header-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 1.5rem;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.back-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.back-link:hover {
    color: var(--primary);
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
    padding: 0 1.5rem;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: var(--success-bg);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.flash-error {
    background: var(--danger-bg);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.flash-info {
    background: var(--info-bg);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.flash-warning {
    background: var(--warning-bg);
    color: #c2410c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    margin-left: auto;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.card-title i {
    color: var(--primary);
    font-size: 0.9rem;
}

.card-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.card-body {
    padding: 1.25rem;
}

.card-body.no-padding {
    padding: 0;
}

/* ===== KPI CARDS ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-grid.kpi-4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi-grid.kpi-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.kpi-primary .kpi-icon {
    background: var(--primary-bg);
    color: var(--primary);
}

.kpi-success .kpi-icon {
    background: var(--success-bg);
    color: var(--success);
}

.kpi-info .kpi-icon {
    background: var(--info-bg);
    color: var(--info);
}

.kpi-warning .kpi-icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.kpi-purple .kpi-icon {
    background: var(--purple-bg);
    color: var(--purple);
}

.kpi-danger .kpi-icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.kpi-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
}

.kpi-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    display: block;
    margin: 0.15rem 0;
}

.kpi-change {
    font-size: 0.73rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.kpi-change.positive {
    color: var(--success);
}

.kpi-change.negative {
    color: var(--danger);
}

.kpi-change.neutral {
    color: var(--text-muted);
}

/* ===== GRID ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.grid-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.25rem;
}

/* ===== CHARTS ===== */
.chart-container {
    position: relative;
    height: 280px;
}

.sentiment-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sentiment-chart-wrapper {
    width: 200px;
    height: 200px;
}

.sentiment-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.legend-item:last-child {
    border-bottom: none;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    font-weight: 500;
    font-size: 0.88rem;
}

.legend-value {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ===== TOPIC BARS ===== */
.topic-bar-item {
    margin-bottom: 0.75rem;
}

.topic-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.topic-bar-name {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.topic-bar-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.topic-bar-track {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.topic-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text);
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--primary-bg);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.clickable-row {
    cursor: pointer;
}

.rank-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.rank-badge.top-3 {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
}

.source-badge {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mention-count {
    font-weight: 700;
    color: var(--primary);
}

.source-name {
    font-weight: 500;
    font-size: 0.82rem;
}

.time-ago {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mention-title-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== SENTIMENT BADGES ===== */
.sentiment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sentiment-badge.positive {
    background: var(--success-bg);
    color: #15803d;
}

.sentiment-badge.negative {
    background: var(--danger-bg);
    color: #b91c1c;
}

.sentiment-badge.neutral {
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
}

.sentiment-num.positive {
    color: var(--success);
    font-weight: 700;
}

.sentiment-num.negative {
    color: var(--danger);
    font-weight: 700;
}

/* ===== ALERTS ===== */
.alert-list {}

.alert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.alert-item:hover {
    background: var(--primary-bg);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item.unread {
    background: rgba(99, 102, 241, 0.03);
}

.alert-severity {
    width: 4px;
    height: 32px;
    border-radius: 2px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-title {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.alert-status-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-status-badge.unread {
    background: var(--primary-bg);
    color: var(--primary);
}

.alert-status-badge.read {
    background: var(--bg);
    color: var(--text-muted);
}

.alert-status-badge.resolved {
    background: var(--success-bg);
    color: var(--success);
}

.alert-status-badge.dismissed {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
}

/* ===== ALERTS FEED ===== */
.alerts-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-feed-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    display: flex;
    overflow: hidden;
    transition: all 0.2s;
}

.alert-feed-item:hover {
    box-shadow: var(--shadow);
}

.alert-feed-item.unread {
    border-left: none;
}

.alert-severity-indicator {
    width: 5px;
    flex-shrink: 0;
}

.alert-feed-content {
    padding: 1rem 1.25rem;
    flex: 1;
}

.alert-feed-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.alert-feed-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alert-severity-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.alert-type-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-muted);
}

.alert-feed-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.alert-feed-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.alert-feed-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.alert-keyword {
    font-size: 0.78rem;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.alert-feed-actions {
    display: flex;
    gap: 0.5rem;
}

.resolved-info {
    font-size: 0.8rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== FILTER ===== */
.filter-card {
    margin-bottom: 1.25rem;
}

.filter-form {
    padding: 1rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    flex: 1;
    min-width: 160px;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: white;
    transition: all var(--transition);
    appearance: auto;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-input {
    position: relative;
}

.search-input i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-input input {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.2rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
}

.search-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.filter-actions {
    min-width: auto;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-chip.danger.active {
    background: var(--danger);
    border-color: var(--danger);
}

.filter-chip.warning.active {
    background: var(--warning);
    border-color: var(--warning);
}

.filter-separator {
    width: 1px;
    height: 20px;
    background: var(--border);
}

/* ===== MINI STATS ===== */
.mini-stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.mini-stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mini-stat-dot.positive {
    background: var(--success);
}

.mini-stat-dot.negative {
    background: var(--danger);
}

.mini-stat-dot.neutral {
    background: #9ca3af;
}

.mini-stat-label {
    color: var(--text-secondary);
}

.mini-stat-value {
    font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-outline {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    font-size: 0.82rem;
}

.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.icon-btn.active {
    color: var(--primary);
    background: var(--primary-bg);
    border-color: var(--primary);
}

.icon-btn.danger:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-bg);
}

.bookmark-btn.active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.flag-btn.active {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: var(--danger);
}

/* ===== MENTIONS GRID ===== */
.mentions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mention-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    transition: all 0.2s;
}

.mention-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.mention-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.mention-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mention-source {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mention-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mention-actions {
    display: flex;
    gap: 0.35rem;
}

.mention-card-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.mention-card-title:hover {
    color: var(--primary);
}

.mention-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mention-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mention-metrics {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mention-metrics span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mention-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

/* ===== MENTION DETAIL ===== */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.detail-meta span {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-chip {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
    color: var(--text);
}

.related-item:hover {
    background: var(--primary-bg);
}

.related-item:last-child {
    border-bottom: none;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.related-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sentiment-big-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sentiment-big-badge.positive {
    background: var(--success-bg);
    color: #15803d;
}

.sentiment-big-badge.negative {
    background: var(--danger-bg);
    color: #b91c1c;
}

.sentiment-big-badge.neutral {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
}

.sentiment-big-badge i {
    font-size: 1.5rem;
}

.sentiment-score-bar {}

.score-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

.score-track {
    height: 8px;
    background: linear-gradient(90deg, #ef4444, #fbbf24, #22c55e);
    border-radius: 4px;
    position: relative;
    margin-bottom: 0.3rem;
}

.score-marker {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--text);
    border-radius: 50%;
    transform: translateX(-50%);
}

.score-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.metrics-list {}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-label i {
    width: 16px;
    color: var(--primary);
}

.metric-value {
    font-weight: 700;
    font-size: 0.88rem;
}

.detail-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
}

.pagination {
    display: flex;
    gap: 0.35rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-dots {
    padding: 0 0.5rem;
    color: var(--text-muted);
    line-height: 36px;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ===== SOURCES GRID ===== */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.source-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    transition: all 0.2s;
}

.source-card:hover {
    box-shadow: var(--shadow);
}

.source-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.source-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.source-type-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.source-active-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    margin-left: auto;
}

.source-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.source-url {
    font-size: 0.75rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.source-stat {
    text-align: center;
}

.source-stat-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.source-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.credibility-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.credibility-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
}

.source-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-card-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.form-input select {
    appearance: auto;
}

.source-category {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== SOCIAL MEDIA ===== */
.platform-badge {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.engagement-rate {
    color: var(--primary);
    font-weight: 700;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.account-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.account-card:hover {
    background: var(--primary-bg);
}

.account-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.account-platform {
    font-size: 1.5rem;
}

.verified-badge {
    color: #3b82f6;
    font-size: 0.75rem;
}

.account-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.account-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.account-stat {}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.post-content-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== KEYWORDS ===== */
.keyword-text {
    color: var(--primary);
}

.group-badge {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.priority-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

.priority-badge.high {
    background: var(--danger-bg);
    color: var(--danger);
}

.priority-badge.medium {
    background: var(--warning-bg);
    color: var(--warning);
}

.priority-badge.low {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

.recent-count {
    font-weight: 700;
    color: var(--primary);
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.toggle-track {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #d1d5db;
    position: relative;
    transition: background 0.2s;
}

.status-toggle.active .toggle-track {
    background: var(--success);
}

.toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.status-toggle.active .toggle-thumb {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.modal-body {
    padding: 1.25rem;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* ===== REPORTS ===== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.report-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    transition: all 0.2s;
}

.report-card:hover {
    box-shadow: var(--shadow);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.report-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--primary-bg);
    color: var(--primary);
}

.report-status {
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.report-status.completed {
    color: var(--success);
}

.report-status.generating {
    color: var(--warning);
}

.report-status.failed {
    color: var(--danger);
}

.report-status.draft {
    color: var(--text-muted);
}

.report-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.report-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.report-meta i {
    margin-right: 0.2rem;
}

.report-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.report-stat {}

.report-stat-value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.report-stat-value.positive {
    color: var(--success);
}

.report-stat-value.negative {
    color: var(--danger);
}

.report-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== CAMPAIGNS ===== */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1rem;
}

.campaign-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    transition: all 0.2s;
}

.campaign-card:hover {
    box-shadow: var(--shadow);
}

.campaign-header {
    margin-bottom: 0.75rem;
}

.campaign-status {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 3px 10px;
    border-radius: 6px;
}

.campaign-status.active {
    background: var(--success-bg);
    color: var(--success);
}

.campaign-status.paused {
    background: var(--warning-bg);
    color: var(--warning);
}

.campaign-status.completed {
    background: var(--primary-bg);
    color: var(--primary);
}

.campaign-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.campaign-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.campaign-progress {
    margin-bottom: 0.75rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 4px;
    transition: width 0.5s;
}

.progress-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.campaign-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.campaign-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.keyword-chip {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ===== COMPETITORS ===== */
.highlight-card {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
}

.our-performance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.our-perf-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.our-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.our-perf-header h3 {
    font-weight: 800;
    font-size: 1.15rem;
}

.our-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.our-perf-stats {
    display: flex;
    gap: 2.5rem;
}

.perf-stat {
    text-align: center;
}

.perf-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.perf-value.positive {
    color: var(--success);
}

.perf-value.negative {
    color: var(--danger);
}

.perf-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.competitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.competitor-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    transition: all 0.2s;
}

.competitor-card:hover {
    box-shadow: var(--shadow);
}

.competitor-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.competitor-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.competitor-name {
    font-size: 1rem;
    font-weight: 700;
}

.competitor-industry {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.competitor-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.competitor-website {
    font-size: 0.78rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.competitor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.comp-stat {
    text-align: center;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.comp-stat-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.comp-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ===== SETTINGS ===== */
.settings-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.settings-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    height: fit-content;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    margin-bottom: 0.25rem;
}

.settings-nav-item:hover,
.settings-nav-item.active {
    background: var(--primary-bg);
    color: var(--primary);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    gap: 2rem;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.setting-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.setting-item .form-input {
    max-width: 250px;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
}

.role-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.role-badge.admin {
    background: var(--primary-bg);
    color: var(--primary);
}

.role-badge.analyst {
    background: var(--purple-bg);
    color: var(--purple);
}

.role-badge.viewer {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

.status-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-pill.active {
    background: var(--success-bg);
    color: var(--success);
}

.status-pill.inactive {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

.type-badge {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.about-info {
    text-align: center;
    padding: 1rem 0;
}

.about-logo {
    margin-bottom: 1.5rem;
}

.logo-icon.large {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
}

.about-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.version-badge {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.about-desc {
    max-width: 500px;
    margin: 1rem auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-feature i {
    color: var(--success);
}

.text-muted {
    color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

    .grid-2,
    .grid-detail {
        grid-template-columns: 1fr;
    }

    .our-performance {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 99;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .page-content {
        padding: 1rem;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mentions-grid {
        grid-template-columns: 1fr;
    }

    .header-date {
        display: none;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .mini-stats-row {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .sentiment-overview {
        flex-direction: column;
    }

    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .campaigns-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }

    .sources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .kpi-value {
        font-size: 1.3rem;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
    }
}