:root {
    --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #111827 100%);
    --panel-bg: rgba(17, 24, 39, 0.7);
    --panel-border: rgba(255, 255, 255, 0.08);
    --primary: #8b5cf6;
    --primary-hover: #a78bfa;
    --primary-light: rgba(139, 92, 246, 0.15);
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --input-bg: rgba(31, 41, 55, 0.5);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header Layout */
header {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .logo-area {
        flex-direction: column;
        gap: 8px;
    }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.logo-title h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-title p {
    font-size: 12px;
    color: var(--text-muted);
}

/* GDrive Status Badge */
.gdrive-badge-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(12px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-dot.connected {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

.status-dot.disconnected {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.btn-link-drive {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-link-drive:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Main Studio Layout */
main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 40px;
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }
}

.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Text Input Section */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

textarea {
    width: 100%;
    height: 180px;
    background: var(--input-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.quick-templates {
    display: flex;
    gap: 8px;
}

.template-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

.template-btn:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary);
}

/* Settings grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 16px;
}

@media (max-width: 500px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

select, input[type="number"], input[type="text"] {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

select:focus, input[type="number"]:focus, input[type="text"]:focus {
    border-color: var(--primary);
}

optgroup {
    background: #111827;
    color: var(--text-main);
    font-weight: 600;
}

/* Tuning Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.slider-value {
    color: var(--primary-hover);
    font-weight: 600;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Upload Options */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    padding: 14px 16px;
    border-radius: 12px;
}

.toggle-info h3 {
    font-size: 14px;
    font-weight: 600;
}

.toggle-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--panel-border);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: var(--primary);
}

input:checked + .slider-round:before {
    transform: translateX(20px);
}

/* Synthesis Button */
.btn-synthesize {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-synthesize:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn-synthesize:active {
    transform: translateY(0);
}

.btn-synthesize:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--panel-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Right Panel: Tabs, Output & History */
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.tabs-header::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tab-btn.active {
    color: var(--primary-hover);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.tab-content.active {
    display: flex;
}

.output-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.audio-player {
    width: 100%;
    margin-top: 8px;
}

audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    outline: none;
}

/* Success upload info box */
.success-box {
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.success-box i {
    color: var(--success);
}

.btn-gdrive-view {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-gdrive-view:hover {
    background: rgba(16, 185, 129, 0.3);
    color: white;
}

/* History & Drive Listing Drawer */
.history-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.history-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-clear-history, .btn-refresh-drive {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-clear-history:hover {
    color: var(--danger);
}

.btn-refresh-drive:hover {
    color: var(--primary-hover);
}

.history-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s;
}

.history-item:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.12);
}

.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.history-text {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.history-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.history-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.history-btn.btn-delete:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.no-history {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 24px 0;
    font-style: italic;
}

/* Custom Dropdown Styling */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-select-input-wrapper input {
    padding-left: 40px;
    padding-right: 40px;
    cursor: pointer;
}

.custom-select-input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.custom-select-arrow {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}

.custom-select-container.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 250px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    padding: 6px;
}

.custom-select-container.open .custom-select-dropdown {
    display: flex;
}

.custom-select-item {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-main);
    text-align: left;
}

.custom-select-item:hover, .custom-select-item.selected {
    background: var(--primary-light);
    color: var(--primary-hover);
}

.custom-select-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.custom-select-item-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-item-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
}

.custom-select-item-badge.local {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.custom-select-item-badge.online {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.custom-select-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.custom-select-group-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-hover);
    letter-spacing: 0.5px;
    padding: 8px 14px 4px;
    pointer-events: none;
    text-align: left;
}

.drive-player-container {
    width: 100%;
}

/* Footer */
footer {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--panel-border);
}

footer a {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Responsive Training Grid */
.training-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

@media (max-width: 800px) {
    .training-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Notebook Tools & File Browser Styles --- */

/* File Picker Group */
.file-picker-group {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

@media (max-width: 450px) {
    .file-picker-group {
        flex-wrap: wrap;
    }
    .file-picker-group button {
        flex: 1;
        justify-content: center;
    }
    .file-picker-group input[type="text"] {
        width: 100%;
        flex: none;
    }
}

.file-picker-group input[type="text"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    text-overflow: ellipsis;
}

.btn-picker {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-picker:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-hover);
}

.btn-picker.gdrive {
    border-color: rgba(52, 168, 83, 0.4);
}

.btn-picker.gdrive:hover {
    background: rgba(52, 168, 83, 0.15);
    border-color: #34a853;
}

/* Console logs styling */
.console-log {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #e2e8f0;
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
    margin-top: 8px;
    text-align: left;
}

/* Progress bar styling */
.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-blue) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Tool Tab Styling */
.tool-subtabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tool-subtabs::-webkit-scrollbar {
    display: none;
}

.subtab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.subtab-btn.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-hover);
}

.tool-section {
    display: none;
}

.tool-section.active {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Tool cards */
.tool-panel-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.tool-panel-header.warning {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f87171;
    font-weight: 600;
    font-size: 14px;
}

.tool-training-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    text-align: left;
}

.tool-training-card h3 {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

/* Modal Card */
.modal-card {
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--panel-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: white;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
}

/* Browser Navigation */
.browser-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn-nav-up {
    align-self: flex-start;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--panel-border);
    color: var(--primary-hover);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-nav-up:hover {
    background: rgba(139, 92, 246, 0.3);
}

.current-path-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    word-break: break-all;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

/* Browser Content List */
.browser-content {
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.browser-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: all 0.2s ease;
    text-align: left;
}

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

.browser-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.browser-item.selected {
    background: rgba(139, 92, 246, 0.15);
    border-left: 3px solid var(--primary);
}

.browser-item i {
    font-size: 14px;
}

.browser-item i.fa-folder {
    color: #f59e0b;
}

.browser-item i.fa-file {
    color: #3b82f6;
}

.browser-item-name {
    flex: 1;
    font-size: 13px;
    color: white;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-item-size {
    font-size: 11px;
    color: var(--text-muted);
}

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

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Documentation Tab Styles */
.docs-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 6px;
}

.docs-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.docs-section:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.docs-section h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-section h3 i {
    color: var(--primary-hover);
}

.docs-section p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.docs-step-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-step-list li strong {
    color: white;
}

.docs-info-box {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #93c5fd;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.docs-info-box.warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: #f59e0b;
    color: #fde047;
}

.docs-code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11.5px;
    color: #e8e8e8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* FAQ Accordion Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.faq-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: white;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    gap: 12px;
    outline: none;
}

.faq-trigger span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-hover);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 14px;
}
