* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1e1e1e;
    color: #d4d4d4;
    overflow: hidden;
}

/* Форма авторизации */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: #1e1e1e;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.login-box {
    background: #252526;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    color: #d4d4d4;
}

.login-box h2 {
    color: #4ec9b0;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
}

.login-box .form-control {
    width: 100%;
    padding: 12px;
    background: #3e3e42;
    border: 1px solid #464647;
    border-radius: 4px;
    color: #d4d4d4;
    font-size: 14px;
    box-sizing: border-box;
}

.login-box .form-control:focus {
    outline: none;
    border-color: #4ec9b0;
}

.login-box .error-message {
    background: rgba(244, 135, 113, 0.1);
    border: 1px solid #f48771;
    color: #f48771;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}

.login-box .btn-success {
    margin-top: 10px;
}

/* Вкладки */
.tabs-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #252526;
    border-bottom: 2px solid #3e3e42;
}

.tab-btn {
    padding: 12px 24px;
    background: #3e3e42;
    border: none;
    border-radius: 6px 6px 0 0;
    color: #d4d4d4;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: #464647;
}

.tab-btn.active {
    background: #1e1e1e;
    color: #4ec9b0;
    border-bottom-color: #4ec9b0;
}

.container {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: 1fr 300px;
    height: 100vh;
    gap: 10px;
    padding: 10px;
}

/* Левая панель */
.left-panel {
    background: #252526;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    grid-row: 1 / 3;
}

.panel-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3e3e42;
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-section h2,
.panel-section h3 {
    color: #4ec9b0;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Статус индикатор */
.status-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #2d2d30;
    border-radius: 6px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #808080;
    animation: pulse 2s infinite;
}

.status-dot.running {
    background: #4ec9b0;
}

.status-dot.stopped {
    background: #f48771;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-weight: 500;
    font-size: 14px;
}

/* Контрольная группа */
.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 14px;
}

.form-control,
.form-control-sm {
    width: 100%;
    padding: 10px;
    background: #3e3e42;
    border: 1px solid #464647;
    border-radius: 4px;
    color: #d4d4d4;
    font-size: 14px;
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.form-control:focus,
.form-control-sm:focus {
    outline: none;
    border-color: #4ec9b0;
}

/* Кнопки */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-success {
    background: #4ec9b0;
    color: #1e1e1e;
}

.btn-success:hover:not(:disabled) {
    background: #45b5a0;
}

.btn-danger {
    background: #f48771;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #e07561;
}

.btn-warning {
    background: #dcdcaa;
    color: #1e1e1e;
}

.btn-warning:hover:not(:disabled) {
    background: #c8c896;
}

.btn-secondary {
    background: #3e3e42;
    color: #d4d4d4;
}

.btn-secondary:hover:not(:disabled) {
    background: #464647;
}

.btn-info {
    background: #569cd6;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #4d8bc5;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Информация о процессе */
.info-section {
    margin-top: 20px;
    padding: 15px;
    background: #2d2d30;
    border-radius: 6px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #3e3e42;
    font-size: 13px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #858585;
}

/* Правая панель */
.right-panel {
    background: #252526;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-header h2 {
    color: #4ec9b0;
    font-size: 20px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    background: #3e3e42;
    border: 1px solid #464647;
    border-radius: 6px;
    color: #d4d4d4;
    font-size: 14px;
    width: 300px;
}

.search-input:focus {
    outline: none;
    border-color: #4ec9b0;
}

/* Фильтры */
.filters-section {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #2d2d30;
    border-radius: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: #cccccc;
    font-size: 13px;
    white-space: nowrap;
}

/* Таблица */
.table-container {
    flex: 1;
    overflow: auto;
    background: #1e1e1e;
    border-radius: 6px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead {
    background: #2d2d30;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    padding: 12px 8px;
    text-align: left;
    color: #4ec9b0;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    border-bottom: 2px solid #3e3e42;
}

.data-table th:hover {
    background: #3e3e42;
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #2d2d30;
    color: #d4d4d4;
}

.data-table tbody tr:hover {
    background: #2d2d30;
}

.data-table tbody tr:nth-child(even) {
    background: #252526;
}

.data-table tbody tr:nth-child(even):hover {
    background: #2d2d30;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #858585;
}

/* Статус токена */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.purchased {
    background: #4ec9b0;
    color: #1e1e1e;
}

.status-badge.sold {
    background: #f48771;
    color: white;
}

.status-badge.scam {
    background: #c72525;
    color: white;
}

.status-badge.liquidity {
    background: #c72525;
    color: white;
}

/* Action badge */
.action-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #3e3e42;
    color: #d4d4d4;
}

/* ROI стили */
.roi-value {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.roi-value.roi-positive {
    color: #4ec9b0;
    background: rgba(78, 201, 176, 0.1);
}

.roi-value.roi-negative {
    color: #f48771;
    background: rgba(244, 135, 113, 0.1);
}

/* Действия */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    background: #3e3e42;
    color: #d4d4d4;
}

.action-btn:hover {
    background: #464647;
}

.action-btn.view {
    background: #569cd6;
    color: white;
}

.action-btn.view:hover {
    background: #4d8bc5;
}

.action-btn.sell {
    background: #4ec9b0;
    color: white;
}

.action-btn.sell:hover {
    background: #3da896;
}

.action-btn.delete {
    background: #c72525;
    color: white;
}

.action-btn.delete:hover {
    background: #b02020;
}

.action-btn.status {
    background: #d4a017;
    color: white;
}

.action-btn.status:hover {
    background: #b89014;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
}

.pagination button {
    padding: 8px 12px;
    background: #3e3e42;
    border: 1px solid #464647;
    border-radius: 4px;
    color: #d4d4d4;
    cursor: pointer;
    font-size: 12px;
}

.pagination button:hover:not(:disabled) {
    background: #464647;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #4ec9b0;
    color: #1e1e1e;
    border-color: #4ec9b0;
}

.pagination span {
    color: #858585;
    font-size: 12px;
}

/* Нижняя панель - логи */
.bottom-panel {
    grid-column: 2;
    background: #252526;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 55px;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.logs-header h3 {
    color: #4ec9b0;
    font-size: 16px;
}

.logs-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logs-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cccccc;
    font-size: 12px;
    cursor: pointer;
}

.logs-container {
    flex: 1;
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.log-entry {
    padding: 4px 0;
    color: #d4d4d4;
    word-wrap: break-word;
}

.log-entry.error {
    color: #f48771;
}

.log-entry.warning {
    color: #dcdcaa;
}

.log-entry.info {
    color: #569cd6;
}

.log-entry.success {
    color: #4ec9b0;
}

.log-entry.debug {
    color: #858585;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #464647;
}

/* Адаптивность */
@media (max-width: 1400px) {
    .container {
        grid-template-columns: 300px 1fr;
    }
    
    .search-input {
        width: 200px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr 300px;
    }

    .left-panel {
        grid-row: 1;
    }

    .bottom-panel {
        grid-column: 1;
    }
}

/* ============================================================================
   BLACKLIST STYLES
   ============================================================================ */

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #252526;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #3e3e42;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #3e3e42;
}

.modal-header h3 {
    margin: 0;
    color: #4ec9b0;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    color: #d4d4d4;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #f48771;
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #d4d4d4;
    font-size: 13px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #3e3e42;
}

/* Кнопка копирования */
.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-copy:hover {
    opacity: 1;
}

/* Маленькая кнопка */
.btn-xs {
    padding: 4px 8px;
    font-size: 12px;
}

/* Ячейка с адресом */
.address-cell {
    display: flex;
    align-items: center;
    gap: 5px;
}

.address-link {
    color: #4ec9b0;
    text-decoration: none;
    font-family: monospace;
    font-size: 13px;
}

.address-link:hover {
    text-decoration: underline;
}

.tx-link {
    color: #569cd6;
    text-decoration: none;
    font-family: monospace;
    font-size: 13px;
}

.tx-link:hover {
    text-decoration: underline;
}

/* Бейджи сетей */
.network-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.network-base {
    background: #0052ff;
    color: white;
}

.network-ethereum {
    background: #627eea;
    color: white;
}

.network-arbitrum {
    background: #28a0f0;
    color: white;
}

.network-optimism {
    background: #ff0420;
    color: white;
}

.network-polygon {
    background: #8247e5;
    color: white;
}

.network-bsc {
    background: #f3ba2f;
    color: #1e1e1e;
}

.network-avalanche {
    background: #e84142;
    color: white;
}

.network-fantom {
    background: #1969ff;
    color: white;
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-success {
    background: #4ec9b0;
    color: #1e1e1e;
}

.notification-error {
    background: #f48771;
}

.notification-info {
    background: #569cd6;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Сообщение об ошибке в модальном окне */
.error-message {
    color: #f48771;
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(244, 135, 113, 0.1);
    border-radius: 4px;
    margin-top: 10px;
}

/* Пустая таблица и ошибки */
.no-data, .error {
    text-align: center;
    padding: 40px 20px;
    color: #808080;
    font-style: italic;
}

.error {
    color: #f48771;
}

/* Пагинация для blacklist */
#blacklistPagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #3e3e42;
}

.pagination-info {
    color: #808080;
    font-size: 13px;
}

.pagination-buttons {
    display: flex;
    gap: 10px;
}

/* ============================================================================
   BLACKLIST CLEANER STYLES
   ============================================================================ */

/* Cleaner modal - больший размер */
.cleaner-modal {
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cleaner-modal .modal-body {
    overflow-y: auto;
    flex: 1;
}

/* Настройки cleaner */
.cleaner-settings {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.cleaner-settings .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.cleaner-actions {
    margin-bottom: 15px;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #3e3e42;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ec9b0, #569cd6);
    width: 0%;
    animation: progress-indeterminate 1.5s infinite ease-in-out;
}

@keyframes progress-indeterminate {
    0% { width: 0%; margin-left: 0%; }
    50% { width: 50%; margin-left: 25%; }
    100% { width: 0%; margin-left: 100%; }
}

.progress-text {
    text-align: center;
    color: #808080;
    font-size: 13px;
}

/* Cleaner stats */
.cleaner-stats {
    display: flex;
    gap: 20px;
    padding: 10px 15px;
    background: #1e1e1e;
    border-radius: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.cleaner-stats span {
    color: #d4d4d4;
    font-size: 13px;
}

/* Select actions */
.cleaner-select-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Cleaner table */
.cleaner-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    margin-bottom: 15px;
}

.cleaner-table {
    margin: 0;
    font-size: 12px;
}

.cleaner-table th,
.cleaner-table td {
    padding: 8px 10px;
}

.cleaner-table th:first-child,
.cleaner-table td:first-child {
    width: 40px;
    text-align: center;
}

.cleaner-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Row highlighting */
.row-low-balance {
    background: rgba(244, 135, 113, 0.1);
}

.row-low-balance:hover {
    background: rgba(244, 135, 113, 0.2);
}

/* Balance colors */
.balance-low {
    color: #f48771;
    font-weight: 600;
}

.balance-ok {
    color: #4ec9b0;
}

/* Status colors */
.status-low {
    color: #f48771;
}

.status-ok {
    color: #4ec9b0;
}

/* Delete actions */
.cleaner-delete-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #3e3e42;
}

/* Network badges (расширенные) */
.network-avalanche {
    background: #e84142;
    color: white;
}

.network-fantom {
    background: #1969ff;
    color: white;
}

/* Улучшенные address links */
.cleaner-table .address-link {
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .cleaner-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .cleaner-settings {
        flex-direction: column;
    }

    .cleaner-stats {
        flex-direction: column;
        gap: 5px;
    }

    .cleaner-select-actions {
        flex-direction: column;
    }
}

/* ============================================================================
   BLACKLIST CONTROL PANEL
   ============================================================================ */

.blacklist-control-panel {
    background: #2d2d30;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid #3e3e42;
}

.blacklist-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.blacklist-control-header h3 {
    color: #4ec9b0;
    font-size: 16px;
    margin: 0;
}

.blacklist-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blacklist-status .status-dot {
    width: 10px;
    height: 10px;
}

.blacklist-status .status-text {
    font-size: 13px;
    color: #d4d4d4;
}

.blacklist-control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blacklist-process-info {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #3e3e42;
    flex-wrap: wrap;
}

.blacklist-process-info .info-item {
    display: inline-flex;
    gap: 5px;
    padding: 0;
    border: none;
    font-size: 13px;
    color: #858585;
}

.blacklist-process-info .info-item strong {
    color: #d4d4d4;
}

