﻿/* ==========================================================================
   MINOR STUDIOS & COMPONENTS
   ========================================================================== */

/* --- Studio Sidebar --- */
.sidebar-tabs {
    display: flex;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    text-transform: uppercase;
}

    .sidebar-tab:hover {
        color: #fff;
        background: rgba(255,255,255,0.05);
    }

    .sidebar-tab.active {
        color: var(--accent-color);
        border-bottom-color: var(--accent-color);
        background: rgba(0, 122, 204, 0.1);
    }

.pane.left-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: var(--sidebar-left-width);
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
}

/* --- Translator --- */
.translator-wrapper {
    background: var(--bg-dark);
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
    width: 100%;
}

.translator-sidebar {
    background: var(--bg-darker);
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.translator-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    min-height: 0;
}

.translator-key-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    color: #aaa;
}

    .translator-key-item:hover {
        background-color: #1a1a1c;
        border-left-color: #555;
        color: #fff;
    }

    .translator-key-item.active {
        background-color: rgba(0, 243, 255, 0.05) !important;
        border-left-color: var(--cn-neon-cyan) !important;
        color: var(--cn-neon-cyan) !important;
    }

.scroll-area-fix {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

body .translator-wrapper .force-hide {
    display: none !important;
}

.translation-row {
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .translation-row:focus-within {
        border-color: var(--cn-neon-cyan) !important;
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    }

.trans-lang-input {
    resize: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

    .trans-lang-input:focus {
        outline: none;
        box-shadow: none;
    }

/* --- Settings --- */
.settings-container {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
}

.settings-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
    display: block;
}

.settings-input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

    .settings-input:focus {
        border-color: var(--accent-color);
        outline: none;
    }

.settings-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* --- DevOps --- */
.devops-container {
    background: var(--bg-dark);
    color: var(--text-main);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.devops-header {
    padding: 15px 20px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.devops-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.snapshot-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

    .snapshot-item:hover {
        border-color: var(--accent-color);
        background: #333;
    }

.badge-creation {
    font-family: 'Courier New', monospace;
    background: #000;
    color: var(--cn-neon-green);
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.upload-zone {
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: #222;
}

    .upload-zone:hover {
        border-color: var(--accent-color);
        background: #2a2a2a;
    }

/* --- DSL Manager --- */
.dsl-widget-container {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-top: 20px;
}

.dsl-header {
    height: 50px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: var(--text-main);
}

.dsl-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.dsl-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    flex: 1;
    overflow: hidden;
}

.dsl-sidebar {
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.dsl-search {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

    .dsl-search input {
        background: #111;
        border: 1px solid #444;
        color: #fff;
        width: 100%;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
    }

.dsl-file-list {
    flex: 1;
    overflow-y: auto;
}

.dsl-file-item {
    padding: 8px 15px;
    font-size: 0.8rem;
    color: #aaa;
    cursor: pointer;
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

    .dsl-file-item:hover {
        background: #222;
        color: #fff;
    }

    .dsl-file-item.active {
        background: rgba(0, 255, 153, 0.05);
        color: var(--cn-neon-green);
        border-left-color: var(--cn-neon-green);
    }

.dsl-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.bg-def {
    background: rgba(0, 122, 204, 0.2);
    color: #61dafb;
}

.bg-tpl {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.bg-err {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5555;
}

.dsl-editor-area {
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.dsl-toolbar {
    height: 40px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    gap: 10px;
}

.btn-dsl {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-dsl:hover {
        border-color: #666;
        color: #fff;
    }

    .btn-dsl.primary {
        background: rgba(0, 255, 153, 0.1);
        color: var(--cn-neon-green);
        border-color: var(--cn-neon-green);
    }

        .btn-dsl.primary:hover {
            background: rgba(0, 255, 153, 0.2);
        }

#dsl-editor {
    flex: 1;
    background: var(--bg-dark);
    color: #d4d4d4;
    border: none;
    resize: none;
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    outline: none;
}

/* --- Neural Sidebar (GPT HTML Edition) --- */
.neural-sidebar-html {
    width: var(--sidebar-ai-width);
    background: var(--bg-darker);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 100;
    transition: width 0.3s ease;
}

    .neural-sidebar-html.collapsed {
        width: 0;
        border: none;
        overflow: hidden;
    }

.ns-header {
    height: var(--header-height);
    padding: 0 15px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
}

.ns-title {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ns-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-bubble {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 90%;
    word-wrap: break-word;
}

.msg-user {
    background: #2a2a2a;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.msg-bot {
    background: rgba(0, 210, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(0, 210, 255, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.gpt-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.ns-input-area {
    padding: 15px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
}

.ns-input-box {
    display: flex;
    gap: 10px;
}

.ns-input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    resize: none;
    height: 40px;
    font-size: 13px;
}

    .ns-input:focus {
        outline: none;
        border-color: var(--cn-neon-cyan);
    }

.ns-btn {
    background: var(--cn-neon-cyan);
    color: #000;
    border: none;
    border-radius: 4px;
    width: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

    .ns-btn:hover {
        background: #fff;
    }
