@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Pretendard:wght@400;600;700&display=swap');

body {
    font-family: 'Pretendard', sans-serif;
}

.code-font {
    font-family: 'Fira Code', monospace;
}

.indent-guided {
    background-image:
        repeating-linear-gradient(to right,
            transparent 0px,
            transparent calc(4ch - 1px),
            rgba(71, 85, 105, 0.08) calc(4ch - 1px),
            rgba(71, 85, 105, 0.08) 4ch
        );
    background-size: 4ch 100%;
    background-color: #020617;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    background: #1e293b;
    border: 1px solid #334155;
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #cbd5e1;
}

.run-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mobile-tabs {
    display: none;
}

@media (max-width: 1023px) {
    .mobile-tabs {
        display: flex;
    }

    .main-panels {
        padding-bottom: 3.5rem;
    }

    .panel-pane {
        display: none;
        width: 100% !important;
        height: 100%;
    }

    body.mobile-tab-problem .panel-problem { display: flex; flex-direction: column; }
    body.mobile-tab-code .panel-workspace,
    body.mobile-tab-console .panel-workspace { display: flex; flex-direction: column; }

    body:not(.mobile-tab-problem) .panel-problem { display: none !important; }
    body:not(.mobile-tab-code):not(.mobile-tab-console) .panel-workspace { display: none !important; }

    body.mobile-tab-console .editor-section { display: none; }
    body.mobile-tab-console .console-section { flex: 1; height: auto !important; }
}

.mobile-tab-btn.active {
    color: #c084fc;
    background: rgba(88, 28, 135, 0.35);
    border-color: rgba(168, 85, 247, 0.45);
}
