/* Terminal CSS - Красивий термінал */

/* Terminal header */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d30;
    border-bottom: 1px solid #3e3e42;
    padding: 0;
    height: 35px;
    flex-shrink: 0;
}

.terminal-tabs {
    display: flex;
    height: 100%;
}

.terminal-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 12px;
    color: #cccccc;
    cursor: pointer;
    border-right: 1px solid #3e3e42;
    transition: background-color 0.2s;
}

.terminal-tab.active {
    background: #1e1e1e;
    color: #ffffff;
}

.terminal-tab:hover {
    background: #37373d;
}

.terminal-actions {
    padding: 0 8px;
    display: flex;
    gap: 4px;
}

.terminal-btn {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-btn:hover {
    background: #37373d;
    color: #ffffff;
}

/* КРАСИВИЙ ТЕРМІНАЛ КОНТЕНТ */
.terminal-content {
    flex: 1;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-y: auto;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 0 0 4px 4px;
}

.terminal-welcome {
    color: #00d4aa;
    margin-bottom: 12px;
    font-weight: 600;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    text-shadow: 0 0 4px rgba(0, 212, 170, 0.3);
}

.terminal-log {
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    transition: all 0.2s ease;
}

.terminal-log:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.terminal-error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
}

.terminal-success {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    border-left-color: #51cf66;
    box-shadow: 0 2px 8px rgba(81, 207, 102, 0.15);
}

.terminal-info {
    color: #74c0fc;
    background: rgba(116, 192, 252, 0.1);
    border-left-color: #74c0fc;
    box-shadow: 0 2px 8px rgba(116, 192, 252, 0.15);
}

.terminal-warning {
    color: #ffd43b;
    background: rgba(255, 212, 59, 0.1);
    border-left-color: #ffd43b;
    box-shadow: 0 2px 8px rgba(255, 212, 59, 0.15);
}

/* Красиві посилання в терміналі */
.terminal-log a {
    color: #00d4aa;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    margin-left: 4px;
}

.terminal-log a:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
    text-shadow: 0 0 4px rgba(0, 212, 170, 0.5);
}

.terminal-log a:before {
    content: "🔗";
    font-size: 10px;
}

/* Timestamp styling */
.terminal-log span[style*="opacity"] {
    color: #666;
    font-size: 11px;
    font-weight: 400;
    margin-right: 8px;
    background: rgba(102, 102, 102, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Спеціальні іконки для типів логів */
.terminal-success:before {
    content: "✅ ";
    margin-right: 4px;
}

.terminal-error:before {
    content: "❌ ";
    margin-right: 4px;
}

.terminal-info:before {
    content: "ℹ️ ";
    margin-right: 4px;
}

.terminal-warning:before {
    content: "⚠️ ";
    margin-right: 4px;
}

/* Hash та адреси */
.terminal-log code, 
.terminal-log .hash {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar для терміналу */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4aa, #007acc);
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00e6c0, #0088ff);
}