        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            min-height: 100vh;
            color: #e2e8f0;
            transition: background 0.3s ease;
            display: flex;
        }
        /* Menu Lateral */
        .sidebar {
            width: 280px;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(12px);
            border-right: 1px solid #334155;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            overflow-y: auto;
            z-index: 20;
            transition: transform 0.3s ease;
        }
        .sidebar-header {
            padding: 1.5rem;
            border-bottom: 1px solid #334155;
        }
        .sidebar-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .sidebar-icon {
            width: 2.5rem;
            height: 2.5rem;
            background: #3b82f6;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        .sidebar-title {
            font-size: 1.125rem;
            font-weight: 700;
        }
        .sidebar-nav {
            padding: 1rem 0;
        }
        .nav-section {
            margin-bottom: 1.5rem;
        }
        .nav-title {
            font-size: 0.75rem;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 0 1.5rem;
            margin-bottom: 0.5rem;
        }
        .nav-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.5rem;
            color: #cbd5e1;
            text-decoration: none;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }
        .nav-item:hover {
            background: rgba(51, 65, 85, 0.3);
            color: #e2e8f0;
            border-left-color: #3b82f6;
        }
        .nav-item.active {
            background: rgba(51, 65, 85, 0.5);
            color: #3b82f6;
            border-left-color: #3b82f6;
        }
        .nav-icon {
            width: 1.25rem;
            height: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .nav-text {
            font-weight: 500;
            font-size: 0.875rem;
        }
        /* Conteúdo Principal */
        .main-content {
            flex: 1;
            margin-left: 280px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        /* Header */
        .header {
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid #334155;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.5rem;
        }
        .header-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: #e2e8f0;
            font-size: 1.25rem;
            cursor: pointer;
            padding: 0.5rem;
        }
        .header-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin: 0;
        }
        .header-subtitle {
            font-size: 0.875rem;
            color: #94a3b8;
            margin: 0;
        }
        .header-right {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .status-dot {
            width: 0.75rem;
            height: 0.75rem;
            border-radius: 50%;
        }
        .status-online {
            background: #22c55e;
            animation: pulse 2s infinite;
        }
        .status-offline {
            background: #ef4444;
        }
        .status-warning {
            background: #f59e0b;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        /* Cards */
        .card {
            background: #1e293b;
            border-radius: 0.75rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid #334155;
            transition: all 0.2s ease;
        }
        .card:hover {
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            border-color: #475569;
        }
        .card-header {
            padding: 1.5rem 1.5rem 0.75rem;
        }
        .card-content {
            padding: 1.5rem;
        }
        .card-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        /* Grid */
        .grid {
            display: grid;
            gap: 1.5rem;
        }
        .grid-cols-4 {
            grid-template-columns: repeat(4, 1fr);
        }
        .grid-cols-3 {
            grid-template-columns: repeat(3, 1fr);
        }
        .grid-cols-2 {
            grid-template-columns: repeat(2, 1fr);
        }
        .lg-col-span-2 {
            grid-column: span 2;
        }
        .lg-col-span-3 {
            grid-column: span 3;
        }
        /* Stats Cards */
        .stat-card {
            text-align: center;
        }
        .stat-card-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .stat-icon {
            width: 3rem;
            height: 3rem;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .stat-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
        .stat-icon.green { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
        .stat-icon.emerald { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .stat-icon.orange { background: rgba(249, 115, 22, 0.2); color: #f97316; }
        .stat-icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
        .stat-icon.red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            line-height: 1;
        }
        .stat-label {
            font-size: 0.875rem;
            color: #94a3b8;
            margin-top: 0.25rem;
        }
        /* Buttons */
        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 0.5rem;
            font-weight: 500;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        .button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .button-primary {
            background: #22c55e;
            color: white;
        }
        .button-primary:hover:not(:disabled) {
            background: #16a34a;
        }
        .button-secondary {
            background: #3b82f6;
            color: white;
        }
        .button-secondary:hover:not(:disabled) {
            background: #2563eb;
        }
        .button-danger {
            background: #ef4444;
            color: white;
        }
        .button-danger:hover:not(:disabled) {
            background: #dc2626;
        }
        .button-warning {
            background: #f59e0b;
            color: white;
        }
        .button-warning:hover:not(:disabled) {
            background: #d97706;
        }
        .button-outline {
            background: transparent;
            border: 1px solid #475569;
            color: #94a3b8;
        }
        .button-outline:hover {
            background: #334155;
        }
        .button-sm {
            padding: 0.5rem 0.75rem;
            font-size: 0.75rem;
        }
        .button-lg {
            padding: 1rem 2rem;
            height: 3rem;
        }
        /* Upload Areas */
        .upload-area {
            border: 2px dashed #475569;
            border-radius: 0.5rem;
            padding: 2rem;
            text-align: center;
            transition: all 0.2s ease;
        }
        .upload-area:hover {
            border-color: #3b82f6;
            background: rgba(30, 41, 59, 0.5);
        }
        .upload-icon {
            width: 2rem;
            height: 2rem;
            color: #94a3b8;
            margin: 0 auto 0.75rem;
        }
        .upload-title {
            font-weight: 500;
            margin-bottom: 0.5rem;
        }
        .upload-subtitle {
            font-size: 0.75rem;
            color: #94a3b8;
            margin-bottom: 1rem;
        }
        /* Form Elements */
        .form-input {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #475569;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            margin-bottom: 0.75rem;
            background: #1e293b;
            color: #e2e8f0;
        }
        .file-input {
            font-size: 0.75rem;
        }
        .file-input::file-selector-button {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 0.5rem 0.75rem;
            border-radius: 0.375rem;
            margin-right: 0.5rem;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .file-input::file-selector-button:hover {
            background: #2563eb;
        }
        /* Logs */
        .logs-container {
            height: 24rem;
            overflow-y: auto;
            background: #0f172a;
            color: #22c55e;
            font-family: 'Courier New', monospace;
            font-size: 0.75rem;
            padding: 1rem;
            border-radius: 0.5rem;
            border: 1px solid #334155;
        }
        .log-entry {
            margin-bottom: 0.25rem;
            opacity: 0.9;
            line-height: 1.4;
        }
        .log-entry:hover {
            opacity: 1;
        }
        .log-timestamp {
            color: #16a34a;
        }
        .log-warning {
            color: #f59e0b;
        }
        .log-error {
            color: #ef4444;
        }
        .log-success {
            color: #22c55e;
        }
        .log-info {
            color: #3b82f6;
        }
        /* Controls */
        .controls {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        .controls-row {
            display: flex;
            gap: 0.75rem;
        }
        .controls-row .button {
            flex: 1;
        }
        /* Utilities */
        .flex {
            display: flex;
        }
        .items-center {
            align-items: center;
        }
        .justify-between {
            justify-content: space-between;
        }
        .gap-2 {
            gap: 0.5rem;
        }
        .mb-8 {
            margin-bottom: 2rem;
        }
        .mb-6 {
            margin-bottom: 1.5rem;
        }
        .mb-4 {
            margin-bottom: 1rem;
        }
        .text-sm {
            font-size: 0.875rem;
        }
        .text-xs {
            font-size: 0.75rem;
        }
        .text-gray {
            color: #94a3b8;
        }
        .w-full {
            width: 100%;
        }
        /* Progress Bar */
        .progress-bar {
            width: 100%;
            height: 0.5rem;
            background: #334155;
            border-radius: 1rem;
            overflow: hidden;
            margin: 0.75rem 0;
        }
        .progress-fill {
            height: 100%;
            background: #22c55e;
            border-radius: 1rem;
            transition: width 0.3s ease;
        }
        /* Loading Spinner */
        .spinner {
            border: 2px solid #334155;
            border-top: 2px solid #3b82f6;
            border-radius: 50%;
            width: 1rem;
            height: 1rem;
            animation: spin 1s linear infinite;
            display: inline-block;
            margin-right: 0.5rem;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* Tabela Histórico */
        .table-container {
            overflow-x: auto;
            border-radius: 0.5rem;
            border: 1px solid #334155;
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.75rem;
        }
        .data-table th {
            background: #0f172a;
            padding: 0.75rem 1rem;
            text-align: left;
            font-weight: 600;
            color: #94a3b8;
            border-bottom: 1px solid #334155;
        }
        .data-table td {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #334155;
            color: #e2e8f0;
        }
        .data-table tr:hover {
            background: rgba(51, 65, 85, 0.3);
        }
        .data-table a {
            color: #3b82f6;
            text-decoration: none;
        }
        .data-table a:hover {
            text-decoration: underline;
        }
        /* Filtros */
        .filters {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .filter-label {
            font-size: 0.75rem;
            color: #94a3b8;
            font-weight: 500;
        }
        .filter-select {
            background: #1e293b;
            border: 1px solid #475569;
            border-radius: 0.375rem;
            padding: 0.5rem;
            color: #e2e8f0;
            font-size: 0.75rem;
            min-width: 150px;
        }
        /* Modal de Edição */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
        }
        .modal-content {
            background: #1e293b;
            margin: 5% auto;
            padding: 2rem;
            border-radius: 0.75rem;
            border: 1px solid #334155;
            width: 90%;
            max-width: 600px;
            position: relative;
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .modal-title {
            font-size: 1.25rem;
            font-weight: 600;
        }
        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #94a3b8;
            cursor: pointer;
        }
        .close-modal:hover {
            color: #e2e8f0;
        }
        .form-group {
            margin-bottom: 1rem;
        }
        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: #e2e8f0;
        }
        .form-control {
            width: 100%;
            padding: 0.75rem;
            background: #0f172a;
            border: 1px solid #475569;
            border-radius: 0.375rem;
            color: #e2e8f0;
            font-size: 0.875rem;
        }
        .form-control:focus {
            outline: none;
            border-color: #3b82f6;
        }
        .checkbox-cell {
            text-align: center;
        }
        .btn-edit {
            background: rgba(59, 130, 246, 0.2);
            border: none;
            color: #3b82f6;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            cursor: pointer;
            margin-right: 0.25rem;
        }
        .btn-edit:hover {
            background: rgba(59, 130, 246, 0.3);
        }
        .btn-delete {
            background: rgba(239, 68, 68, 0.2);
            border: none;
            color: #ef4444;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            cursor: pointer;
        }
        .btn-delete:hover {
            background: rgba(239, 68, 68, 0.3);
        }
        /* Responsive */
        @media (max-width: 1024px) {
            .grid-cols-4 {
                grid-template-columns: repeat(2, 1fr);
            }
            .grid-cols-3 {
                grid-template-columns: 1fr;
            }
            .lg-col-span-2 {
                grid-column: span 1;
            }
            .lg-col-span-3 {
                grid-column: span 1;
            }
        }
        @media (max-width: 768px) {
            .grid-cols-2 {
                grid-template-columns: 1fr;
            }
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .main-content {
                margin-left: 0;
            }
            .menu-toggle {
                display: block;
            }
        }
        @media (max-width: 640px) {
            .container {
                padding: 0 1rem;
            }
            .header-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            .controls-row {
                flex-direction: column;
            }
            .stat-card-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
        }
        /* Icons usando Unicode */
        .icon::before {
            font-family: 'Lucide';
            font-size: 1.25rem;
        }
        .icon-bot::before { content: "🤖"; }
        .icon-file::before { content: "📄"; }
        .icon-users::before { content: "👥"; }
        .icon-check::before { content: "✅"; }
        .icon-activity::before { content: "⚡"; }
        .icon-play::before { content: "▶️"; }
        .icon-stop::before { content: "⏹️"; }
        .icon-upload::before { content: "📤"; }
        .icon-trash::before { content: "🗑️"; }
        .icon-settings::before { content: "⚙️"; }
        .icon-trending::before { content: "📈"; }
        .icon-refresh::before { content: "🔄"; }
        .icon-rocket::before { content: "🚀"; }
        .icon-profile::before { content: "👤"; }
        .icon-retry::before { content: "🔄"; }
        .icon-warning::before { content: "⚠️"; }
        .icon-history::before { content: "📊"; }
        .icon-folder::before { content: "📁"; }
        .icon-store::before { content: "🏪"; }
        .icon-globe::before { content: "🌐"; }
        /* Tabela de Proxies */
        #page-proxy .data-table th:nth-child(1) { width: 5%; }
        #page-proxy .data-table th:nth-child(2) { width: 30%; }
        #page-proxy .data-table th:nth-child(3) { width: 20%; }
        #page-proxy .data-table th:nth-child(4) { width: 15%; }
        #page-proxy .data-table th:nth-child(5) { width: 20%; }
        #page-proxy .data-table th:nth-child(6) { width: 10%; }
        /* Alert System */
        .alert {
            position: fixed;
            top: 1rem;
            right: 1rem;
            max-width: 20rem;
            padding: 1rem;
            border-radius: 0.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            animation: slideIn 0.3s ease;
        }
        .alert-success {
            background: rgba(34, 197, 94, 0.2);
            border: 1px solid #16a34a;
            color: #bbf7d0;
        }
        .alert-error {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid #dc2626;
            color: #fecaca;
        }
        .alert-warning {
            background: rgba(245, 158, 11, 0.2);
            border: 1px solid #d97706;
            color: #fde68a;
        }
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        /* Conteúdo das páginas */
        .page-content {
            display: none;
            padding: 1.5rem;
        }
        .page-content.active {
            display: block;
        }
        /* Estilo para abas de estatísticas */
        .stats-tabs {
            display: flex;
            border-bottom: 1px solid #334155;
            margin-bottom: 1rem;
        }
        .stats-tab {
            padding: 0.5rem 1rem;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: border-color 0.2s ease;
        }
        .stats-tab.active {
            border-bottom-color: #3b82f6;
            color: #3b82f6;
        }
        .stats-tab-content {
            display: none;
        }
        .stats-tab-content.active {
            display: block;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }
        .stat-item {
            background: #0f172a;
            padding: 1rem;
            border-radius: 0.5rem;
            border: 1px solid #334155;
        }
        .stat-item-title {
            font-size: 0.875rem;
            color: #94a3b8;
            margin-bottom: 0.5rem;
        }
        .stat-item-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #e2e8f0;
        }
