﻿/* ========================================
   9Bot Dashboard - Design System
   Tema: Neon Pink/Purple Premium Dark
   ======================================== */

/* ========== IMPORTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    /* Core Colors */
    --background: hsl(0, 0%, 0%);
    --foreground: hsl(0, 0%, 100%);

    /* Card Colors */
    --card: hsl(0, 0%, 5%);
    --card-foreground: hsl(0, 0%, 100%);

    /* Primary - Neon Pink */
    --primary: hsl(330, 100%, 60%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-20: hsla(330, 100%, 60%, 0.2);
    --primary-50: hsla(330, 100%, 60%, 0.5);

    /* Secondary - Neon Purple */
    --secondary: hsl(280, 100%, 65%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --secondary-20: hsla(280, 100%, 65%, 0.2);

    /* Muted */
    --muted: hsl(0, 0%, 12%);
    --muted-foreground: hsl(0, 0%, 65%);

    /* Accent */
    --accent: hsl(330, 100%, 60%);
    --accent-foreground: hsl(0, 0%, 100%);

    /* Status Colors */
    --success: hsl(142, 76%, 36%);
    --success-20: hsla(142, 76%, 36%, 0.2);
    --warning: hsl(38, 92%, 50%);
    --warning-20: hsla(38, 92%, 50%, 0.2);
    --destructive: hsl(0, 84%, 60%);
    --destructive-20: hsla(0, 84%, 60%, 0.2);

    /* Borders */
    --border: hsl(0, 0%, 15%);
    --input: hsl(0, 0%, 15%);
    --ring: hsl(330, 100%, 60%);

    /* Sidebar */
    --sidebar-bg: hsl(0, 0%, 3%);
    --sidebar-foreground: hsl(0, 0%, 85%);
    --sidebar-border: hsl(0, 0%, 12%);
    --sidebar-accent: hsl(0, 0%, 10%);

    /* Neon Effects */
    --neon-pink: hsl(330, 100%, 60%);
    --neon-purple: hsl(280, 100%, 65%);
    --neon-blue: hsl(200, 100%, 50%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-card: linear-gradient(180deg, hsl(0, 0%, 8%) 0%, hsl(0, 0%, 4%) 100%);

    /* Shadows */
    --shadow-neon: 0 0 20px hsla(330, 100%, 60%, 0.3);
    --shadow-card: 0 4px 24px hsla(0, 0%, 0%, 0.5);

    /* Radius */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
}

h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.text-muted {
    color: var(--muted-foreground);
}

.text-primary {
    color: var(--primary);
}





.text-destructive {
    color: var(--destructive);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Login Page Logo Image */
.login-logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-50));
}

/* ========== LAYOUT ========== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 256px;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}



.sidebar-logo {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.logo-image {
    width: 120px;
    height: auto;
    object-fit: contain;
}



.logo-text {
    text-align: center;
}

.admin-text {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}



/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.sidebar-item:hover {
    background: var(--sidebar-accent);
    color: var(--foreground);
}

.sidebar-item.active {
    background: var(--sidebar-accent);
    color: var(--foreground);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-item span {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Collapse Button */
.sidebar-collapse {
    margin: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--muted);
    border: none;
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sidebar-collapse:hover {
    background: var(--sidebar-accent);
}

/* User Profile */
.sidebar-user {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.user-phone {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-more {
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.user-more:hover {
    background: var(--muted);
}

/* ========== HEADER ========== */
.header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--background);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title h1 {
    font-size: 1.5rem;
}

.header-title p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.header-search {
    position: relative;
    max-width: 400px;
    flex: 1;
}

.header-search input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: var(--muted);
    border: none;
    border-radius: 9999px;
    color: var(--foreground);
    font-size: 0.875rem;
    outline: none;
    transition: box-shadow 0.2s;
}

.header-search input::placeholder {
    color: var(--muted-foreground);
}

.header-search input:focus {
    box-shadow: 0 0 0 2px var(--primary-50);
}

.header-search svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted-foreground);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== CARDS ========== */
.card-neon {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.card-neon:hover {
    border-color: var(--primary-50);
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-50);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-card-icon {
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--muted);
    transition: background 0.2s;
}

.stat-card:hover .stat-card-icon {
    background: var(--primary-20);
}

.stat-card-trend {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.stat-card-trend.positive {
    background: var(--success-20);
    color: var(--success);
}

.stat-card-trend.negative {
    background: var(--destructive-20);
    color: var(--destructive);
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Group Card */
.group-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.group-card:hover {
    border-color: var(--primary-50);
}

.group-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.group-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.group-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    transition: border-color 0.2s;
}

.group-card:hover .group-avatar {
    border-color: var(--primary);
}

.group-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.group-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted-foreground);
}

.status-dot.active {
    background: var(--success);
    animation: pulse 2s infinite;
}

.group-status span {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.group-card-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.group-card-stats div {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: hsl(330, 100%, 55%);
}



.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--muted);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    background: var(--muted);
    color: var(--foreground);
}

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-warning:hover {
    background: hsl(45, 100%, 55%);
}

.btn-destructive {
    background: var(--destructive);
    color: white;
}

.btn-destructive:hover {
    background: hsl(0, 70%, 55%);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background: var(--primary-20);
    color: var(--primary);
}

.badge-success {
    background: var(--success-20);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-20);
    color: var(--warning);
}



.badge-muted {
    background: var(--muted);
    color: var(--muted-foreground);
}

/* Badge Engagement */


/* ========== TABLES ========== */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead tr {
    border-bottom: 1px solid var(--border);
}

th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: hsla(0, 0%, 100%, 0.03);
}

td {
    padding: 1rem;
}

/* ========== FORMS ========== */
.input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-20);
}

.input::placeholder {
    color: var(--muted-foreground);
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

/* Switch Toggle */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--muted);
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s;
}

.switch.active {
    background: var(--primary);
}

.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.switch.active::after {
    transform: translateX(20px);
}

/* ========== MODALS ========== */




/* Novo estilo: .modal como overlay autÃ´nomo */
.modal {
    position: fixed;
    inset: 0;
    background: hsla(0, 0%, 0%, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s;
    box-shadow: var(--shadow-card), var(--shadow-neon);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}



.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}





.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ========== GRID SYSTEM ========== */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}







@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


}

/* ========== FLEX UTILITIES ========== */
.flex {
    display: flex;
}



.items-center {
    align-items: center;
}



.justify-between {
    justify-content: space-between;
}





.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.flex-1 {
    flex: 1;
}

/* ========== SPACING ========== */


.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-4 {
    padding: 1rem;
}



.p-6 {
    padding: 1.5rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}





/* ========== GROUP ACTIONS DROPDOWN ========== */
.group-actions-wrapper {
    position: relative;
}

.group-actions-toggle {
    z-index: 1;
}

.group-actions-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    min-width: 160px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card), var(--shadow-neon);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.group-actions-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.group-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.group-action-item:hover {
    background: var(--primary-20);
    color: var(--primary);
}

.group-action-item:hover svg {
    stroke: var(--primary);
}

.group-action-item svg {
    flex-shrink: 0;
    transition: stroke 0.15s ease;
}

/* ========== MEMBER ACTIONS DROPDOWN ========== */
.member-actions-wrapper {
    position: relative;
}

.member-actions-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    min-width: 180px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card), var(--shadow-neon);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.member-actions-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.member-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.member-action-item:hover {
    background: var(--primary-20);
    color: var(--primary);
}

.member-action-item:hover svg {
    stroke: var(--primary);
}

.member-action-item.warning:hover {
    background: var(--warning-20);
    color: var(--warning);
}

.member-action-item.warning:hover svg {
    stroke: var(--warning);
}

.member-action-item.danger:hover {
    background: var(--destructive-20);
    color: var(--destructive);
}

.member-action-item.danger:hover svg {
    stroke: var(--destructive);
}

.member-action-divider {
    height: 1px;
    background: var(--border);
    margin: 0.4rem 0;
}

/* ========== MEMBER MODAL COMPONENTS ========== */








































/* Member Profile Modal */














/* Member History Modal */






















.modal-lg {
    max-width: 500px;
}

/* ========== PAGINATION ========== */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.pagination-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-sm[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-limit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-limit label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.pagination-limit select {
    padding: 0.3rem 0.5rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-size: 0.8rem;
    cursor: pointer;
}

.pagination-page {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    padding: 0 0.5rem;
}

.badge-muted {
    background: var(--muted);
    color: var(--muted-foreground);
}

/* ========== SCROLLBAR ========== */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* ========== PAGES CONTAINER ========== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fade-in 0.3s ease-out;
}

/* ========== ACTIVITY LIST ========== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.activity-icon {
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--muted);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-user {
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.activity-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.activity-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.35rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-group {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.engagement-badges {
    display: flex;
    gap: 0.5rem;
}

.engagement-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.engagement-badge.reactions {
    background: var(--primary-20);
    color: var(--primary);
}

.engagement-badge.replies {
    background: var(--secondary-20);
    color: var(--secondary);
}

.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    gap: 0.75rem;
}

.activity-empty p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.activity-empty small {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    opacity: 0.7;
}

/* ========== PROGRESS BAR ========== */




/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    min-width: 300px;
    box-shadow: var(--shadow-card);
    animation: fade-in 0.3s ease-out;
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--destructive);
}

.toast.warning {
    border-left: 3px solid var(--warning);
}

/* ========== LOADING STATES ========== */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.skeleton {
    background: linear-gradient(90deg, var(--muted) 25%, var(--border) 50%, var(--muted) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========== LOGIN PAGE ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: radial-gradient(ellipse at center, hsla(330, 100%, 60%, 0.1) 0%, transparent 70%);
}

.login-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-neon);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ========== RESPONSIVE ========== */

/* Mobile menu button - hidden by default, shown on tablet/mobile */
.mobile-menu-btn {
    display: none;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Tablet breakpoint - Show hamburger, hide sidebar */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex !important;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    /* Header adjustments */
    .header {
        padding: 1rem;
    }

    .header-search {
        display: none;
    }

    .header-actions {
        flex-shrink: 0;
    }

    /* Cards grid adjustments */
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    /* Groups/Activity grid */
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-left {
        flex: 1;
        min-width: 0;
    }

    .header-title h1 {
        font-size: 1.125rem;
    }

    .header-title p {
        font-size: 0.75rem;
        display: none;
    }

    .header-actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }

    .header-actions .flex {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .header-actions .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    /* Dashboard KPI grid - 2 columns on mobile */
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .dashboard-kpi-card {
        padding: 0.75rem;
    }

    .dashboard-kpi-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .dashboard-kpi-value {
        font-size: 1.25rem;
    }

    .dashboard-kpi-label {
        font-size: 0.65rem;
    }

    /* Group cards */
    .group-card {
        padding: 0.75rem;
    }

    .group-avatar {
        width: 36px;
        height: 36px;
    }

    .group-name {
        font-size: 0.875rem;
    }

    /* Main content padding */
    .main-content {
        padding: 1rem;
    }

    /* Section headers */
    .flex.items-center.justify-between {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Activity log entries */
    .activity-log-entry {
        padding: 0.625rem;
    }

    .activity-log-time {
        font-size: 0.625rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header-left {
        gap: 0.5rem;
    }

    .mobile-menu-btn {
        padding: 0.5rem;
    }

    .header-title h1 {
        font-size: 1rem;
    }

    /* Show only 4 KPIs on very small screens */
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-kpi-card:nth-child(5),
    .dashboard-kpi-card:nth-child(6) {
        display: none;
    }

    /* Sidebar full width on small mobile */
    .sidebar {
        width: 100%;
    }

    /* User section in sidebar */
    .sidebar-user {
        padding: 0.75rem;
    }

    .user-avatar {
        width: 44px;
        height: 44px;
    }
}

/* ========== OFFSET FOR SIDEBAR ========== */
.main-wrapper {
    margin-left: 256px;
    transition: margin-left 0.3s ease;
}



/* ========== SELECTED GROUP ========== */
.group-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 15px hsla(330, 100%, 60%, 0.3);
}

.selected-group-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-20);
    border: 1px solid var(--primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-left: 1rem;
}

.selected-group-badge img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primary);
}

.selected-group-badge button {
    opacity: 0.7;
}

.selected-group-badge button:hover {
    opacity: 1;
}

/* ========== CHAT INTERFACE ========== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 220px);
    min-height: 500px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--card);
}

.chat-group-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-group-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.chat-group-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
    scroll-behavior: smooth;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: var(--muted-foreground);
}

/* Message Bubbles */






























/* Message Input */
.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--muted);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--foreground);
    font-size: 0.9rem;
    resize: none;
    max-height: 120px;
    padding: 0.5rem;
}

.chat-input::placeholder {
    color: var(--muted-foreground);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* Loading State */


/* Date Separator */




/* ========== TABS SYSTEM ========== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab:hover {
    color: var(--foreground);
    background: var(--muted);
}

.tab.active {
    color: var(--primary);
    background: var(--primary-20);
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

/* ========== STRIKE CARDS ========== */
.strike-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.strike-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.strike-badge.warn {
    background: var(--warning-20);
    color: var(--warning);
}





/* ========== MODERATION LOG ========== */
.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.log-entry .log-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}



.log-entry .log-icon.warn {
    background: var(--warning-20);
    color: var(--warning);
}





.log-entry .log-content {
    flex: 1;
}

.log-entry .log-time {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

/* ========== TRIGGER CARDS ========== */
.trigger-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}

.trigger-card:hover {
    border-color: var(--primary-50);
}

.trigger-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trigger-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-20);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.trigger-details h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trigger-details p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.trigger-config {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strikes-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--warning-20);
    color: var(--warning);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== REPORTS PAGE ========== */

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reports-header .tabs {
    display: flex;
    gap: 0.5rem;
}

.reports-header .tab {
    padding: 0.5rem 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.reports-header .tab:hover {
    background: var(--border);
}

.reports-header .tab.active {
    background: var(--primary-20);
    border-color: var(--primary);
    color: var(--primary);
}

.period-filter select {
    padding: 0.5rem 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
}

/* Reports Actions Container */
.reports-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.export-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.export-pdf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-50);
}

.export-pdf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kpi-icon {
    font-size: 2rem;
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.kpi-value.positive {
    color: var(--success);
}

.kpi-value.negative {
    color: var(--destructive);
}

.kpi-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.kpi-sublabel {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.kpi-variation {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 0.25rem;
}

.kpi-variation.positive {
    background: var(--success-20);
    color: var(--success);
}

.kpi-variation.negative {
    background: var(--destructive-20);
    color: var(--destructive);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    padding: 1.25rem;
}

.chart-card h4 {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Mini Chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 120px;
    padding-top: 1rem;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: height 0.3s ease;
}

.chart-bar-container:hover .chart-bar {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-50);
}

.chart-label {
    font-size: 0.625rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Media Distribution */
.media-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.media-item {
    display: grid;
    grid-template-columns: 24px 80px 1fr 40px;
    align-items: center;
    gap: 0.5rem;
}

.media-icon {
    font-size: 1rem;
}

.media-label {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.media-bar {
    height: 8px;
    background: var(--muted);
    border-radius: 4px;
    overflow: hidden;
}

.media-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.media-value {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: right;
}

/* Activity Card - Picos de Atividade */
.activity-card {
    padding: 1.25rem;
    margin-top: 1rem;
}

.activity-card h4 {
    margin-bottom: 0.25rem;
}

/* Activity Heatmap - GrÃ¡fico de Picos */
.activity-heatmap {
    padding: 0.5rem 0;
}

.hourly-chart-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
}

.hourly-chart-wrapper::-webkit-scrollbar {
    height: 6px;
}

.hourly-chart-wrapper::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 3px;
}

.hourly-chart-wrapper::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.hourly-chart {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 6px;
    height: 140px;
    min-width: 800px;
    padding: 0 0.5rem;
    align-items: flex-end;
}

.hour-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.hour-fill {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.hour-bar:hover .hour-fill {
    opacity: 1;
    box-shadow: 0 0 12px var(--primary-50);
    transform: scaleX(1.1);
}

.hour-bar.peak .hour-fill {
    background: linear-gradient(to top, var(--warning), hsl(48, 100%, 60%));
    opacity: 1;
    box-shadow: 0 0 15px var(--warning-20);
}

.hour-label {
    font-size: 0.5625rem;
    color: var(--muted-foreground);
    margin-top: 8px;
    white-space: nowrap;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Stats Grid */


/* Pareto Card */
.pareto-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--card) 0%, rgba(139, 69, 139, 0.1) 100%);
}

.pareto-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pareto-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.pareto-content {
    flex: 1;
}

.pareto-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pareto-title strong {
    color: var(--primary);
    font-size: 1.125rem;
}

.pareto-subtitle {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.pareto-total {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--muted);
    border-radius: var(--radius-sm);
}

/* Members Ranking Card */
.members-ranking-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.members-ranking-card h4 {
    margin-bottom: 1rem;
}

/* Ranking List */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 450px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.ranking-item:hover {
    background: var(--border);
}

.ranking-position {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 32px;
    text-align: center;
}

.ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.ranking-info strong {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-info span {
    font-size: 0.6875rem;
}

.ranking-stats {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* Members Stats Grid - Lurkers e Onboarding */
.members-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .members-stats-grid {
        grid-template-columns: 1fr;
    }
}

.lurkers-card,
.onboarding-card {
    padding: 1.25rem;
}

.lurkers-card h4,
.onboarding-card h4 {
    margin-bottom: 0.75rem;
}

/* Lurkers and Onboarding Stats */
.lurker-stats {
    padding: 0.5rem 0;
}

.lurker-count {
    font-size: 3rem;
    font-weight: 700;
    color: var(--warning);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.onboarding-stats {
    padding: 0.25rem 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.stat-row strong {
    color: var(--foreground);
    font-size: 1rem;
}

/* Moderation KPIs - Nova Grid */
.moderation-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .moderation-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .moderation-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.moderation-kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.moderation-kpi-card:hover {
    border-color: var(--primary-50);
    transform: translateY(-2px);
}

.moderation-kpi-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
}

.moderation-kpi-icon.spam {
    filter: hue-rotate(280deg);
}

.moderation-kpi-icon.links {
    filter: hue-rotate(180deg);
}

.moderation-kpi-icon.strikes {
    filter: hue-rotate(45deg);
}

.moderation-kpi-icon.actions {
    filter: hue-rotate(0deg);
}

.moderation-kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1;
}

.moderation-kpi-label {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.moderation-kpi-sublabel {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
    opacity: 0.8;
}

/* Moderation Content Grid - 2 colunas */
.moderation-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .moderation-content-grid {
        grid-template-columns: 1fr;
    }
}

.moderation-section-card {
    padding: 1.25rem;
}

.moderation-section-card h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Infractors List */
.infractors-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
}

.infractor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.infractor-item:hover {
    background: var(--border);
}

.infractor-avatar {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border-radius: 50%;
    flex-shrink: 0;
}

.infractor-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.infractor-info strong {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.infractor-info span {
    font-size: 0.6875rem;
}

.infractor-badges {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* Actions List */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.action-item:hover {
    background: var(--border);
}

.action-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.action-info {
    flex: 1;
    min-width: 0;
}

.action-info strong {
    font-size: 0.8125rem;
    display: block;
}

.action-reason {
    display: block;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-time {
    font-size: 0.625rem;
    color: var(--muted-foreground);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.loading-container p {
    color: var(--muted-foreground);
}

/* ========== CAMPAIGNS TAB ========== */

/* Campaigns KPIs Grid */
.campaigns-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .campaigns-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .campaigns-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.campaigns-kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.campaigns-kpi-card:hover {
    border-color: var(--primary-50);
    transform: translateY(-2px);
}

.campaigns-kpi-card.success {
    border-color: var(--success-20);
    background: linear-gradient(135deg, var(--card) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.campaigns-kpi-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.campaigns-kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1;
}

.campaigns-kpi-label {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.campaigns-kpi-sublabel {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
    opacity: 0.8;
}

/* Campaigns Content Grid */
.campaigns-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .campaigns-content-grid {
        grid-template-columns: 1fr;
    }
}

.campaigns-section-card {
    padding: 1.25rem;
    overflow: hidden;
    min-width: 0;
}

.campaigns-section-card h4 {
    margin-bottom: 1rem;
}

/* Engagement Stats */
.engagement-stats {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
    overflow: hidden;
}

.engagement-item {
    display: grid;
    grid-template-columns: minmax(100px, 140px) 1fr minmax(60px, 100px);
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.engagement-label {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 500px) {
    .engagement-item {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
}

.engagement-label {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.engagement-bar {
    height: 10px;
    background: var(--muted);
    border-radius: 5px;
    overflow: hidden;
}

.engagement-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.engagement-fill.reactions {
    background: linear-gradient(90deg, var(--destructive), hsl(350, 100%, 70%));
}

.engagement-fill.links {
    background: linear-gradient(90deg, var(--success), hsl(150, 80%, 50%));
}

.engagement-value {
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Campaigns Ranking */
.campaigns-ranking {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.campaign-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.campaign-item:hover {
    background: var(--border);
}

.campaign-item.best {
    border-left-color: var(--success);
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, var(--muted) 50%);
}

.campaign-item.worst {
    border-left-color: var(--destructive);
}

.campaign-rank {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 28px;
    text-align: center;
}

.campaign-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.campaign-info strong {
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-info span {
    font-size: 0.6875rem;
}

.campaign-stats {
    flex-shrink: 0;
}

/* A/B Testing Card */
.ab-testing-card {
    padding: 1.25rem;
}

.ab-testing-card h4 {
    margin-bottom: 0.375rem;
}

.ab-tests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ab-test-item {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 1rem;
}

.ab-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ab-test-header strong {
    font-size: 0.9375rem;
}

.ab-variants {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.ab-variant {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
}

.ab-variant.winner {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--card) 0%, rgba(34, 197, 94, 0.1) 100%);
}

.variant-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.variant-stats span {
    font-size: 0.8125rem;
}

/* ========== BOT HEALTH TAB ========== */

/* Bot Health KPI Grid */
.bot-health-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .bot-health-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bot-health-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.bot-health-kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.bot-health-kpi-card:hover {
    border-color: var(--primary-50);
    transform: translateY(-2px);
}

.bot-health-kpi-card.status {
    background: linear-gradient(135deg, var(--card) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.bot-health-kpi-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.bot-health-kpi-content {
    flex: 1;
}

.bot-health-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.bot-health-kpi-value.positive {
    color: var(--success);
}

.bot-health-kpi-value.negative {
    color: var(--destructive);
}

.bot-health-kpi-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.bot-health-kpi-sublabel {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Bot Health Content Grid */
.bot-health-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .bot-health-content-grid {
        grid-template-columns: 1fr;
    }
}

.bot-health-section-card {
    padding: 1.25rem;
}

.bot-health-section-card h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Queue Stats */
.queue-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.queue-status-row,
.queue-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-stat-row span {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.queue-warning {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius);
    text-align: center;
}

/* Error Summary */
.errors-summary {
    text-align: center;
}

.error-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.error-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.error-count.high {
    color: var(--destructive);
}

.error-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.errors-by-type {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
}

.error-type-name {
    font-size: 0.8125rem;
}

/* Latency Chart */
.latency-chart-wrapper {
    overflow-x: auto;
}

.latency-chart {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
    height: 140px;
    min-width: 600px;
    align-items: flex-end;
}

.latency-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.latency-fill {
    width: 100%;
    background: linear-gradient(to top, var(--success), hsl(150, 80%, 50%));
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.latency-bar:hover .latency-fill {
    opacity: 1;
    transform: scaleX(1.1);
}

.latency-bar.peak .latency-fill {
    background: linear-gradient(to top, var(--warning), hsl(48, 100%, 60%));
}

.latency-bar.slow .latency-fill {
    background: linear-gradient(to top, var(--destructive), hsl(0, 100%, 70%));
}

.latency-hour {
    font-size: 0.5625rem;
    color: var(--muted-foreground);
    margin-top: 4px;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    background: var(--muted);
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
}







.event-item.error {
    border-left-color: var(--destructive);
}

.event-type {
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.event-reason {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-duration {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
}

.event-time {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

/* Errors List */
.errors-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.error-item {
    padding: 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
    border-left: 3px solid var(--destructive);
}

.error-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0 0 0.5rem 0;
    word-break: break-word;
}

.error-dates {
    display: flex;
    gap: 1rem;
    font-size: 0.625rem;
    color: var(--muted-foreground);
}

/* Downtime Card */
.bot-health-downtime-card {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--card) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid var(--destructive-20);
}

.bot-health-downtime-card h4 {
    margin-bottom: 0.75rem;
}

.downtime-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.downtime-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--destructive);
}

.downtime-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ========================================
   CHAT COMPONENT STYLES
   ======================================== */

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 250px);
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    flex-shrink: 0;
}

.chat-group-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-group-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.chat-group-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.chat-group-info p {
    font-size: 0.75rem;
    margin: 0;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Empty State */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: var(--muted-foreground);
}

.chat-empty svg {
    opacity: 0.5;
}

/* Loading State */


/* Date Separator */
.chat-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.chat-date-separator span {
    background: var(--muted);
    color: var(--muted-foreground);
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

/* Message Wrapper */
.message-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    max-width: 85%;
}

.message-wrapper.from-other {
    align-self: flex-start;
    flex-direction: row;
    margin-right: auto;
}

.message-wrapper.from-me {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
}

/* Message Avatar */
.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.message-wrapper.from-me .message-avatar {
    border-color: var(--primary);
}

/* Message Content */
.message-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.message-wrapper.from-me .message-content {
    align-items: flex-end;
}

/* Sender Name */
.message-sender {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.125rem;
}

.message-wrapper.from-me .message-sender {
    color: var(--secondary);
}

/* Message Bubble */
.message-bubble {
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    max-width: 100%;
    word-wrap: break-word;
    position: relative;
}

.message-wrapper.from-other .message-bubble {
    background: var(--muted);
    color: var(--foreground);
    border-bottom-left-radius: 0.25rem;
}

.message-wrapper.from-me .message-bubble {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 0.25rem;
}

/* Message Text */
.message-text {
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Message Time */
.message-time {
    font-size: 0.625rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.message-wrapper.from-me .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Chat Input Area */

















/* Chat Input Area */
.chat-input-area {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--card);
    flex-shrink: 0;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input,
textarea#chatMessageInput {
    flex: 1;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--foreground);
    font-size: 0.875rem;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    font-family: inherit;
}

.chat-input:focus,
textarea#chatMessageInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-20);
}

.chat-send-btn,
button#sendMessageBtn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover,
button#sendMessageBtn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-neon);
}

.chat-send-btn:disabled,
button#sendMessageBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-send-btn svg,
button#sendMessageBtn svg {
    width: 20px;
    height: 20px;
}

/* ========== BROADCAST CHECKBOX CARDS ========== */
.checkbox-card {
    display: block;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-card:hover {
    border-color: var(--primary-50);
    background: rgba(255, 255, 255, 0.02);
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card input[type="checkbox"]:checked~.checkbox-content {
    border-left: 3px solid var(--primary);
    padding-left: 0.875rem;
}

.checkbox-card input[type="checkbox"]:checked~.checkbox-content .checkbox-icon {
    background: var(--primary-20);
    color: var(--primary);
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.checkbox-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label {
    flex: 1;
    min-width: 0;
}

.checkbox-label strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.checkbox-label small {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.checkbox-card input[type="checkbox"]:checked {
    opacity: 1;
}

.checkbox-card::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-card input[type="checkbox"]:checked~.checkbox-content::before {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 1;
}

.checkbox-card:hover::after {
    border-color: var(--primary);
}

/* ========== CHAT INPUT TOOLS & BUILDERS ========== */
.chat-input-tools {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.chat-input-tools .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.813rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}

.chat-input-tools .btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chat-input-tools .btn svg {
    flex-shrink: 0;
}

.chat-builder-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 0.5rem;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.builder-header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.builder-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.button-item,
.poll-option-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.button-item input,
.poll-option-item input {
    flex: 1;
}

.builder-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Checkbox styling */
.checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Width utility */
.w-full {
    width: 100%;
}

/* Margin utilities */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Text utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* ========== REPLY CONTEXT ========== */
.reply-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--muted);
    border-left: 3px solid var(--primary);
    margin: 0;
    animation: slideDown 0.2s ease;
}

.reply-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
}

.reply-preview svg {
    color: var(--primary);
    flex-shrink: 0;
}

.reply-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reply-sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.reply-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== MESSAGE ACTIONS ========== */
.message-actions {
    position: absolute;
    right: 0.25rem;
    top: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.message-bubble {
    position: relative;
}

.message-wrapper:hover .message-actions {
    opacity: 1;
}

.btn-xs {
    padding: 0.25rem;
    font-size: 0.75rem;
}

.message-reply-preview {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    padding: 0.25rem 0.5rem;
    background: var(--muted);
    border-radius: 4px;
    margin-bottom: 0.25rem;
    border-left: 2px solid var(--primary);
}

/* ========== STATUS DOT ========== */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 0.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.badge-success .status-dot {
    background: #22c55e;
}

.badge-muted .status-dot {
    background: var(--muted-foreground);
    animation: none;
}

/* ========== WAITING STATE ========== */
.chat-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--muted-foreground);
}

.waiting-animation {
    display: flex;
    gap: 0.5rem;
}

.waiting-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: waitingBounce 1.4s infinite ease-in-out;
}

.waiting-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.waiting-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.waiting-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes waitingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========== MEMBER PROFILE MODAL ========== */
.member-profile {
    padding: 1rem 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.profile-info h3 {
    margin: 0;
    font-size: 1.25rem;
}

.profile-info p {
    margin: 0.25rem 0 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--muted);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.profile-details {
    background: var(--muted);
    padding: 1rem;
    border-radius: 8px;
}

.profile-details p {
    margin: 0.5rem 0;
}

/* ========== WARN/KICK MODALS ========== */
.warn-modal,
.kick-modal {
    padding: 0.5rem 0;
}

.btn-warning {
    background: #f59e0b;
    color: #000;
}

.btn-warning:hover {
    background: #d97706;
}

@media (max-width: 640px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== MODAL SYSTEM ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .modal-content {
        max-width: 100%;
        margin: 1rem;
    }
}

/* ========== DASHBOARD KPI GRID ========== */
.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.dashboard-kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.dashboard-kpi-card:hover {
    border-color: var(--primary-50);
    transform: translateY(-2px);
}

.dashboard-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.dashboard-kpi-icon.groups {
    background: rgba(157, 78, 221, 0.15);
    color: var(--primary);
}

.dashboard-kpi-icon.members {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.dashboard-kpi-icon.messages {
    background: rgba(139, 92, 246, 0.15);
    color: var(--secondary);
}

.dashboard-kpi-icon.schedules {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.dashboard-kpi-icon.moderation {
    background: rgba(239, 68, 68, 0.15);
    color: var(--destructive);
}

.dashboard-kpi-icon.notifications {
    background: rgba(59, 130, 246, 0.15);
    color: var(--neon-blue);
}

.dashboard-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.dashboard-kpi-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ========== DASHBOARD RECENT ACTIVITY - LOG ENTRIES ========== */
.activity-log-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--border);
    transition: all 0.2s;
}

.activity-log-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-log-entry.strike {
    border-left-color: #f97316;
}

.activity-log-entry.report {
    border-left-color: #f59e0b;
}

.activity-log-entry.schedule {
    border-left-color: #22c55e;
}

.activity-log-entry.moderation {
    border-left-color: #8b5cf6;
}

.activity-log-icon {
    font-size: 1.2rem;
    min-width: 28px;
    text-align: center;
}

.activity-log-content {
    flex: 1;
    min-width: 0;
}

.activity-log-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.activity-log-user {
    font-weight: 600;
    font-size: 0.875rem;
}

.activity-log-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.activity-log-description {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    word-break: break-word;
    margin: 0;
}

.activity-log-time {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.activity-resolver {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    font-style: italic;
    margin-left: 0.25rem;
}

/* ========== REPORTS PAGE - CARDS ========== */
.hot-topics-card,
.activity-card,
.chart-card {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.hot-topics-card h4,
.activity-card h4,
.chart-card h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hot-topics-card>p.text-muted,
.activity-card>p.text-muted,
.chart-card>p.text-muted {
    margin: 0 0 1rem 0;
    font-size: 0.75rem;
}

.hot-topics-list {
    margin-top: 0.5rem;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* KPI Grid for Reports */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1000px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s;
}

.kpi-card:hover {
    border-color: var(--primary-50);
    transform: translateY(-2px);
}

.kpi-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.kpi-value.positive {
    color: var(--success);
}

.kpi-value.negative {
    color: var(--destructive);
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.kpi-sublabel {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

.kpi-variation {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.kpi-variation.positive {
    color: var(--success);
}

.kpi-variation.negative {
    color: var(--destructive);
}

/* Reports Header */
.reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.reports-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.period-filter select {
    padding: 0.5rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    cursor: pointer;
}

.period-filter select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Activity Heatmap */
.activity-heatmap {
    margin-top: 0.5rem;
}

.hourly-chart-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.hourly-chart {
    display: flex;
    gap: 4px;
    min-width: 600px;
    align-items: flex-end;
    height: 120px;
}

.hour-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.hour-fill {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.hour-bar.peak .hour-fill {
    background: linear-gradient(to top, #f59e0b, #fbbf24);
}

.hour-label {
    font-size: 0.625rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Media Distribution */
.media-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.media-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.media-icon {
    width: 24px;
    text-align: center;
}

.media-label {
    width: 70px;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.media-bar {
    flex: 1;
    height: 8px;
    background: var(--muted);
    border-radius: 4px;
    overflow: hidden;
}

.media-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s;
}

.media-value {
    width: 40px;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ========== GROUP HIGHLIGHT NEON EFFECT ========== */
.group-highlight {
    color: white;
    font-weight: 600;
    display: inline-block;
}