/* Standalone CSS for Compare JSON Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 10px;
    color: #333;
}

body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    color: #0066cc;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.dark-mode .page-loader {
    background: rgba(26, 26, 26, 0.95);
}

body.dark-mode .loader-spinner {
    border-color: #404040;
    border-top-color: #0066cc;
}

body.dark-mode .loader-text {
    color: #6bb6ff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

body.dark-mode .container {
    background: #252525;
    border-color: #404040;
}

header {
    background: #ffffff;
    color: #333;
    padding: 24px 30px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

body.dark-mode header {
    background: #2d2d2d;
    border-bottom-color: #404040;
    color: #e0e0e0;
}

header h1 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    letter-spacing: -0.3px;
}

body.dark-mode header h1 {
    color: #e0e0e0;
}

header p {
    font-size: 11px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

header p.header-description {
    display: block;
}

body.dark-mode header p {
    color: #b0b0b0;
}

.header-actions {
    position: absolute;
    top: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: #f0f7ff;
    text-decoration: none;
}

body.dark-mode .nav-link {
    color: #6bb6ff;
}

body.dark-mode .nav-link:hover {
    background: #404040;
}

.dark-mode-toggle {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 11px;
    color: white;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    background: linear-gradient(135deg, #0052a3 0%, #0066cc 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dark-mode-toggle .icon {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: brightness(1.2);
}

.dark-mode-toggle span:not(.icon) {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Button Styles - Matching index.html */
button:not(.tab) {
    padding: 0px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    background: #0066cc;
    color: white;
    height: 25px;
}

button:not(.tab):hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

button:not(.tab):active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

button:not(.tab).secondary {
    background: #6c757d;
}

button:not(.tab).secondary:hover {
    background: #5a6268;
}

button:not(.tab).success {
    background: #28a745;
}

button:not(.tab).success:hover {
    background: #218838;
}

button:not(.tab).danger {
    background: #dc3545;
}

button:not(.tab).danger:hover {
    background: #c82333;
}

button:not(.tab).warning {
    background: #dea705;
}

button:not(.tab).warning:hover {
    background: #e0a800;
    color: white;
}

button:not(.tab).primary {
    background: #0066cc;
}

button:not(.tab).primary:hover {
    background: #0052a3;
}

button:not(.tab).small {
    padding: 0px 12px;
    font-size: 12px;
    height: 25px;
}

/* Keyboard focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

body.dark-mode button:not(.tab) {
    color: white;
}

/* Compare Main Content */
.compare-main-content {
    padding: 20px;
}

.compare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.compare-header-left,
.compare-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.compare-header-left {
    justify-content: flex-start;
}

.compare-header-right {
    justify-content: flex-end;
}

.compare-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compare-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 60px;
}

body.dark-mode .compare-header h3 {
    color: #e0e0e0;
}

.compare-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0px 12px;
    font-size: 12px;
    font-weight: 500;
    height: 25px;
}

.compare-btn svg {
    width: 16px;
    height: 16px;
}

.compare-container {
    display: flex;
    gap: 0;
    height: 60vh;
    min-height: 400px;
    max-height: 70vh;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

body.dark-mode .compare-container {
    border-color: #404040;
    background: #1a1a1a;
}

.compare-editor-wrapper {
    flex: 1;
    position: relative;
    border-right: 1.5px solid #e5e7eb;
}

body.dark-mode .compare-editor-wrapper {
    border-right-color: #404040;
}

.compare-editor-wrapper:last-child {
    border-right: none;
}

.compare-editor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: none;
    border-radius: 0;
}

.compare-divider {
    width: 2px;
    background: #e5e7eb;
    flex-shrink: 0;
    position: relative;
}

body.dark-mode .compare-divider {
    background: #404040;
}

/* Ace Editor annotations for highlighting differences */
.ace_editor .ace_gutter-cell.ace_error {
    background-color: #f8d7da;
    color: #721c24;
}

.ace_editor .ace_gutter-cell.ace_warning {
    background-color: #fff3cd;
    color: #856404;
}

.ace_editor .ace_gutter-cell.ace_info {
    background-color: #d4edda;
    color: #155724;
}

body.dark-mode .ace_editor .ace_gutter-cell.ace_error {
    background-color: #4a1f24;
    color: #f8d7da;
}

body.dark-mode .ace_editor .ace_gutter-cell.ace_warning {
    background-color: #4a3f1f;
    color: #fff3cd;
}

body.dark-mode .ace_editor .ace_gutter-cell.ace_info {
    background-color: #1f3a24;
    color: #d4edda;
}

.compare-results {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
}

body.dark-mode .compare-results {
    background: #252525;
    border-color: #404040;
}

.compare-results.hidden {
    display: none;
}

.compare-summary {
    margin-bottom: 20px;
}

.compare-summary h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

body.dark-mode .compare-summary h3 {
    color: #e0e0e0;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.stat-box {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid;
}

.stat-box.added {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.stat-box.removed {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.stat-box.changed {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.stat-box.same {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.stat-box .stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.summary-message {
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.success-text {
    color: #28a745;
}

.warning-text {
    color: #856404;
}

.compare-diff {
    margin-top: 20px;
}

.diff-section {
    margin-bottom: 25px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

body.dark-mode .diff-section {
    background: #2d2d2d;
    border-color: #404040;
}

.diff-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}

.diff-title.added {
    color: #28a745;
    border-bottom-color: #28a745;
}

.diff-title.removed {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.diff-title.changed {
    color: #ffc107;
    border-bottom-color: #ffc107;
}

.diff-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.diff-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #e5e7eb;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

body.dark-mode .diff-list li {
    background: #1a1a1a;
    border-left-color: #404040;
    color: #e0e0e0;
}

.diff-path {
    font-weight: 600;
    color: #0066cc;
    margin-right: 8px;
}

body.dark-mode .diff-path {
    color: #6bb6ff;
}

.diff-value {
    color: #333;
}

body.dark-mode .diff-value {
    color: #e0e0e0;
}

.diff-old {
    color: #dc3545;
    text-decoration: line-through;
    margin-right: 8px;
}

.diff-arrow {
    color: #666;
    margin: 0 8px;
    font-weight: 600;
}

.diff-new {
    color: #28a745;
    font-weight: 600;
}

.no-diff {
    text-align: center;
    padding: 20px;
    color: #28a745;
    font-size: 16px;
    font-weight: 600;
}

/* SEO Content Section */
.seo-content-section {
    padding: 40px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

body.dark-mode .seo-content-section {
    background: #1a1a1a;
    border-top-color: #404040;
}

.seo-content-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

body.dark-mode .seo-content-section h2 {
    color: #e0e0e0;
}

.seo-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
}

body.dark-mode .seo-intro {
    color: #b0b0b0;
}

.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.seo-feature {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body.dark-mode .seo-feature {
    background: #2d2d2d;
    border-color: #404040;
}

.seo-feature h3 {
    color: #0066cc;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

body.dark-mode .seo-feature h3 {
    color: #6bb6ff;
}

.seo-feature p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

body.dark-mode .seo-feature p {
    color: #b0b0b0;
}

.seo-use-cases {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body.dark-mode .seo-use-cases {
    background: #2d2d2d;
    border-color: #404040;
}

.seo-use-cases h3 {
    color: #0066cc;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

body.dark-mode .seo-use-cases h3 {
    color: #6bb6ff;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.use-case-item {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .use-case-item {
    background: #2d2d2d;
    border-left-color: #0066cc;
}

.use-case-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.15);
}

.use-case-item h4 {
    color: #0066cc;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

body.dark-mode .use-case-item h4 {
    color: #6bb6ff;
}

.use-case-item p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

body.dark-mode .use-case-item p {
    color: #b0b0b0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
    
    header {
        padding: 15px 15px;
        text-align: left;
    }
    
    header h1 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 6px;
        text-align: center;
    }
    
    header p {
        font-size: 10px;
        line-height: 1.4;
        text-align: center;
    }
    
    header p.header-description {
        display: none !important;
    }
    
    .header-actions {
        position: static;
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .dark-mode-toggle {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .compare-main-content {
        padding: 15px 10px;
    }
    
    .compare-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .compare-header-left,
    .compare-header-right {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        min-width: auto;
    }
    
    .compare-header h3 {
        font-size: 14px;
        min-width: auto;
        margin-right: 8px;
    }
    
    .compare-header-center {
        width: 100%;
        justify-content: center;
        order: -1;
    }
    
    .compare-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
        height: auto;
        min-height: 35px;
    }
    
    .compare-container {
        flex-direction: column;
        height: auto;
        min-height: 400px;
        border-radius: 8px;
    }
    
    .compare-editor-wrapper {
        flex: 1;
        min-height: 200px;
        border-right: none;
        border-bottom: 1.5px solid #e5e7eb;
    }
    
    .compare-editor-wrapper:last-child {
        border-bottom: none;
    }
    
    body.dark-mode .compare-editor-wrapper {
        border-bottom-color: #404040;
    }
    
    .compare-divider {
        width: 100%;
        height: 2px;
    }
    
    .compare-results {
        padding: 15px;
        margin-top: 15px;
    }
    
    .compare-summary h3 {
        font-size: 16px;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-box {
        padding: 10px;
    }
    
    .stat-box .stat-value {
        font-size: 20px;
    }
    
    .seo-content-section {
        padding: 20px 10px;
    }
    
    .seo-content-section h2 {
        font-size: 20px;
    }
    
    .seo-intro {
        font-size: 13px;
    }
    
    .seo-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .seo-feature {
        padding: 15px;
    }
    
    .seo-feature h3 {
        font-size: 15px;
    }
    
    .seo-feature p {
        font-size: 12px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .use-case-item {
        padding: 15px;
    }
    
    .use-case-item h4 {
        font-size: 14px;
    }
    
    .use-case-item p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    header {
        padding: 12px 10px;
    }
    
    header h1 {
        font-size: 14px;
    }
    
    header p {
        font-size: 9px;
    }
    
    header p.header-description {
        display: none !important;
    }
    
    .compare-main-content {
        padding: 10px 8px;
    }
    
    .compare-header h3 {
        font-size: 12px;
    }
    
    button:not(.tab).small {
        padding: 0px 8px;
        font-size: 11px;
        height: 22px;
    }
    
    .compare-btn {
        padding: 6px 12px;
        min-height: 32px;
        font-size: 11px;
    }
    
    .compare-container {
        min-height: 350px;
    }
    
    .compare-editor-wrapper {
        min-height: 175px;
    }
    
    .compare-results {
        padding: 12px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-box {
        padding: 8px;
    }
    
    .stat-box .stat-value {
        font-size: 18px;
    }
    
    .seo-content-section {
        padding: 15px 8px;
    }
    
    .seo-content-section h2 {
        font-size: 18px;
    }
}

/* Footer Styles */
footer {
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
    color: #666;
    font-size: 12px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-section h3 {
    color: #0066cc;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-section h4 {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-section p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #666;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    padding: 4px 0;
    color: #666;
    line-height: 1.5;
}

.footer-section ul li:before {
    content: "✓ ";
    color: #0066cc;
    font-weight: bold;
    margin-right: 6px;
}

.footer-tools-links {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-tools-links a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.6;
}

.footer-tools-links a:hover {
    color: #0052a3;
    text-decoration: underline;
}

body.dark-mode .footer-tools-links a {
    color: #6bb6ff;
}

body.dark-mode .footer-tools-links a:hover {
    color: #8cc8ff;
}

.footer-keywords {
    font-size: 11px;
    line-height: 1.8;
    color: #666;
}

.privacy-note {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.privacy-note strong {
    color: #0066cc;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.footer-bottom p {
    margin: 0 0 15px 0;
}

.footer-bottom > div:last-child {
    display: none !important;
}

/* Footer Tools/Features Links */
.footer-tools {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}
.footer-tools a {
    color: #0066cc !important;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}
.footer-tools a:hover {
    color: #0052a3 !important;
    text-decoration: underline;
}
body.dark-mode .footer-tools a {
    color: #6bb6ff;
}
body.dark-mode .footer-tools a:hover {
    color: #8cc8ff;
}

/* Footer Legal/Info Links */
.footer-links {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #0066cc !important;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #0052a3 !important;
    text-decoration: underline;
}

.footer-separator {
    color: #999;
    margin: 0 4px;
}

body.dark-mode footer {
    border-top-color: #404040;
    background: #1a1a1a;
}

body.dark-mode .footer-content {
    background: #1a1a1a;
}

body.dark-mode .footer-section h3 {
    color: #6bb6ff;
}

body.dark-mode .footer-section h4 {
    color: #e0e0e0;
}

body.dark-mode .footer-section p,
body.dark-mode .footer-section ul li {
    color: #b0b0b0;
}

body.dark-mode .footer-section ul li:before {
    color: #6bb6ff;
}

body.dark-mode .footer-keywords {
    color: #b0b0b0;
}

body.dark-mode .footer-bottom {
    background: #252525;
    border-top-color: #404040;
}

body.dark-mode .privacy-note {
    color: #b0b0b0;
}

body.dark-mode .privacy-note strong {
    color: #6bb6ff;
}

body.dark-mode .footer-links a {
    color: #6bb6ff;
}

body.dark-mode .footer-links a:hover {
    color: #8cc8ff;
}

body.dark-mode .footer-separator {
    color: #666;
}

/* Compare Message Styles - Matching index.html exactly */
.compare-message {
    padding: 8px 12px;
    padding-top: 28px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: normal;
    width: fit-content;
    max-width: 500px;
    word-wrap: break-word;
    line-height: 1.4;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.compare-message.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.compare-message-text {
    flex: 0 1 auto;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-right: 15px;
}

.compare-message-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    top: 0px;
    right: 6px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.compare-message-close:hover {
    opacity: 1;
}

.compare-message.success {
    background: #28a745;
    color: white;
}

.compare-message.error {
    background: #dc3545;
    color: white;
}

body.dark-mode .compare-message.success {
    background: #1e4620;
    color: #90ee90;
}

body.dark-mode .compare-message.error {
    background: #3d1f1f;
    color: #ffb3b3;
}

@media (max-width: 768px) {
    footer {
        margin-top: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 16px;
    }
    
    .footer-section h4 {
        font-size: 13px;
    }
    
    .footer-section p {
        font-size: 12px;
    }
    
    .footer-section ul {
        text-align: left;
        display: inline-block;
    }
    
    .footer-bottom {
        padding: 15px 10px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
    
    .footer-links {
        font-size: 11px;
        gap: 6px;
    }
    
    .footer-bottom > div:last-child {
        display: flex !important;
    }
}

