/* OneCompiler Premium Theme Clone for WordPress plugin */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

.oc-workspace-container {
    background: #09090b;
    color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    margin: 20px 0;
    border: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

/* Fullscreen Mode override */
.oc-workspace-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* 1. Navbar style */
.oc-navbar {
    background: #18181b;
    border-bottom: 1px solid #27272a;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
    box-sizing: border-box;
}

.oc-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.oc-logo {
    font-weight: 700;
    font-size: 18px;
    color: #fafafa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oc-upgrade-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.oc-nav-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oc-ai-badge {
    background: #10b981;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.oc-lang-selector-wrapper select {
    background: #27272a;
    color: #fafafa;
    border: 1px solid #3f3f46;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.oc-btn-run {
    background: #ec4899;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.oc-btn-run:hover {
    background: #db2777;
}

.oc-btn-run:active {
    transform: scale(0.97);
}

.oc-btn-submit {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.oc-btn-submit:hover {
    background: #1d4ed8;
}

.oc-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oc-nav-right select {
    background: transparent;
    color: #a1a1aa;
    border: 1px solid #27272a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}

.oc-icon-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oc-icon-btn:hover {
    color: #fff;
}

/* 2. Main layout structures */
.oc-main-layout {
    display: flex;
    flex-grow: 1;
    background: #09090b;
    height: 580px;
}

.oc-workspace-container.fullscreen .oc-main-layout {
    height: calc(100vh - 86px) !important;
}

.oc-sidebar {
    width: 48px;
    background: #18181b;
    border-right: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    box-sizing: border-box;
}

.oc-sidebar-top, .oc-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
}

.oc-sidebar-btn {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.oc-sidebar-btn:hover, .oc-sidebar-btn.active {
    color: #fafafa;
    background: #27272a;
}

.oc-grid-columns {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    flex-grow: 1;
    box-sizing: border-box;
}

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

/* 3. Editor Panel */
.oc-editor-panel {
    display: flex;
    flex-direction: column;
    background: #09090b;
    border-right: 1px solid #27272a;
    overflow: hidden;
}

.oc-file-tabs {
    background: #18181b;
    display: flex;
    border-bottom: 1px solid #27272a;
    height: 38px;
}

.oc-file-tab {
    background: #09090b;
    border-right: 1px solid #27272a;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    cursor: pointer;
    height: 100%;
    font-size: 13px;
    color: #fafafa;
    font-weight: 500;
}

.oc-file-tab.active {
    background: #09090b;
    border-top: 2px solid #ec4899;
    height: calc(100% - 2px);
}

.oc-file-icon {
    font-size: 14px;
    color: #eab308; /* Yellow default */
}

.oc-file-close {
    font-size: 10px;
    color: #71717a;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.oc-file-close:hover {
    color: #fafafa;
}

.oc-file-tab-add {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #71717a;
    cursor: pointer;
}

.oc-file-tab-add:hover {
    color: #fafafa;
}

.oc-monaco-container {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    background: #09090b;
}

/* 4. Console Panel */
.oc-console-panel {
    display: flex;
    flex-direction: column;
    background: #09090b;
}

.oc-console-tabs {
    background: #18181b;
    display: flex;
    border-bottom: 1px solid #27272a;
    height: 38px;
}

.oc-console-tab-link {
    background: transparent;
    border: none;
    color: #71717a;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.oc-console-tab-link.active {
    color: #fafafa;
    border-bottom-color: #ec4899;
}

.oc-console-content {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.oc-tab-panel {
    display: none;
    flex-grow: 1;
    flex-direction: column;
}

.oc-tab-panel.active {
    display: flex;
}

.oc-console-log {
    flex-grow: 1;
    background: #09090b;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    overflow-y: auto;
    font-size: 13px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Live Console Placeholder matching OneCompiler */
.oc-console-placeholder-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    color: #71717a;
}

.oc-placeholder-icon {
    font-size: 32px;
    font-family: 'JetBrains Mono', monospace;
    color: #52525b;
    margin-bottom: 12px;
}

.oc-console-placeholder-wrapper h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #a1a1aa;
}

.oc-console-placeholder-wrapper p {
    margin: 4px 0 0 0;
    font-size: 12px;
}

.oc-panel-label {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
    margin-bottom: 8px;
}

.oc-custom-input-box {
    width: 100%;
    flex-grow: 1;
    min-height: 200px;
    background: #18181b;
    color: #fafafa;
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    resize: none;
    box-sizing: border-box;
    outline: none;
}

.oc-custom-input-box:focus {
    border-color: #ec4899;
}

.oc-instructions-body {
    line-height: 1.6;
    color: #e4e4e7;
    font-size: 14px;
}

.oc-execution-stats {
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #f472b6;
}

/* Test results custom styling inside OneCompiler panel */
.oc-test-item {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid #52525b;
    background: #18181b;
}

.oc-test-item.passed {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.oc-test-item.failed {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.oc-test-status {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 4px;
}

.oc-test-status.passed { color: #10b981; }
.oc-test-status.failed { color: #ef4444; }

/* 5. Footer Bar */
.oc-footer-bar {
    background: #18181b;
    border-top: 1px solid #27272a;
    padding: 0 16px;
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.oc-status-item {
    font-size: 11px;
    color: #71717a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oc-status-item.green {
    color: #10b981;
}

.oc-footer-left, .oc-footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.oc-status-item.active-lang {
    color: #fafafa;
    font-weight: 600;
}

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