* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #43e97b;
    --danger: #f5576c;
    --warning: #feca57;
    --info: #4facfe;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --sidebar-width: 260px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #2d3748;
}

/* ========== LOGIN PAGE ========== */
.login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 10px;
}

.logo p {
    color: #718096;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fed7d7;
    color: #c53030;
    border-radius: 8px;
    font-size: 14px;
}

/* ========== DASHBOARD LAYOUT ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--dark) 0%, #16213e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #a0aec0;
    font-size: 12px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border-left-color: var(--primary);
}

.nav-item i {
    margin-right: 12px;
    font-size: 18px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: rgba(245, 87, 108, 0.2);
    color: #fc8181;
    border: 1px solid #fc8181;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.topbar h1 {
    font-size: 24px;
    color: var(--dark);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 24px;
    color: var(--primary);
}

.content {
    padding: 30px;
}

/* ========== PAGES ========== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-info h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

.stat-info p {
    color: #718096;
    font-size: 14px;
}

/* ========== TABLE ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f7fafc;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr:hover {
    background: #f7fafc;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========== STATUS BADGES ========== */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-online {
    background: #c6f6d5;
    color: #22543d;
}

.status-stopped {
    background: #fed7d7;
    color: #c53030;
}

.status-errored {
    background: #feebc8;
    color: #c05621;
}

/* ========== LOGS ========== */
.logs-controls {
    display: flex;
    gap: 10px;
}

.logs-controls select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    min-width: 200px;
}

.logs-container {
    background: #1a202c;
    color: #68d391;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    max-height: 600px;
    overflow-y: auto;
    margin-top: 20px;
}

.logs-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========== MODALS ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal-overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 2001;
    max-width: 500px;
    width: 90%;
}

.modal.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 20px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #718096;
}

.modal-body {
    padding: 25px;
}

.days-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.days-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* ========== CHARTS ========== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.chart-card h3 {
    margin-bottom: 20px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card canvas {
    height: 300px !important;
}

.chart {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}

/* ========== TEMPLATES GRID ========== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.template-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.template-card.loading {
    background: linear-gradient(135deg, #485563 0%, #29323c 100%);
    text-align: center;
}

.template-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-card h3 i {
    font-size: 2rem;
}

.template-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 10px 0;
}

.template-card .template-version {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 10px;
}

.template-card .template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}

.template-card .template-features span {
    background: rgba(255,255,255,0.15);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
}

.template-card .btn-use-template {
    width: 100%;
    margin-top: 15px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card .btn-use-template:hover {
    background: rgba(255,255,255,0.3);
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}

.alert-success {
    background: #e8f5e9;
    color: #388e3c;
    border-left: 4px solid #388e3c;
}

.alert-warning {
    background: #fff3e0;
    color: #f57c00;
    border-left: 4px solid #f57c00;
}

.alert-danger {
    background: #ffebee;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

/* ========== PAGE ACTIONS ========== */
.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-actions input[type="text"],
.page-actions select {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 250px;
}

.page-actions input[type="text"]:focus,
.page-actions select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== MEMBERS CONTAINER ========== */
.members-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.member-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.member-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.member-info h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
}

.member-info p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    animation: slideIn 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success, .toast.success {
    border-left: 4px solid #43e97b;
}

.toast-error, .toast.error {
    border-left: 4px solid #f5576c;
}

.toast-warning, .toast.warning {
    border-left: 4px solid #ffa502;
}

.toast-info, .toast.info {
    border-left: 4px solid #4facfe;
}

.toast-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #2d3748;
}

.toast > i {
    font-size: 1.5rem;
}

.toast-success > i, .toast.success > i {
    color: #43e97b;
}

.toast-error > i, .toast.error > i {
    color: #f5576c;
}

.toast-warning > i, .toast.warning > i {
    color: #ffa502;
}

.toast-info > i, .toast.info > i {
    color: #4facfe;
}

.toast-content {
    flex: 1;
}

.toast-content h4 {
    margin: 0 0 3px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

.toast-content p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
    font-size: 0.85rem;
    color: #718096;
}

/* ========== MODAL LARGE ========== */
.modal-large {
    max-width: 800px;
}

.client-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.detail-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.detail-card h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-card p {
    margin: 5px 0;
    color: #4a5568;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.3s ease-in-out;
}

/* ========== SETTINGS PAGE ========== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
}

.settings-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.settings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
}

.settings-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.settings-body {
    padding: 20px;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
}

.setting-description {
    color: #718096;
    font-size: 13px;
    margin: 5px 0 10px 0;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.setting-toggle:hover {
    background: #edf2f7;
}

.setting-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #cbd5e0;
    border-radius: 34px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.4s;
}

.setting-toggle input:checked ~ .toggle-slider {
    background: #667eea;
}

.setting-toggle input:checked ~ .toggle-slider:before {
    transform: translateX(24px);
}

.api-token-container {
    display: flex;
    gap: 10px;
}

.api-token-container input {
    flex: 1;
    font-family: monospace;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
}

.color-picker input[type="color"] {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.color-picker span {
    color: #718096;
    font-size: 13px;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-primary {
    background: #e0e7ff;
    color: #4f46e5;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ========== TOPBAR MELHORADA ========== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ========== BUSCA GLOBAL ========== */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.search-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-item:hover {
    background: #f7fafc;
}

.search-item i {
    font-size: 20px;
    color: #667eea;
}

.search-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-item-info strong {
    color: #2d3748;
    margin-bottom: 3px;
}

.search-item-info span {
    color: #a0aec0;
    font-size: 12px;
    text-transform: capitalize;
}

.search-empty {
    padding: 30px;
    text-align: center;
    color: #a0aec0;
}

/* ========== BOTÕES DE ÍCONE ========== */
.btn-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f7fafc;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f5576c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
}

/* ========== PAINEL DE NOTIFICAÇÕES ========== */
.notification-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #2d3748;
}

.btn-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f7fafc;
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon-small:hover {
    background: #e2e8f0;
    color: #f5576c;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.notification-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.notification-success {
    border-left-color: #43e97b;
}

.notification-error {
    border-left-color: #f5576c;
}

.notification-warning {
    border-left-color: #ffa502;
}

.notification-info {
    border-left-color: #4facfe;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
}

.notification-error .notification-icon {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
}

.notification-warning .notification-icon {
    background: rgba(255, 165, 2, 0.1);
    color: #ffa502;
}

.notification-info .notification-icon {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
}

.notification-content {
    flex: 1;
}

.notification-message {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-time {
    color: #a0aec0;
    font-size: 12px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* ========== TIMELINE DE ATIVIDADES ========== */
.activity-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #2d3748;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    position: relative;
    padding-bottom: 15px;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background: #e2e8f0;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-success .timeline-marker {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
}

.timeline-error .timeline-marker {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
}

.timeline-warning .timeline-marker {
    background: rgba(255, 165, 2, 0.1);
    color: #ffa502;
}

.timeline-info .timeline-marker {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
}

.timeline-content {
    flex: 1;
    padding-top: 5px;
}

.timeline-message {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 14px;
}

.timeline-time {
    color: #a0aec0;
    font-size: 12px;
}

.timeline-loading,
.timeline-empty {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
}

/* ========== TEMA ESCURO ========== */
body.dark-theme {
    background: #1a202c;
}

body.dark-theme .sidebar {
    background: #2d3748;
}

body.dark-theme .topbar {
    background: #2d3748;
    border-bottom-color: #4a5568;
}

body.dark-theme .stat-card,
body.dark-theme .chart-card,
body.dark-theme .table-container,
body.dark-theme .activity-section,
body.dark-theme .settings-card {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-theme .data-table thead {
    background: #4a5568;
}

body.dark-theme .data-table tbody tr {
    border-bottom-color: #4a5568;
}

body.dark-theme .data-table tbody tr:hover {
    background: #374151;
}

body.dark-theme .modal-content {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-theme .form-input,
body.dark-theme .search-container input {
    background: #374151;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme .search-results,
body.dark-theme .notification-panel {
    background: #2d3748;
}

body.dark-theme .search-item:hover {
    background: #374151;
}

/* ========== MEMBROS COLETADOS ========== */
.members-header {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.members-header h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #2d3748;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.stat-item strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.member-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    color: white;
}

.member-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.member-header i {
    margin-right: 8px;
}

.member-body {
    padding: 15px;
}

.member-body p {
    margin: 0 0 10px 0;
    color: #4a5568;
}

.member-body .group-id {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #a0aec0;
    word-break: break-all;
}

body.dark-theme .members-header,
body.dark-theme .member-card {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-theme .member-body p {
    color: #cbd5e0;
}

body.dark-theme .member-body .group-id {
    color: #718096;
}

body.dark-theme .notification-item {
    background: #374151;
}

/* ========== ANIMAÇÕES ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
