
    /* Base Styles */
.blockly-challenge-workplace {
    font-family: 'Nunito', sans-serif;
    background-color: white;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    /* max-width: 1200px; */
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.08); */
    overflow: hidden;
}

/* 🚀 Progress Tracker */
.blockly-challenge-workplace .progress-tracker-container {
    background: #f1f5f9;
    padding: 8px 20px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
}

.blockly-challenge-workplace .progress-tracker {
    display: flex;
    min-width: fit-content;
    gap: 15px;
    padding-bottom: 5px;
}

.blockly-challenge-workplace .stage-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 100px;
    position: relative;
    padding: 5px 0;
}

.blockly-challenge-workplace .stage-progress:not(:last-child):after {
content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: #cbd5e1;
}

.blockly-challenge-workplace .stage-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

.blockly-challenge-workplace .stage-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.blockly-challenge-workplace .stage-progress.active .stage-bubble {
    background: #0ea5e9;
    box-shadow: 0 0 0 3px #a29bfe;
}

.blockly-challenge-workplace .stage-progress.locked .stage-bubble {
    background: #94a3b8;
    font-size: 12px;
}

.blockly-challenge-workplace .stage-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.blockly-challenge-workplace .stage-progress.active .stage-title {
    color: #0ea5e9;
    font-weight: 700;
}

.blockly-challenge-workplace .challenge-dots {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    margin-left: 36px;
}

.blockly-challenge-workplace .dot {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blockly-challenge-workplace .dot:hover {
    color: #0ea5e9;
    transform: translateY(-2px) scale(1.3);
}

.blockly-challenge-workplace .dot.completed {
    color: #00b894;
}

.blockly-challenge-workplace .dot.current {
    color: #0ea5e9;
    transform: scale(1.3);
}

/* 🎯 Challenge Header */
.blockly-challenge-workplace .challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 2px solid #f1f5f9;
}

.blockly-challenge-workplace .challenge-info {
    flex: 1;
}

.blockly-challenge-workplace .current-stage {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
}

.blockly-challenge-workplace .challenge-info h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    color: #0ea5e9;
    margin: 0 0 5px 0;
    font-weight: 400;
}

.blockly-challenge-workplace .challenge-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.blockly-challenge-workplace .difficulty {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.blockly-challenge-workplace .difficulty.easy {
    background: #e0f2fe;
    color: #0369a1;
}

.blockly-challenge-workplace .difficulty.medium {
    background: #fef9c3;
    color: #a16207;
}

.blockly-challenge-workplace .difficulty.hard {
    background: #fee2e2;
    color: #b91c1c;
}

.blockly-challenge-workplace .points {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
}

.blockly-challenge-workplace .stats {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 14px;
}

.blockly-challenge-workplace .challenge-actions {
    display: flex;
    gap: 12px;
}

.blockly-challenge-workplace .action-btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-family: 'Fredoka One', cursive;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.blockly-challenge-workplace .action-btn.run-btn {
    background: #0ea5e9;
    color: white;
}

.blockly-challenge-workplace .action-btn.submit-btn {
    background: #00b894;
    color: white;
}

.blockly-challenge-workplace .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 📚 Main Content */
.blockly-challenge-workplace .challenge-content {
    display: flex;
    min-height: 600px;
}

.blockly-challenge-workplace .instructions-panel {
    flex: 1;
    padding: 20px;
    background: white;
    border-right: 2px solid #f1f5f9;
    overflow-y: auto;
}

.blockly-challenge-workplace .instruction-section {
    margin-bottom: 20px;
}

.blockly-challenge-workplace .instruction-section h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #0ea5e9;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.blockly-challenge-workplace .instruction-section p {
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.blockly-challenge-workplace .input-output {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.blockly-challenge-workplace .input-output > div {
    flex: 1;
}

.blockly-challenge-workplace .input-output h4 {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 6px 0;
}

.blockly-challenge-workplace .code {
    background: #f8fafc;
    border-radius: 6px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border-left: 3px solid #0ea5e9;
}

/* 🧩 Workspace */
.blockly-challenge-workplace .workspace {
    flex: 2;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.blockly-challenge-workplace .workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-bottom: 2px solid #f1f5f9;
}

.blockly-challenge-workplace .workspace-tabs {
    display: flex;
    gap: 5px;
}

.blockly-challenge-workplace .tab-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    color: #64748b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-weight: 400;
}

.blockly-challenge-workplace .tab-btn.active {
    background: #0ea5e9;
    color: white;
}

.blockly-challenge-workplace .text-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    padding: 5px 8px;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
}

.blockly-challenge-workplace .text-btn:hover {
    background: #f1f5f9;
    color: #0ea5e9;
}

.blockly-challenge-workplace .tab-content {
    display: none;
    height: 100%;
}

.blockly-challenge-workplace .tab-content.active {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
}

.blockly-challenge-workplace .blockly-workspace {
    height: 68%;
    min-height: 300px;
    border-bottom: 1px solid #e2e8f0;
}

/* Output Panel - Now below editor */
.blockly-challenge-workplace .output-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 0 15px 15px 15px;
}

.blockly-challenge-workplace .output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.blockly-challenge-workplace .output-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 16px;
    color: #0ea5e9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.blockly-challenge-workplace .output-console {
    flex: 1;
    background: #1e293b;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    color: #e2e8f0;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.5;
    min-height: 100px;
}

.blockly-challenge-workplace .output-line {
    margin-bottom: 6px;
}

.blockly-challenge-workplace .output-line.success {
    color: #00b894;
}

.blockly-challenge-workplace .output-line.error {
    color: #d63031;
}

/* 🧪 Testing Panel */
.blockly-challenge-workplace .testing-panel {
    padding: 15px;
    height: calc(100% - 50px);
    overflow-y: auto;
}

.blockly-challenge-workplace .test-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.blockly-challenge-workplace .test-results-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #0ea5e9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.blockly-challenge-workplace .progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.blockly-challenge-workplace .progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.blockly-challenge-workplace .progress-fill {
    height: 100%;
    background: #00b894;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.blockly-challenge-workplace .progress-container span {
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
}

.blockly-challenge-workplace .test-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.blockly-challenge-workplace .test-card.passed {
    border-left: 4px solid #00b894;
}

.blockly-challenge-workplace .test-card.failed {
    border-left: 4px solid #d63031;
}

.blockly-challenge-workplace .test-status {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.blockly-challenge-workplace .test-card.passed .test-status {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
}

.blockly-challenge-workplace .test-card.failed .test-status {
    background: rgba(214, 48, 49, 0.1);
    color: #d63031;
}

.blockly-challenge-workplace .test-content {
    padding: 12px;
    background: white;
}

.blockly-challenge-workplace .test-content h3 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #2d3436;
}

.blockly-challenge-workplace .test-detail {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.blockly-challenge-workplace .test-detail span:first-child {
    font-weight: 600;
    color: #636e72;
    min-width: 60px;
}

.blockly-challenge-workplace .test-detail code {
    font-family: 'Courier New', monospace;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
    flex: 1;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .blockly-challenge-workplace .challenge-content {
        flex-direction: column;
    }
    
    .blockly-challenge-workplace .instructions-panel {
        border-right: none;
        border-bottom: 2px solid #f1f5f9;
    }
    
    .blockly-challenge-workplace .challenge-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .blockly-challenge-workplace .challenge-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .blockly-challenge-workplace .tab-content.active {
        height: auto;
    }
    
    .blockly-challenge-workplace .blockly-workspace {
        height: 400px;
    }
}

/* ✨ Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.blockly-challenge-workplace .action-btn:hover {
    animation: bounce 0.4s;
}

@keyframes dot-hover {
    0% { transform: scale(1); }
    50% { transform: translateY(-2px) scale(1.3); }
    100% { transform: translateY(0) scale(1.2); }
}

.blockly-challenge-workplace .dot:hover {
    animation: dot-hover 0.3s forwards;
}

/* Scrollbar styling */
.blockly-challenge-workplace ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.blockly-challenge-workplace ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.blockly-challenge-workplace ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.blockly-challenge-workplace ::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}













 #blocklyDiv    svg{
display: revert-layer;
    }

    .blocklyMainBackground {
  fill: #f8fafc !important;
  stroke-width: 0;
}

.blocklyScrollbarBackground {
  fill: #f8fafc !important;
}

.blocklyToolboxDiv {
  background-color: #f8fafc;
}

.blocklyToolbox{
         background-color: rgb(204 204 204 / 20%);
}

