:root {
    /* Primary Colors */
    --xml-primary: #059669;
    --xml-primary-dark: #047857;
    --xml-primary-light: #d1fae5;
    --xml-primary-hover: #047857;
    --xml-primary-shadow: rgb(5 150 105 / 25%);
    
    /* Semantic Colors */
    --xml-success: #10b981;
    --xml-warning: #f59e0b;
    --xml-danger: #ef4444;
    --xml-info: #3b82f6;
    --xml-accent: #34d399;
    
    /* Surface Colors */
    --xml-surface: #ffffff;
    --xml-surface-muted: #f0fdf4;
    --xml-surface-elevated: #ffffff;
    --xml-background: #f9fafb;
    --xml-secondary-bg: #e5e7eb;
    
    /* Border Colors */
    --xml-border: #d1d5db;
    --xml-border-light: #f3f4f6;
    --xml-border-dark: #9ca3af;
    
    /* Text Colors */
    --xml-text-main: #111827;
    --xml-text-muted: #6b7280;
    --xml-text-light: #9ca3af;
    --xml-text-inverse: #ffffff;
    
    /* Shadow System */
    --xml-shadow-soft: 0 20px 45px rgba(17, 24, 39, 0.08);
    --xml-shadow-sm: 0 1px 2px rgb(17 24 39 / 0.08);
    --xml-shadow-md: 0 4px 12px rgb(17 24 39 / 0.08);
    --xml-shadow-lg: 0 12px 24px rgb(17 24 39 / 0.12);
    --xml-shadow-xl: 0 20px 25px rgb(17 24 39 / 0.1);
    
    /* Border Radius */
    --xml-radius-sm: 0.375rem;
    --xml-radius-md: 0.75rem;
    --xml-radius-lg: 1.5rem;
    --xml-radius-xl: 2rem;
    --xml-radius-full: 9999px;
    
    /* Spacing */
    --xml-spacing-xs: 0.25rem;
    --xml-spacing-sm: 0.5rem;
    --xml-spacing-md: 1rem;
    --xml-spacing-lg: 1.5rem;
    --xml-spacing-xl: 2rem;
    
    /* Legacy Variables */
    --primary-color: var(--xml-primary);
    --primary-color-light: var(--xml-primary-light);
    --surface-color: var(--xml-surface);
    --light-bg: var(--xml-background);
    --border-color: var(--xml-border);
    --text-primary: var(--xml-text-main);
    --text-secondary: var(--xml-text-muted);
    --secondary-color: var(--xml-text-muted);
    --success-color: var(--xml-success);
    --info-color: var(--xml-info);
    --warning-color: var(--xml-warning);
    --danger-color: var(--xml-danger);
    --dark-text: var(--xml-text-main);
    --border-radius: var(--xml-radius-lg);
    --shadow: var(--xml-shadow-md);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    
    /* related to and faqs component variables */
    --primary: #059669;
    --primary-dark: #047857;
    --border: #d1d5db;
    --surface: #ffffff;
    --shadow-soft: 0 20px 45px rgba(17, 24, 39, 0.08);
    --surface-muted: #f0fdf4;
    --text-main: #111827;
    --text-muted: #6b7280;
}

.xml-validator-page {
    padding-bottom: 2rem;
}

.validator-intro {
    margin-bottom: 2rem;
}

.validator-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.validator-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    max-width: 700px;
}

.validator-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-chip {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--dark-text);
}

.validator-main {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--xml-shadow-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 2rem;
}

.validator-card {
    padding: 0;
}

.validator-form {
    max-width: 100%;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--dark-text);
}

.status-bar svg {
    flex-shrink: 0;
    color: var(--info-color);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9375rem;
}

.label-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-trigger {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--info-color);
    color: white;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}

.tooltip-trigger:hover {
    background: var(--xml-primary-hover);
    transform: scale(1.1);
}

.tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-text);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 0.75rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: var(--xml-shadow-lg);
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-text) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.editor-wrapper {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    min-height: 400px;
    transition: var(--transition);
    width: 100%;
}

.editor-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.validate-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--xml-primary), var(--xml-primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--xml-shadow-md);
    min-height: 48px;
    min-width: 140px;
}

.validate-btn:hover {
    background: linear-gradient(135deg, var(--xml-primary-dark), var(--xml-primary));
    transform: translateY(-2px);
    box-shadow: var(--xml-shadow-lg);
}

.validate-btn:active {
    transform: translateY(0);
    box-shadow: var(--xml-shadow-md);
}

.validate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2), var(--xml-shadow-md);
}

.ghost-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.ghost-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--light-bg);
}

.results-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.results-container[style*="display: block"] {
    animation: slideIn 0.5s ease-out;
}

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

.results-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.results-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
}

.results-stats {
    font-size: 0.875rem;
    color: var(--secondary-color);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-weight: 600;
}

.stat-value {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
}

.stat-value.success {
    background: var(--xml-primary-light);
    color: var(--xml-primary-dark);
}

.stat-value.error {
    background: #fee2e2;
    color: #dc2626;
}

.result-content {
    flex: 1;
    margin-bottom: 1.5rem;
    overflow-y: auto;
}

.validation-output {
    padding: 1rem;
    border-radius: 8px;
    min-height: 200px;
}

.validation-output.valid {
    background: var(--xml-primary-light);
    border: 2px solid var(--xml-success);
    color: var(--xml-primary-dark);
}

.validation-output.invalid {
    background: #fee2e2;
    border: 2px solid var(--xml-danger);
    color: #991b1b;
}

.validation-output.warning {
    background: #fef3c7;
    border: 2px solid var(--xml-warning);
    color: #92400e;
}

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

.validation-message svg {
    width: 20px;
    height: 20px;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.error-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--xml-danger);
    box-shadow: var(--xml-shadow-sm);
}

.error-line {
    font-weight: 700;
    color: var(--xml-danger);
    margin-bottom: 0.25rem;
}

.error-message {
    color: var(--xml-text-main);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.result-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.action-buttons-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.action-button {
    flex: 1 1 auto;
    min-width: 120px;
    background: #f1f5f9;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #405063;
    border: 1px solid #dde3e7;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.action-button:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.action-button.copied {
    background: var(--xml-success);
    border-color: var(--xml-success);
    color: #ffffff;
}

.action-button svg {
    width: 16px;
    height: 16px;
}

/* Share Container */
.share-container {
    background: rgba(241, 245, 249, 0.8);
    border-radius: var(--xml-radius-md);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.share-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(17, 24, 39, 0.2);
    color: #ffffff;
}

.share-x { background: #111827; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-reddit { background: #ff4500; }
.share-telegram { background: #229ed9; }
.share-whatsapp { background: #25d366; color: #0f172a; }

.empty-state-content {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--border-color);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* XML Validator Knowledge Section */
.xml-validator-knowledge {
    margin-top: 3rem;
    margin-bottom: 2.5rem;
}

.xml-validator-article {
    background: var(--xml-surface);
    border: 1px solid var(--xml-border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--xml-shadow-soft);
}

.xml-article-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--xml-text-main);
    margin-bottom: 0.75rem;
}

.xml-article-header p {
    color: var(--xml-text-muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.xml-step-box {
    margin-top: 1.5rem;
    padding: 20px;
    border: 1px dashed var(--xml-border-dark);
    border-radius: 14px;
    background: var(--xml-surface-muted);
}

.xml-step-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--xml-text-main);
}

.xml-steps-list {
    padding-left: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: var(--xml-text-muted);
    line-height: 1.6;
}

.xml-steps-list li + li {
    margin-top: 0.4rem;
}

.xml-tip {
    font-weight: 600;
    color: var(--xml-primary-dark);
    margin: 0;
}

.xml-scenario-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.xml-scenario-grid h3 {
    grid-column: 1 / -1;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--xml-text-main);
    margin-bottom: 0.25rem;
}

.scenario-card {
    border: 1px solid var(--xml-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--xml-shadow-sm);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scenario-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--xml-text-main);
}

.scenario-card p {
    margin: 0;
    color: var(--xml-text-muted);
    line-height: 1.6;
}

.scenario-snippet {
    background: var(--xml-surface-muted);
    border-radius: 10px;
    padding: 12px;
    
    font-size: 0.9rem;
    color: var(--xml-text-main);
    border: 1px solid var(--xml-border);
    white-space: pre-wrap;
    overflow-x: auto;
}

.xml-usecase-panel {
    margin-top: 2rem;
}

.xml-usecase-panel h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--xml-text-main);
}

.usecase-list {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--xml-text-muted);
    line-height: 1.6;
    margin: 0;
}

.usecase-list li + li {
    margin-top: 0.35rem;
}

.xml-pros-cons {
    margin-top: 2rem;
}

.xml-pros-cons h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--xml-text-main);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.pros-block,
.cons-block {
    border: 1px solid var(--xml-border);
    border-radius: 12px;
    background: var(--xml-surface-muted);
    padding: 16px;
    box-shadow: var(--xml-shadow-sm);
}

.pros-block h4,
.cons-block h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--xml-text-main);
}

.pros-block ul,
.cons-block ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--xml-text-muted);
    line-height: 1.55;
}

.pros-block li + li,
.cons-block li + li {
    margin-top: 0.35rem;
}

.xml-topic-guide {
    margin-top: 2rem;
    border: 1px solid var(--xml-border);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--xml-shadow-soft);
}

.xml-topic-guide h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--xml-text-main);
}

.topic-list {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--xml-text-muted);
    line-height: 1.6;
    margin: 0;
}

.topic-list li + li {
    margin-top: 0.35rem;
}

.topic-list a {
    color: var(--xml-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.topic-list a:hover {
    border-bottom-color: var(--xml-primary);
}

.xml-how-tool-works,
.xml-accuracy,
.xml-team-card {
    margin-top: 2rem;
}

.xml-how-tool-works h3,
.xml-accuracy h3,
.xml-team-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--xml-text-main);
    margin-bottom: 0.4rem;
}

.xml-how-tool-works p,
.xml-accuracy ul,
.xml-team-card p {
    color: var(--xml-text-muted);
    line-height: 1.65;
    margin: 0;
}

.xml-accuracy ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.xml-accuracy li + li {
    margin-top: 0.35rem;
}

.trust-note {
    margin-top: 0.5rem;
    color: var(--xml-text-muted);
    font-weight: 600;
}

.xml-team-card a {
    color: var(--xml-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.xml-team-card a:hover {
    border-bottom-color: var(--xml-primary);
}

/* Validation Flow Infographic */
.xml-validation-flow-infographic {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--xml-surface-muted) 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid var(--xml-border);
}

.xml-validation-flow-infographic h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--xml-text-main);
    text-align: center;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--xml-shadow-sm);
    border: 2px solid var(--xml-border);
    transition: var(--transition);
}

.flow-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--xml-shadow-md);
    border-color: var(--xml-primary);
}

.flow-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--xml-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--xml-primary-dark);
}

.flow-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--xml-text-main);
}

.flow-content p {
    font-size: 0.875rem;
    color: var(--xml-text-muted);
    margin: 0;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--xml-primary);
    font-weight: 700;
}

/* Error Types Visual */
.xml-error-types-visual {
    margin: 2.5rem 0;
}

.xml-error-types-visual h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--xml-text-main);
}

.error-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.error-type-card {
    background: white;
    border: 1px solid var(--xml-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--xml-shadow-sm);
}

.error-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xml-shadow-md);
    border-color: var(--xml-primary);
}

.error-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon.error-syntax {
    background: #fee2e2;
    color: #dc2626;
}

.error-icon.error-structure {
    background: #fef3c7;
    color: #d97706;
}

.error-icon.error-attribute {
    background: #dbeafe;
    color: #2563eb;
}

.error-icon.error-encoding {
    background: #e0e7ff;
    color: #6366f1;
}

.error-type-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--xml-text-main);
}

.error-type-card p {
    font-size: 0.875rem;
    color: var(--xml-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Quick Guide Box */
.xml-quick-guide-box {
    margin: 2.5rem 0;
    background: linear-gradient(135deg, var(--xml-primary-light) 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--xml-primary);
    box-shadow: var(--xml-shadow-md);
}

.quick-guide-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quick-guide-header svg {
    color: var(--xml-primary-dark);
}

.quick-guide-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--xml-text-main);
    margin: 0;
}

.quick-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--xml-primary);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--xml-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    color: var(--xml-text-main);
    font-weight: 500;
}

.quick-tip {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid var(--xml-warning);
    color: var(--xml-text-main);
}

.quick-tip strong {
    color: var(--xml-primary-dark);
}

/* Scenario Cards Enhanced */
.scenario-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--xml-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.scenario-example {
    margin: 1rem 0;
}

.example-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--xml-text-muted);
    margin-bottom: 0.5rem;
}

.scenario-outcome {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--xml-primary-light);
    border-radius: 8px;
    border-left: 3px solid var(--xml-success);
    color: var(--xml-text-main);
    font-size: 0.9375rem;
}

/* Use Case Grid */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.usecase-item {
    background: white;
    border: 1px solid var(--xml-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--xml-shadow-sm);
}

.usecase-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--xml-shadow-md);
    border-color: var(--xml-primary);
}

.usecase-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.usecase-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--xml-text-main);
}

.usecase-item p {
    font-size: 0.875rem;
    color: var(--xml-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Features Comparison */
.xml-features-comparison {
    margin: 2.5rem 0;
}

.xml-features-comparison h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--xml-text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--xml-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--xml-shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xml-shadow-md);
}

.feature-card.feature-positive {
    border-left: 4px solid var(--xml-success);
}

.feature-card.feature-neutral {
    border-left: 4px solid var(--xml-warning);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-header svg {
    flex-shrink: 0;
}

.feature-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--xml-text-main);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--xml-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Best Practices Section */
.xml-best-practices-section {
    margin: 2.5rem 0;
}

.xml-best-practices-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--xml-text-main);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.practice-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--xml-border);
    box-shadow: var(--xml-shadow-sm);
    transition: var(--transition);
}

.practice-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--xml-shadow-md);
}

.practice-item.practice-good {
    border-left: 4px solid var(--xml-success);
}

.practice-item.practice-bad {
    border-left: 4px solid var(--xml-danger);
}

.practice-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.practice-good .practice-icon {
    background: var(--xml-primary-light);
    color: var(--xml-success);
}

.practice-bad .practice-icon {
    background: #fee2e2;
    color: var(--xml-danger);
}

.practice-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--xml-text-main);
}

.practice-content p {
    font-size: 0.875rem;
    color: var(--xml-text-muted);
    margin: 0;
    line-height: 1.5;
}

.related-tools-callout {
    padding: 1.5rem;
    background: var(--xml-surface-muted);
    border-radius: 12px;
    border: 1px solid var(--xml-border);
}

.related-tools-callout h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--xml-text-main);
}

.related-tools-callout p {
    font-size: 0.9375rem;
    color: var(--xml-text-muted);
    margin: 0;
    line-height: 1.6;
}

.related-tools-callout a {
    color: var(--xml-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.related-tools-callout a:hover {
    border-bottom-color: var(--xml-primary);
}

@media (max-width: 992px) {
    .validator-main {
        padding: 1.5rem;
    }
    
    .xml-scenario-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .error-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .practices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .validator-card {
        padding: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .validate-btn,
    .ghost-btn {
        width: 100%;
    }
    
    .action-buttons-row {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xml-validator-article {
        padding: 20px;
    }

    .xml-scenario-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .editor-wrapper {
        min-height: 300px;
    }
    
    .editor-wrapper .editor {
        height: 300px;
    }
    
    .xml-validation-flow-infographic {
        padding: 1.5rem;
    }
    
    .error-types-grid {
        grid-template-columns: 1fr;
    }
    
    .usecase-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-guide-box {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .xml-scenario-grid {
        grid-template-columns: 1fr;
    }
    
    .validator-main {
        padding: 1rem;
    }
    
    .flow-step {
        min-width: 100%;
        max-width: 100%;
    }
    
    .xml-validation-flow-infographic {
        padding: 1rem;
    }
    
    .xml-quick-guide-box {
        padding: 1rem;
    }
    
    .quick-step {
        flex-direction: column;
        text-align: center;
    }
}

