.js-checker-interface {
    margin-bottom: 2rem;
}

.checker-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .checker-container {
        grid-template-columns: 1fr 1fr;
    }
}

.editor-wrapper,
.results-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

@media (min-width: 992px) {
    .editor-wrapper {
        min-height: 600px;
    }
}

.editor-header,
.results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.editor-title,
.results-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.editor-icon,
.results-icon {
    font-size: 1.2rem;
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.action-btn.primary {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
}

.action-btn.primary:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(0);
}

.editor-container {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.code-editor {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.editor-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    background: #f9fafb;
}

.code-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.results-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.validation-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.status-badge.ready {
    background: rgba(255, 255, 255, 0.25);
}

.status-badge.valid {
    background: rgba(34, 197, 94, 0.9);
    color: #ffffff;
}

.status-badge.invalid {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

.status-badge.checking {
    background: rgba(251, 191, 36, 0.9);
    color: #ffffff;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.results-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 500px;
}

@media (min-width: 992px) {
    .results-content {
        max-height: 600px;
    }
}

.results-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: #9ca3af;
    font-size: 1rem;
}

.result-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-message.success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.result-message.error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.result-message.info {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.result-message-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-message-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.error-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(153, 27, 27, 0.2);
}

.error-line {
    
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    background: rgba(153, 27, 27, 0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.error-location {
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 0.25rem;
}

@media (max-width: 767px) {
    .checker-container {
        gap: 1rem;
    }

    .editor-wrapper,
    .results-wrapper {
        min-height: 400px;
        border-radius: 8px;
    }

    .editor-header,
    .results-header {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-title,
    .results-title {
        font-size: 1rem;
    }

    .editor-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .action-btn {
        flex: 1;
        min-width: 80px;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .editor-container {
        min-height: 300px;
    }

    .code-editor {
        min-height: 300px;
    }

    .editor-footer {
        padding: 0.875rem 1rem;
    }

    .code-stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .results-content {
        padding: 1rem;
        max-height: 400px;
    }

    .result-message {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .editor-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .code-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
