/* CSS tùy chỉnh */

:root {
    --primary-color: #0d6efd;
    --danger-color: #dc3545;
    --success-color: #198754;
    --warning-color: #ffc107;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#codeEditor {
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-size: 14px;
    border-radius: 4px;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

#resultsContainer {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.alert-custom {
    border-left: 4px solid;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    border-left-color: var(--danger-color);
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    border-left-color: var(--success-color);
    background-color: #d4edda;
    color: #155724;
}

.alert-info {
    border-left-color: var(--primary-color);
    background-color: #d1ecf1;
    color: #0c5460;
}

.test-case {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.test-case-result {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.test-case-result.passed {
    background-color: #d4edda;
    color: #155724;
}

.test-case-result.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-sm {
    border-radius: 4px;
}

code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.hljs {
    background-color: #1e1e1e !important;
    color: #d4d4d4 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }

    #codeEditor {
        height: 300px !important;
    }

    #resultsContainer {
        height: 300px !important;
    }
}

/* Loading animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* Suggestion styles */
.suggestion-box {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.suggestion-box h6 {
    color: #0d6efd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.suggestion-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.error-details {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    margin-top: 0.5rem;
}
