#container { 
    height: 40vh; 
    width: 100%; 
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #4B5563;
}

#editor { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    font-size: medium; 
}

.outline {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    border: 1px solid #6B7280;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 600px;
}

.modern-box {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
}

.modern-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.2);
}

.modern-box.accepted {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    border-color: #10B981;
    color: #ECFDF5;
}

.modern-box.wrong-answer {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    border-color: #EF4444;
    color: #FEF2F2;
}

.modern-box.time-limit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%);
    border-color: #F59E0B;
    color: #FFFBEB;
}

.modern-box.runtime-error {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9) 0%, rgba(147, 51, 234, 0.9) 100%);
    border-color: #A855F7;
    color: #FAF5FF;
}

.modern-box.memory-limit {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    border-color: #6366F1;
    color: #EEF2FF;
}

.modern-box.pending {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.9) 0%, rgba(75, 85, 99, 0.9) 100%);
    border-color: #6B7280;
    color: #F9FAFB;
}

.status-symbol {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.status-symbol svg {
    width: 36px;
    height: 36px;
}

.testcase-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
}

.testcase-number {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.9;
}

.metrics {
    text-align: right;
    opacity: 0.8;
}

.metric-text {
    margin: 0;
    line-height: 1.2;
    font-size: 12px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .box-container {
        gap: 6px;
        max-width: 400px;
    }
    
    .modern-box {
        width: 60px;
        height: 60px;
        padding: 5px;
    }
    
    .status-symbol {
        width: 20px;
        height: 20px;
    }
    
    .status-symbol svg {
        width: 14px;
        height: 14px;
    }
    
    .testcase-number {
        font-size: 10px;
    }
    
    .metric-text {
        font-size: 8px;
    }
}