/* LLMs.txt URL Validator Frontend Styles */

/* Base Container */
.llms-txt-validator-container {
    max-width: 900px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
}

/* Header Section */
.validator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #000000 100%);
    color: white !important;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.validator-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color:white ;
}

.validator-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Input Section */
.validator-input-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.validator-input-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.input-with-button {
    display: flex;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.input-with-button input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.input-with-button input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-with-button input::placeholder {
    color: #a0aec0;
}

.fetch-validate-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fetch-validate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.fetch-validate-btn:active {
    transform: translateY(0);
}

.fetch-validate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.input-description {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
    font-style: italic;
}

/* Example Section */
.example-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.example-section p {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #4a5568;
}

.example-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.example-btn {
    padding: 0.6rem 1rem;
    border: 2px solid #5281bf;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.example-btn:hover {
    border-color: #29b220 !important;
    background: #29b220;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Progress Section */
.progress-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 12px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.1) 75%, 
        transparent 75%, 
        transparent);
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

/* Results Section */
.results-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.results-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
    border-color: #48bb78;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #e53e3e;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #d69e2e;
}

.results-summary {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
}

/* Tabs */
.results-tabs {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1.2rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: #4a5568;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    color: #667eea;
    background: #fff;
    border-bottom: 3px solid #667eea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 2rem;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Resize indicator for mobile */
.content-header::after {
    content: "↕️ Drag to resize";
    position: absolute;
    bottom: -0.5rem;
    right: 1rem;
    font-size: 0.7rem;
    color: #667eea;
    background: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    opacity: 0.8;
    pointer-events: none;
}

@media (min-width: 769px) {
    .content-header::after {
        display: none;
    }
}

.content-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
}

.content-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #4a5568;
}

.action-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Raw Content Area */
#raw-content-area {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #000000 !important;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    color: #2d3748;
    min-height: 300px;
    overflow-y: auto;
    position: relative;
}

/* Enhanced resize handle styling */
#raw-content-area::-webkit-resizer {
    background: #667eea;
    border: 2px solid #667eea;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

#raw-content-area::-webkit-resizer:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: scale(1.1);
}

/* Mobile-specific resize handle enhancement */
@media (max-width: 768px) {
    #raw-content-area {
        border-bottom-width: 4px;
        border-bottom-color: #667eea;
    }
    
    #raw-content-area::-webkit-resizer {
        background: #667eea;
        border: 3px solid #667eea;
        border-radius: 6px;
        box-shadow: 0 3px 6px rgba(102, 126, 234, 0.4);
        width: 20px;
        height: 20px;
    }
}

#raw-content-area:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.content-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

/* Markdown Preview */
.markdown-preview {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    background: #000000 !important;
    min-height: 300px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #ffffff !important;
}

.markdown-preview h1 {
    color: #ffffff !important;
    border-bottom: 3px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.markdown-preview h2 {
    color: #ffffff !important;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.markdown-preview h2::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.markdown-preview h3 {
    color: #ffffff !important;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.markdown-preview blockquote {
    border-left: 4px solid #667eea;
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    font-style: italic;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.markdown-preview blockquote p {
    margin: 0;
    color: #4a5568;
    font-size: 1.1rem;
}

.markdown-preview ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.markdown-preview li {
    margin-bottom: 0.75rem;
    position: relative;
    background: black;
}

.markdown-preview li::marker {
    color: #667eea;
    font-weight: bold;
}

.markdown-preview a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.markdown-preview a:hover {
    border-bottom-color: #667eea;
    color: #5a67d8;
}

.markdown-preview p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.markdown-preview code {
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e53e3e;
    border: 1px solid #e2e8f0;
}

/* Info Section */
.validator-info-section {
    margin-top: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.info-card h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-card li:before {
    content: "✓";
    color: #48bb78;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.info-card p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.info-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Style Variants */

/* Compact Style */
.llms-txt-validator-container[data-style="compact"] .validator-header {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.llms-txt-validator-container[data-style="compact"] .validator-header h2 {
    font-size: 1.8rem;
  
}

.llms-txt-validator-container[data-style="compact"] .validator-input-section,
.llms-txt-validator-container[data-style="compact"] .progress-section,
.llms-txt-validator-container[data-style="compact"] .results-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.llms-txt-validator-container[data-style="compact"] .tab-pane {
    padding: 1.5rem;
}

.llms-txt-validator-container[data-style="compact"] .info-card {
    padding: 1.5rem;
}

/* Minimal Style */
.llms-txt-validator-container[data-style="minimal"] {
    box-shadow: none;
}

.llms-txt-validator-container[data-style="minimal"] .validator-header {
    background: none;
    color: #FFFFFF !important;
    padding: 1.5rem 0;
    box-shadow: none;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 0;
}

.llms-txt-validator-container[data-style="minimal"] .validator-input-section,
.llms-txt-validator-container[data-style="minimal"] .progress-section,
.llms-txt-validator-container[data-style="minimal"] .results-section,
.llms-txt-validator-container[data-style="minimal"] .info-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.llms-txt-validator-container[data-style="minimal"] .fetch-validate-btn {
    background: #2d3748;
    box-shadow: none;
}

.llms-txt-validator-container[data-style="minimal"] .fetch-validate-btn:hover {
    background: #1a202c;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Interactive States */
.copy-success {
    background: #48bb78 !important;
    color: white !important;
    border-color: #48bb78 !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Validation States */
.input-with-button input.invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-with-button input.valid {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

/* Messages */
.validation-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
    border: 2px solid;
}

.validation-message.success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #22543d;
    border-color: #48bb78;
}

.validation-message.error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    border-color: #e53e3e;
}

.validation-message.warning {
    background: linear-gradient(135deg, #fefcbf 0%, #faf089 100%);
    color: #744210;
    border-color: #d69e2e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .llms-txt-validator-container {
        margin: 1rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .llms-txt-validator-container {
        margin: 0.5rem;
    }
    
    .validator-header {
        padding: 1.5rem 1rem;
    }
    
    .validator-header h2 {
        font-size: 1.8rem;
    }
    
    .validator-input-section,
    .progress-section,
    .results-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .input-with-button {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .input-with-button input,
    .fetch-validate-btn {
        width: 100%;
    }
    
    .example-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    /* Fix results header alignment */
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
        text-align: left;
    }
    
    .results-header h3 {
        font-size: 1.1rem;
        margin: 0;
        width: 100%;
    }
    
    .status-badge {
        align-self: flex-start;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Fix results summary layout */
    .results-summary {
        padding: 1rem;
    }
    
    /* Fix tabs for mobile */
    .results-tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .results-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
        min-width: 120px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .tab-btn.active {
        border-bottom: 3px solid #667eea;
        border-radius: 0;
    }
    
    .content-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 0.75rem;
    position: relative;
}
    
    .content-header h4 {
        font-size: 1rem;
        margin: 0;
    }
    
    .content-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 100px;
    }
    
    .content-stats {
        flex-direction: column;
        gap: 0.25rem;
        text-align: left;
        align-items: flex-start;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-pane {
        padding: 1rem;
    }
    
    /* Increase textarea height on mobile */
    #raw-content-area {
        min-height: 300px;
        font-size: 0.85rem;
        padding: 1rem;
        height: 300px;
        overflow-y: auto;
    }
    
            .markdown-preview {
            padding: 1rem;
            min-height: 300px;
            height: 300px;
            overflow-y: auto;
        }
    
    .markdown-preview h1 {
        font-size: 1.6rem;
    }
    
    .markdown-preview h2 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }
    
    .validation-message {
        padding: 0.75rem 1rem;
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .llms-txt-validator-container {
        margin: 0.25rem;
    }
    
    .validator-header {
        padding: 1rem 0.75rem;
    }
    
    .validator-header h2 {
        font-size: 1.5rem;
    }
    
    .validator-header p {
        font-size: 1rem;
    }
    
    .validator-input-section,
    .progress-section,
    .results-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .results-header {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .results-header h3 {
        font-size: 1rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .results-summary {
        padding: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.75rem 0.8rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .tab-pane {
        padding: 0.75rem;
    }
    
    /* Ensure adequate textarea height on small mobile */
    #raw-content-area {
        min-height: 280px;
        height: 280px;
        font-size: 0.8rem;
        padding: 0.75rem;
        line-height: 1.4;
        overflow-y: auto;
    }
    
    .content-header {
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        position: relative;
    }
    
    .content-header h4 {
        font-size: 0.9rem;
    }
    
    .example-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    .content-stats {
        font-size: 0.75rem;
        gap: 0.2rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .fetch-validate-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .markdown-preview {
        padding: 0.75rem;
        min-height: 280px;
        height: 280px;
        overflow-y: auto;
    }
    
    .markdown-preview h1 {
        font-size: 1.4rem;
    }
    
    .markdown-preview h2 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    .validation-message {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .validator-header {
        background: #000;
        color: #fff;
    }
    
    .fetch-validate-btn {
        background: #000;
        border: 2px solid #fff;
    }
    
    .tab-btn.active {
        background: #000;
        color: #fff;
    }
    
    .status-badge.success {
        background: #000;
        color: #fff;
        border-color: #fff;
    }
    
    .status-badge.error {
        background: #fff;
        color: #000;
        border-color: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .progress-fill::after {
        animation: none;
    }
    
    .pulse {
        animation: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .llms-txt-validator-container {
        color: #e2e8f0;
    }
    
    .validator-input-section,
    .progress-section,
    .results-section,
    .info-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .input-with-button input,
    #raw-content-area {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .input-with-button input::placeholder {
        color: #718096;
    }
    
    .markdown-preview {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .markdown-preview h1,
    .markdown-preview h2,
    .markdown-preview h3 {
        color: #f7fafc;
    }
    
    .markdown-preview blockquote {
        background: #FFFFFF;
        color: #000000;
    }
    
    .results-header {
        background: #1a202c;
    }
    
    .results-tabs {
        background: #2d3748;
    }
    
    .tab-btn.active {
        background: #1a202c;
        color: #667eea;
    }
    
    .content-header {
        border-color: #4a5568;
    }
    
    .content-stats {
        border-color: #4a5568;
        color: #a0aec0;
    }
}

/* Print Styles */
@media print {
    .llms-txt-validator-container {
        box-shadow: none;
        margin: 0;
    }
    
    .validator-header {
        background: #f7fafc !important;
        color: #000 !important;
        border: 1px solid #000;
    }
    
    .fetch-validate-btn,
    .action-btn,
    .example-btn {
        display: none;
    }
    
    .results-tabs,
    .content-actions {
        display: none;
    }
    
    .tab-pane {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .info-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}