.playground-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.playground-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.playground-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative; /* Add this to make absolute positioning work */
}

.playground-item:hover {
    border-color: #ff8c00;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
    transform: translateY(-2px);
}

/* Disabled/Coming Soon playground item */
.playground-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.playground-item.disabled:hover {
    background: #f8f9fa;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.playground-item.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
    pointer-events: none;
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3);
}

/* Beta badge */
.beta-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.playground-icon {
    font-size: 3rem;
    color: #ff8c00;
    flex-shrink: 0;
}

.playground-text {
    flex: 1;
}

.playground-text h2 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.playground-text p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Assembly editor specific styling */
.assembly-editor {
    height: 100%;
    width: 100%;
    min-height: 300px;
}

#compiler-monaco-editor {
    height: 70%;
    border-bottom: 1px solid #eee;
    border-radius: 4px;  /* Optional: adds rounded corners */
    margin-bottom: 1rem;  /* Add some space between editor and output panel */
}


#profile-monaco-editor {
    height: 70%;
    border-bottom: 1px solid #eee;
    border-radius: 4px;  /* Optional: adds rounded corners */
    margin-bottom: 1rem;  /* Add some space between editor and output panel */
}

.compiler-output {
    height: 85%;
    margin: 0;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;       /* Wrap on line breaks and spaces */
    word-wrap: break-word;       /* Break long words if needed */
    font-family: monospace;
    background: #f8f8f8;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Assembly line highlighting */
.assembly-line-highlight {
    background-color: rgba(255, 140, 0, 0.2) !important;
}

.assembly-line-glyph {
    background-color: #ff8c00 !important;
    width: 3px !important;
}

/* Source line highlighting (when hovering assembly) */
.source-line-highlight {
    background-color: rgba(100, 200, 255, 0.2) !important;
}

.source-line-glyph {
    background-color: #64c8ff !important;
    width: 3px !important;
}


.challenge-details-compiler-explorer-assembly h2 {
    margin: 0 0 0.5rem 0;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.challenge-details-compiler-explorer-assembly {
    width: 28%;
    padding: 0.5rem;
    border-right: 1px solid #eee;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.0;  /* Add space between flex items */
}

.profile-and-run-modal-h2 {
    margin: 0 0 0.5rem 0;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Profile Metrics Styling */
.profile-metrics-output {
    height: 100%;
    overflow-y: auto;
    background: #f8f8f8;
    padding: 1rem;
}

.metrics-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metrics-container h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 2px solid #ff8c00;
    padding-bottom: 0.5rem;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid #ff8c00;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metric-name {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.metric-time {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ff8c00;
}

.metric-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.metric-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00 0%, #ff6b00 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metrics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    font-family: monospace;
}

.no-metrics,
.error-metrics {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.error-metrics {
    color: #dc3545;
}

@media (max-width: 768px) {
    .playground-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .playground-icon {
        font-size: 2.5rem;
    }
    
    .playground-text h2 {
        font-size: 1.25rem;
    }
    
    .playground-text p {
        font-size: 0.9rem;
    }
}