/* XML Checker Container */
.xml-checker-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* Editor Wrapper */
.xml-editor-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;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.editor-icon {
    font-size: 20px;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 16px;
}

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

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

/* ACE Editor Container */
.xml-editor {
    flex: 1;
    min-height: 400px;
    width: 100%;
}

/* Editor Footer */
.editor-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-validate {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

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

.btn-icon-inline {
    font-size: 18px;
}

/* Results Panel */
.results-panel {
    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;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.results-title {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
}

.results-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #6c757d;
    color: white;
}

.results-status.valid {
    background: #28a745;
}

.results-status.error {
    background: #dc3545;
}

.results-status.warning {
    background: #ffc107;
    color: #212529;
}

.results-content {
    flex: 1;
    padding: 20px;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #6c757d;
    text-align: center;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.results-placeholder p {
    font-size: 14px;
    margin: 0;
}

/* Error Display */
.error-display {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.error-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 12px;
    font-size: 16px;
}

.error-icon {
    font-size: 20px;
}

.error-message {
    color: #721c24;
    font-size: 14px;
    line-height: 1.6;
    
    white-space: pre-wrap;
    word-break: break-word;
}

/* Success Display */
.success-display {
    background: #f0fff4;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.success-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 12px;
    font-size: 16px;
}

.success-icon {
    font-size: 20px;
}

/* Analysis Display */
.analysis-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.analysis-title {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.analysis-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analysis-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.analysis-value {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .xml-checker-container {
        grid-template-columns: 1fr;
    }
    
    .xml-editor-wrapper,
    .results-panel {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .xml-checker-container {
        gap: 16px;
        margin-top: 24px;
    }
    
    .editor-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .editor-title {
        font-size: 14px;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .xml-editor {
        min-height: 300px;
    }
    
    .editor-footer {
        padding: 12px 16px;
    }
    
    .btn-validate {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .results-header {
        padding: 12px 16px;
    }
    
    .results-content {
        padding: 16px;
        max-height: calc(400px - 60px);
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .analysis-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .editor-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .editor-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .xml-editor {
        min-height: 250px;
    }
    
    .results-content {
        max-height: calc(350px - 60px);
    }
    
    .error-message {
        font-size: 12px;
    }
}
