.html-formatter-tool {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#html-input, #html-output {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
}

#html-input {
    min-height: 380px;
    resize: none;
}

#html-output {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.tag {
    color: #2f6f9f;
}

.attribute {
    color: #4f9fcf;
}

.value {
    color: #d44950;
}

.comment {
    color: #999;
    font-style: italic;
}

.string {
    color: #d44950;
}

.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-message {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

.status-info {
    background-color: #e7f5ff;
    color: #1864ab;
}

.status-success {
    background-color: #ebfbee;
    color: #2b8a3e;
}

.status-error {
    background-color: #fff5f5;
    color: #c92a2a;
}

.card-header {
    font-weight: 600;
}

.input-group-text {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .html-formatter-tool .col-md-6 {
        margin-bottom: 1rem;
    }
}