/* Scoped Styles for WordPress Plugin - Advanced Multicolor Design */

/* Force clean body/html takeover styles */
html.compiler-active,
body.compiler-active {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #050608 !important;
}

body.compiler-active #wpadminbar {
    display: none !important;
}

.fancy-compiler-wrapper {
    /* CSS Variables for Premium Multicolor Styling */
    --bg-dark: #050608;
    --bg-panel: rgba(8, 9, 13, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Area Colors - Enhanced for vivid visibility */
    --purple: #a855f7;
    --purple-bg: #130a24;
    --purple-border: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.5);
    
    --cyan: #06b6d4;
    --cyan-bg: #050d1a;
    --cyan-border: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.5);
    
    --green: #10b981;
    --green-bg: #030f08;
    --green-border: #10b981;
    --green-glow: rgba(16, 185, 129, 0.45);
    
    --pink: #ec4899;
    --pink-glow: rgba(236, 72, 153, 0.5);
    --error: #f43f5e;
    --warning: #fbbf24;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #4b5563;
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Full screen dimensions */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999999 !important;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    overflow: hidden;
    box-sizing: border-box;
}

.fancy-compiler-wrapper * {
    box-sizing: border-box;
}

/* Background Glowing Blobs */
.fancy-compiler-wrapper .glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.fancy-compiler-wrapper .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.16;
    animation: wp_float 20s infinite alternate ease-in-out;
}

.fancy-compiler-wrapper .blob-purple {
    background: var(--purple);
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
}

.fancy-compiler-wrapper .blob-cyan {
    background: var(--cyan);
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: 20%;
    animation-delay: -5s;
}

.fancy-compiler-wrapper .blob-pink {
    background: var(--pink);
    width: 400px;
    height: 400px;
    top: 30%;
    right: -100px;
    opacity: 0.08;
    animation-delay: -10s;
}

@keyframes wp_float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
    100% { transform: translate(-25px, 40px) scale(0.95); }
}

/* Main Application Container */
.fancy-compiler-wrapper .app-container {
    width: 100%;
    height: 100%;
    z-index: 10;
    background: var(--bg-panel);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.fancy-compiler-wrapper .app-header {
    height: 65px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 9, 13, 0.9);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, var(--purple), var(--cyan), var(--green), var(--pink)) 1;
    flex-shrink: 0;
}

.fancy-compiler-wrapper .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fancy-compiler-wrapper .logo-icon {
    font-size: 22px;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--cyan-glow));
    animation: wp_pulse 2s infinite alternate;
}

.fancy-compiler-wrapper .logo-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.fancy-compiler-wrapper .logo-text .highlight {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes wp_pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Header Controls */
.fancy-compiler-wrapper .controls-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fancy-compiler-wrapper .control-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fancy-compiler-wrapper .control-item label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.fancy-compiler-wrapper .control-item label i {
    color: var(--cyan);
}

.fancy-compiler-wrapper .select-wrapper {
    position: relative;
}

.fancy-compiler-wrapper .select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 30px 5px 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 150px;
    height: 32px;
}

/* Force dark background for all browser native select option menus */
.fancy-compiler-wrapper select option {
    background-color: #0b0c10 !important;
    color: var(--text-main) !important;
    font-weight: 600 !important;
}

/* Rainbow styling for each language option in the dropdown list */
.fancy-compiler-wrapper select#language-select option[value="python"] { color: #f87171 !important; }
.fancy-compiler-wrapper select#language-select option[value="javascript"] { color: #fbbf24 !important; }
.fancy-compiler-wrapper select#language-select option[value="c"] { color: #34d399 !important; }
.fancy-compiler-wrapper select#language-select option[value="cpp"] { color: #60a5fa !important; }
.fancy-compiler-wrapper select#language-select option[value="java"] { color: #c084fc !important; }
.fancy-compiler-wrapper select#language-select option[value="php"] { color: #f472b6 !important; }
.fancy-compiler-wrapper select#language-select option[value="ruby"] { color: #a78bfa !important; }
.fancy-compiler-wrapper select#language-select option[value="csharp"] { color: #f87171 !important; }
.fancy-compiler-wrapper select#language-select option[value="go"] { color: #fbbf24 !important; }
.fancy-compiler-wrapper select#language-select option[value="rust"] { color: #34d399 !important; }
.fancy-compiler-wrapper select#language-select option[value="swift"] { color: #60a5fa !important; }
.fancy-compiler-wrapper select#language-select option[value="bash"] { color: #c084fc !important; }
.fancy-compiler-wrapper select#language-select option[value="sql"] { color: #38bdf8 !important; }
.fancy-compiler-wrapper select#language-select option[value="r"] { color: #f472b6 !important; }

.fancy-compiler-wrapper .select-wrapper select:hover {
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.fancy-compiler-wrapper .select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 11px;
}

/* Font Size Selector */
.fancy-compiler-wrapper .font-control {
    min-width: 85px;
}

.fancy-compiler-wrapper .font-buttons {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    justify-content: space-between;
    height: 32px;
}

.fancy-compiler-wrapper .font-buttons button {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.fancy-compiler-wrapper .font-buttons button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--cyan);
}

.fancy-compiler-wrapper #font-size-display {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* Actions Group */
.fancy-compiler-wrapper .actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fancy-compiler-wrapper button.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
    border: none;
    color: white;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
    height: 36px;
}

.fancy-compiler-wrapper button.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5), 0 0 25px rgba(236, 72, 153, 0.3);
}

.fancy-compiler-wrapper button.btn-primary.loading .btn-content { display: none; }
.fancy-compiler-wrapper button.btn-primary.loading .btn-loader { display: inline-block; }
.fancy-compiler-wrapper button.btn-primary .btn-loader { display: none; }

.fancy-compiler-wrapper button.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    padding: 9px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    height: 36px;
}

.fancy-compiler-wrapper button.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
}

/* Workspace Layout */
.fancy-compiler-wrapper .app-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 270px 1.2fr 0.8fr;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .fancy-compiler-wrapper .app-workspace {
        grid-template-columns: 250px 1fr;
        grid-template-rows: 1fr 300px;
    }
    .fancy-compiler-wrapper .console-pane {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .fancy-compiler-wrapper .app-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    .fancy-compiler-wrapper .sidebar-pane, 
    .fancy-compiler-wrapper .console-pane {
        grid-column: span 1;
    }
}

/* Panes Styling */
.fancy-compiler-wrapper .editor-pane,
.fancy-compiler-wrapper .console-pane,
.fancy-compiler-wrapper .sidebar-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* 1. Sidebar Pane: Ficheiros & Segurança (Purple/Indigo Theme) */
.fancy-compiler-wrapper .sidebar-pane {
    background-color: var(--purple-bg) !important;
    border-right: 3px solid var(--purple-border) !important;
    box-shadow: 8px 0 25px var(--purple-glow) !important;
}

.fancy-compiler-wrapper .sidebar-pane .pane-header {
    background: rgba(20, 10, 40, 0.8) !important;
    border-bottom: 2px solid var(--purple-border) !important;
}

.fancy-compiler-wrapper .sidebar-pane .pane-title i {
    color: var(--purple) !important;
    filter: drop-shadow(0 0 10px var(--purple-border));
}

.fancy-compiler-wrapper .sidebar-content {
    flex: 1;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.fancy-compiler-wrapper .sidebar-card {
    background: rgba(168, 85, 247, 0.06);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.fancy-compiler-wrapper .sidebar-card:hover {
    border-color: var(--purple);
    box-shadow: 0 0 15px var(--purple-glow);
}

.fancy-compiler-wrapper .sidebar-card .card-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e9d5ff;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Upload Card styles */
.fancy-compiler-wrapper .custom-file-upload .file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: rgba(168, 85, 247, 0.1);
    border: 2px dashed rgba(168, 85, 247, 0.5);
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.fancy-compiler-wrapper .custom-file-upload .file-btn:hover {
    border-color: var(--purple);
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.fancy-compiler-wrapper .file-name-text {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    word-break: break-all;
    text-align: center;
}

.fancy-compiler-wrapper button.btn-sidebar {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    height: 36px;
}

.fancy-compiler-wrapper button.btn-upload-action {
    background: linear-gradient(135deg, var(--purple), #7e22ce);
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.fancy-compiler-wrapper button.btn-upload-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.6);
}

/* Malware Scan Card (Red glowing) */
.fancy-compiler-wrapper .scan-card {
    background: rgba(244, 63, 94, 0.05);
    border: 2px solid rgba(244, 63, 94, 0.4);
}

.fancy-compiler-wrapper .scan-card:hover {
    border-color: #f43f5e;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.fancy-compiler-wrapper .scan-card .card-title {
    color: #fecdd3;
}

.fancy-compiler-wrapper button.btn-scan-action {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

.fancy-compiler-wrapper button.btn-scan-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.6);
}

.fancy-compiler-wrapper .scan-result-container {
    background: #06070a;
    border: 2px solid rgba(244, 63, 94, 0.4);
    border-radius: 8px;
    padding: 10px;
    min-height: 54px;
}

.fancy-compiler-wrapper .scan-result-container .result-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fancy-compiler-wrapper #scan-log-output {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 2. Editor Pane: Code Area (Cyan Theme) */
.fancy-compiler-wrapper .editor-pane {
    background-color: var(--cyan-bg) !important;
    border-right: 3px solid var(--cyan-border) !important;
    box-shadow: 8px 0 25px var(--cyan-glow) !important;
}

.fancy-compiler-wrapper .editor-pane .pane-header {
    background: rgba(10, 20, 35, 0.8) !important;
    border-bottom: 2px solid var(--cyan-border) !important;
}

.fancy-compiler-wrapper .editor-pane .pane-title i {
    color: var(--cyan) !important;
    filter: drop-shadow(0 0 10px var(--cyan-border));
}

.fancy-compiler-wrapper #editor-container {
    flex: 1;
    width: 100%;
    height: 100%;
}

.fancy-compiler-wrapper .editor-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.fancy-compiler-wrapper .editor-actions button:hover {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.15);
}

/* 3. Console Pane: Terminal & Inputs (Green Theme) */
.fancy-compiler-wrapper .console-pane {
    background-color: var(--green-bg) !important;
    border-left: 3px solid var(--green-border) !important;
    box-shadow: -8px 0 25px var(--green-glow) !important;
}

.fancy-compiler-wrapper .console-tabs {
    height: 44px;
    border-bottom: 2px solid var(--green-border) !important;
    display: flex;
    background: rgba(5, 15, 10, 0.8) !important;
    flex-shrink: 0;
}

.fancy-compiler-wrapper .tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 12px;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-smooth);
}

.fancy-compiler-wrapper .tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.fancy-compiler-wrapper .tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.01);
}

.fancy-compiler-wrapper .tab-btn.active {
    color: var(--green) !important;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.1);
}

.fancy-compiler-wrapper .tab-btn.active::after {
    transform: scaleX(1);
}

.fancy-compiler-wrapper .console-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.fancy-compiler-wrapper .tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
}

.fancy-compiler-wrapper .tab-panel.active {
    display: flex;
}

.fancy-compiler-wrapper .terminal-body {
    flex: 1;
    background: #020603; /* Dark green-obsidian terminal */
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
}

.fancy-compiler-wrapper .terminal-line {
    margin-bottom: 6px;
    white-space: pre-wrap;
    word-break: break-all;
}

.fancy-compiler-wrapper .terminal-line.system-msg {
    color: var(--text-dark);
}

.fancy-compiler-wrapper .terminal-line.system-msg .prefix {
    color: var(--cyan);
    font-weight: bold;
}

.fancy-compiler-wrapper .terminal-line.stdout {
    color: #34d399; /* Green stdout text */
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.fancy-compiler-wrapper .terminal-line.stderr {
    color: var(--error);
    background: rgba(244, 63, 94, 0.08);
    padding: 6px 10px;
    border-left: 3px solid var(--error);
    border-radius: 0 4px 4px 0;
}

.fancy-compiler-wrapper .terminal-line.success-msg {
    color: var(--green);
    font-weight: bold;
    margin-top: 15px;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    padding-top: 8px;
}

/* Stdin Textbox (under console-pane) */
.fancy-compiler-wrapper .input-panel-body {
    flex: 1;
    background: #020603;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.fancy-compiler-wrapper #stdin-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    padding: 15px;
    color: #34d399;
    font-family: var(--font-mono);
    font-size: 13px;
    resize: none;
    transition: var(--transition-smooth);
}

.fancy-compiler-wrapper #stdin-textarea:focus {
    outline: none;
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Terminal Footer */
.fancy-compiler-wrapper .terminal-footer {
    height: 44px;
    border-top: 2px solid var(--green-border) !important;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 15, 10, 0.8) !important;
    flex-shrink: 0;
}

.fancy-compiler-wrapper .status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.fancy-compiler-wrapper .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fancy-compiler-wrapper .status-dot.status-idle {
    background: var(--text-dark);
    box-shadow: 0 0 6px var(--text-dark);
}

.fancy-compiler-wrapper .status-dot.status-compiling {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
    animation: wp_flash 1s infinite alternate;
}

.fancy-compiler-wrapper .status-dot.status-success {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.fancy-compiler-wrapper .status-dot.status-error {
    background: var(--error);
    box-shadow: 0 0 10px var(--error);
}

.fancy-compiler-wrapper .execution-time {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fancy-compiler-wrapper .execution-time i {
    color: var(--cyan);
}

.fancy-compiler-wrapper .terminal-footer button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
    padding: 0;
}

.fancy-compiler-wrapper .terminal-footer button:hover {
    color: var(--error);
}

/* Scrollbars */
.fancy-compiler-wrapper ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.fancy-compiler-wrapper ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.fancy-compiler-wrapper ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.fancy-compiler-wrapper ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   MULTI-FILE TABS SYSTEM STYLING
   ========================================================================== */

.fancy-compiler-wrapper .pane-title-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.fancy-compiler-wrapper .editor-tabs-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    scrollbar-width: none; /* Firefox */
}

.fancy-compiler-wrapper .editor-tabs-bar::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.fancy-compiler-wrapper .editor-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    user-select: none;
    white-space: nowrap;
}

.fancy-compiler-wrapper .editor-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.fancy-compiler-wrapper .editor-tab.active {
    background: rgba(6, 182, 212, 0.08);
    color: var(--cyan);
    border-bottom: 2px solid var(--cyan);
    font-weight: 700;
}

.fancy-compiler-wrapper .editor-tab .close-tab {
    font-size: 10px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    padding: 2px;
    border-radius: 4px;
}

.fancy-compiler-wrapper .editor-tab .close-tab:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.2);
}

.fancy-compiler-wrapper .add-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fancy-compiler-wrapper .add-tab-btn:hover {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.15);
}
