/* PyLMS Custom Styling */

/* Typography & Code Elements */
code, pre, textarea.code-font, .code-terminal {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Quick-Symbol Toolbar */
.mobile-symbol-toolbar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.mobile-symbol-toolbar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.symbol-btn {
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: all 0.1s ease;
}
.symbol-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

.symbol-btn-action {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}
.symbol-btn-action:active {
    background: #1e40af;
}

/* Terminal Console Styling */
.terminal-window {
    background-color: #0f172a;
    color: #f8fafc;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.terminal-stdout {
    color: #38bdf8;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-stderr {
    color: #f87171;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Line numbering simulation for textareas */
.code-editor-area {
    tab-size: 4;
    -moz-tab-size: 4;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Pyodide Loading Overlay */
.pyodide-loader-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Proteksi Anti Copy-Paste & Blok Teks untuk Halaman Siswa */
body.no-copy-student,
body.no-copy-student * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Izinkan seleksi & pengetikan teks khusus di input dan textarea */
body.no-copy-student textarea,
body.no-copy-student input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}
