.xml-formatter-tool {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#xml-input, #xml-output {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
}

#xml-input {
    min-height: 380px;
    resize: none;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

#xml-output {
    background-color: #1e1e1e;
    color: #d4d4d4;
}

.tag {
    color: #569cd6;
}

.attribute {
    color: #9cdcfe;
}

.value {
    color: #ce9178;
}

.comment {
    color: #6a9955;
    font-style: italic;
}

.cdata {
    color: #b5cea8;
}

.entity {
    color: #d7ba7d;
}

.card-header {
    font-weight: 600;
}

.status-message {
    font-size: 0.9rem;
}

.status-success {
    color: #198754;
}

.status-error {
    color: #dc3545;
}

.status-info {
    color: #0dcaf0;
}

.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.validation-error {
    position: relative;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding-left: 10px;
}

.validation-error::after {
    content: attr(data-error);
    position: absolute;
    left: 0;
    bottom: -20px;
    font-size: 12px;
    color: #dc3545;
}

@media (max-width: 768px) {
    .xml-formatter-tool .col-md-6 {
        margin-bottom: 1rem;
    }
}