.card {
    border-radius: 15px;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.tree-node {
    margin-left: 20px;
    border-left: 1px solid #495057;
    padding-left: 10px;
}

.tree-node:before {
    content: "├─";
    color: #6c757d;
    margin-right: 5px;
}

.tree-node:last-child:before {
    content: "└─";
}

.tree-tag {
    color: #e83e8c;
    font-weight: bold;
}

.tree-attribute {
    color: #fd7e14;
}

.tree-value {
    color: #20c997;
}

.tree-text {
    color: #f8f9fa;
}

.tree-comment {
    color: #6c757d;
    font-style: italic;
}

.tree-doctype {
    color: #dc3545;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: bold;
}

#treeView {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.tree-toggle {
    cursor: pointer;
    color: #0d6efd;
    margin-right: 5px;
}

.tree-toggle:hover {
    color: #0a58ca;
}

.tree-content {
    display: inline-block;
}

.tree-hidden {
    display: none;
}

.tree-line {
    margin: 2px 0;
    padding: 2px 0;
}

.tree-line:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
#formatHtml {
    padding: 0.75rem 1.25rem;
}

.alert-info {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
    color: var(--neutral--100);
}

.alert-info i {
    color: #007bff;
}
.alert-light {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--neutral--600);
    color: var(--neutral--200);
}

.alert-light h5 {
    color: var(--neutral--100);
    margin-bottom: 1rem;
}

.alert-light ul li {
    margin-bottom: 0.5rem;
}
.list-unstyled li>i{
    margin-right: 0.5rem;
}

.content-sections .content-block {
    max-width: 960px;
    margin: 0 auto;
    color: var(--neutral--100);
}

.content-sections .content-block h2,
.content-sections .content-block h3 {
    color: var(--neutral--50);
    font-weight: 600;
}

.content-sections .content-block p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--neutral--200);
}

.content-sections .content-block ul,
.content-sections .content-block ol {
    margin-left: 1.25rem;
    line-height: 1.7;
    color: var(--neutral--200);
}

.content-sections .content-block ul li,
.content-sections .content-block ol li {
    margin-bottom: 0.5rem;
}

.before-after-cards .code-card {
    background-color: var(--neutral--800);
    border: 1px solid var(--neutral--600);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.25);
}

.code-card-header {
    background: rgba(13, 110, 253, 0.1);
    border-bottom: 1px solid var(--neutral--600);
    color: var(--neutral--50);
    font-weight: 600;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-card pre {
    margin: 0;
    padding: 18px 20px;
    background: transparent;
    color: var(--neutral--200);
    font-size: 13px;
    line-height: 1.6;
}

.code-card code {
    color: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Example cards styles */
.example-card {
    background-color: var(--neutral--700);
    border: 1px solid var(--neutral--600);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.example-card:hover {
    border-color: var(--neutral--500);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.example-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.example-header i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.example-header h6 {
    margin: 0;
    color: var(--neutral--100);
    font-weight: 600;
}

.example-preview {
    position: relative;
    max-height: 120px;
    overflow: hidden;
}

.example-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, var(--neutral--700));
    pointer-events: none;
}

.example-preview code {
    font-size: 11px;
    line-height: 1.3;
    color: var(--neutral--300);
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
}

.example-card:hover .example-preview {
    opacity: 0.3;
}

@media (max-width: 768px) {
    .example-card {
        margin-bottom: 15px;
    }

    .example-preview {
        max-height: 80px;
    }

    .example-preview code {
        font-size: 10px;
    }
}
