/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-success {
    background: var(--green-bg);
    color: var(--green);
}

.btn-success:hover {
    background: #D5EEE3;
}

.btn-warn {
    background: var(--orange-bg);
    color: var(--orange);
}

.btn-warn:hover {
    background: #FCE7CB;
}

.btn-danger {
    background: var(--red-bg);
    color: var(--red);
}

.btn-danger:hover {
    background: #FAD5D5;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════ INPUTS ═══════════ */
.input-text,
.input-num,
.input-select {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    transition: border-color 0.15s;
}

.input-text:focus,
.input-num:focus,
.input-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.1);
}

.input-text {
    min-width: 200px;
}

.input-num {
    width: 70px;
}

.input-select {
    min-width: 130px;
}

.input-text.flex-1 {
    flex: 1;
}

.inline-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════ TOOLBAR ═══════════ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
}

.toolbar-spacer {
    flex: 1;
}

/* ═══════════ STAT CARDS ═══════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ═══════════ WELCOME ═══════════ */
.welcome-card {
    padding: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.welcome-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.feature-icon {
    font-size: 22px;
    line-height: 1;
}

.feature-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ═══════════ SCREEN ═══════════ */
.screen-host {
    flex: 1;
    background: #0F1A24;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

#screen-canvas,
#rdp-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: crosshair;
}

.fps-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(15, 26, 36, 0.85);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 13px;
}

/* ═══════════ FILES ═══════════ */
.fm-layout {
    flex: 1;
    overflow: hidden;
}

.fm-list-host {
    height: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-y: auto;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.fm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.1s;
}

.fm-item:hover {
    background: var(--bg-hover);
}

.fm-item-icon {
    font-size: 16px;
}

.fm-item-name {
    flex: 1;
}

.fm-item-size {
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-mono);
}

/* ═══════════ STEALER ═══════════ */
.stealer-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    overflow: hidden;
}

.stealer-categories {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.15s;
    margin-bottom: 2px;
}

.category:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.category.active {
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-weight: 600;
}

.cat-count {
    padding: 2px 8px;
    background: var(--bg-card);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.category.active .cat-count {
    background: var(--accent);
    color: white;
}

.stealer-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 12px;
}

.stealer-grid-host {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: auto;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-primary);
    word-break: break-word;
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table tr.selected td {
    background: var(--bg-active);
}

.stealer-detail {
    height: 180px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stealer-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-card);
    font-weight: 600;
    font-size: 12px;
}

.stealer-detail-actions {
    display: flex;
    gap: 6px;
}

.stealer-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: pre-wrap;
    color: var(--text-secondary);
}

/* ═══════════ TERMINAL ═══════════ */
.keylogger-host,
.shell-host {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0F1A24;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.terminal-output {
    flex: 1;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #B8D4F0;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

.shell-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.shell-prompt {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
}

.shell-input-row .input-text {
    background: transparent;
    border: none;
    color: #B8D4F0;
    font-family: var(--font-mono);
    font-size: 13px;
}

.shell-input-row .input-text:focus {
    outline: none;
    box-shadow: none;
}

.shell-tabs {
    display: flex;
    gap: 4px;
    margin-left: 12px;
}

.shell-tab {
    padding: 4px 10px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.shell-tab.active {
    background: var(--accent);
    color: white;
}

/* ═══════════ MODALS ═══════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 43, 60, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
}

.modal-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    pointer-events: none;
}

.modal {
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    min-width: 360px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    pointer-events: auto;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.modal-body .input-text {
    width: 100%;
    margin-bottom: 12px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ═══════════ FLOATING ACTION BUTTON (FAB) ═══════════ */
.fab {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: grab;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    user-select: none;
    transition: background 0.2s, transform 0.1s;
}

.fab:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.fab:active {
    cursor: grabbing;
    transform: scale(0.95);
}

/* ═══════════ FLOATING TOOLBAR ═══════════ */
.floating-toolbar {
    position: absolute;
    bottom: 90px;
    /* Deasupra butonului FAB */
    right: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 300px;
    max-width: 90vw;
    transition: opacity 0.2s, transform 0.2s;
    transform-origin: bottom right;
}

.floating-toolbar.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.floating-toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.floating-toolbar-header span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close-fab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.btn-close-fab:hover {
    background: var(--red-bg);
    color: var(--red);
}

.floating-toolbar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Заблокированные боты в сайдбаре */
.bot-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-hover);
}

.bot-item.locked:hover {
    background: var(--bg-hover);
    /* Убираем подсветку при наведении */
}

.bot-lock-badge {
    margin-left: auto;
    /* Прижимаем к правому краю */
    font-size: 10px;
    background: var(--red-bg, #FAD5D5);
    color: var(--red, #d9534f);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}