* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #080808; color: #e0e0e0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.top-header { background: #111; border-bottom: 1px solid #222; padding: 15px 40px; display: flex; align-items: center; gap: 30px; }
.logo { font-size: 22px; font-weight: bold; color: #667eea; }
.top-nav { display: flex; gap: 10px; flex: 1; }
.nav-item { padding: 10px 20px; border-radius: 8px; cursor: pointer; color: #888; transition: 0.2s; font-size: 14px; white-space: nowrap; }
.nav-item:hover { background: #1a1a1a; color: #fff; }
.nav-item.active { background: #667eea; color: #fff; }
.main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.page { padding: 40px; max-width: 1200px; width: 100%; margin: 0 auto; display: none; }
.page.active { display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #111; padding: 20px; border-radius: 12px; border: 1px solid #333; text-align: center; }
.stat-card .value { font-size: 28px; font-weight: bold; color: #667eea; }
.card { background: #111; border-radius: 12px; border: 1px solid #222; padding: 25px; margin-bottom: 20px; }
.item { background: #1a1a1a; padding: 20px; border-radius: 10px; border: 1px solid #222; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.btn { padding: 10px 18px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; transition: 0.2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #667eea; color: #fff; }
.btn-danger { background: rgba(245, 101, 101, 0.1); color: #f56565; border: 1px solid rgba(245, 101, 101, 0.2); }
.btn-outline { background: transparent; border: 1px solid #333; color: #888; }
.btn-success { background: rgba(72, 187, 120, 0.15); color: #48bb78; border: 1px solid rgba(72, 187, 120, 0.3); }
.badge { padding: 6px 12px; border-radius: 5px; font-size: 11px; font-weight: bold; }
.badge-cf { background: rgba(243, 128, 32, 0.1); color: #f38020; }
.badge-live { background: rgba(72, 187, 120, 0.1); color: #48bb78; }
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.9); 
    z-index: 1000; 
}
.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.modal-content { 
    background: #111; 
    padding: 30px; 
    border-radius: 15px; 
    max-width: 450px;
    width: 90%;
    border: 1px solid #222;
    max-height: 90vh;
    overflow-y: auto;
}
input { width: 100%; padding: 12px; background: #1a1a1a; border: 1px solid #333; color: #fff; border-radius: 8px; margin-bottom: 15px; }
.guide-top { background: rgba(243, 128, 32, 0.05); border: 1px solid rgba(243, 128, 32, 0.2); border-left: 4px solid #f38020; padding: 20px; border-radius: 8px; margin-bottom: 30px; }
.guide-top h4 { color: #f38020; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 13px; line-height: 1.6; }
code { background: #000; padding: 2px 5px; border-radius: 4px; color: #48bb78; font-family: monospace; }
.path-link { color: #48bb78; text-decoration: none; font-family: monospace; transition: 0.2s; }
.path-link:hover { color: #667eea; text-decoration: underline; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Log tabs */
.log-tab { 
    padding: 10px 20px; 
    background: transparent; 
    border: none; 
    color: #888; 
    cursor: pointer; 
    border-bottom: 2px solid transparent; 
    transition: 0.2s;
    font-size: 13px;
    font-weight: 600;
}
.log-tab:hover { color: #fff; }
.log-tab.active { color: #667eea; border-bottom-color: #667eea; }
.log-section { display: none; }
.log-section.active { display: block; }

/* Session list improvements */
.session-info { flex: 1; }
.session-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.info-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; background: #111; border-radius: 4px; font-size: 12px; }

/* Tooltips - кастомные чёрные блоки */
[data-tooltip] { 
    position: relative; 
    cursor: help; 
}
[data-tooltip]:hover::after { 
    content: attr(data-tooltip); 
    position: absolute; 
    bottom: 100%; 
    left: 50%; 
    transform: translateX(-50%);
    background: #000; 
    color: #fff; 
    padding: 8px 12px; 
    border-radius: 6px; 
    white-space: nowrap; 
    font-size: 11px; 
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    pointer-events: none;
}
[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000;
    margin-bottom: 3px;
    z-index: 1001;
    pointer-events: none;
}

/* Checkboxes */
input[type="checkbox"] {
    accent-color: #667eea;
    cursor: pointer;
}

/* Bulk actions panel */
.bulk-actions {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

/* Progress bar */
#bulk-progress {
    animation: slideIn 0.3s ease-out;
}

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