/**
 * Components CSS file for Nordisk Tekstredigering
 * Handles modals, toast notifications, and other UI components
 */

/* External Link Styles */
.external-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.external-link:hover {
    color: var(--primary-blue);
}

.nav-tab.external-link {
    background: transparent;
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-gray);
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    user-select: none;
    white-space: nowrap;
}

.nav-tab.external-link:hover {
    background: var(--hover-bg);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Modal Components */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #1e293b;
    border: 1px solid #374151;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #334155;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.modal-body {
    padding: 25px;
    color: #ffffff;
    background: #1e293b;
}

.modal-body p,
.modal-body div,
.modal-body span,
.modal-body label,
.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6 {
    color: #ffffff;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
    color: #ffffff;
    background: #334155;
    border: 2px solid #475569;
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #475569;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #334155;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Ensure modal buttons keep their colors */
.modal-footer .btn-primary {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
}

.modal-footer .btn-secondary {
    background: #64748b !important;
    border-color: #64748b !important;
    color: white !important;
}

.modal-footer .btn-success {
    background: var(--success-green) !important;
    border-color: var(--success-green) !important;
    color: white !important;
}

/* Find/Replace Modal Specific Styles */
.find-replace-modal {
    width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #475569;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    color: #ffffff;
    background: #334155;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-item label {
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 500;
}

.search-results {
    background: #334155;
    padding: 10px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    color: #e2e8f0;
    border: 1px solid #475569;
}

/* Translation Modal Specific Styles */
.translation-modal {
    width: 600px;
    max-width: 90vw;
}

.translation-modal .modal {
    background: #1e293b;
    border: 1px solid #374151;
}

.translation-modal .modal-header {
    background: #334155;
    border-bottom-color: #475569;
}

.translation-modal .modal-title {
    color: #ffffff;
}

.translation-modal .modal-close {
    color: #ffffff;
    background: transparent;
    border: none;
    font-size: 24px;
    opacity: 0.7;
}

.translation-modal .modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.translation-modal .modal-body {
    background: #1e293b !important;
    color: #ffffff !important;
    padding: 25px;
}

.translation-modal .modal-body *,
.translation-modal .modal-body h1,
.translation-modal .modal-body h2,
.translation-modal .modal-body h3,
.translation-modal .modal-body h4,
.translation-modal .modal-body h5,
.translation-modal .modal-body h6,
.translation-modal .modal-body p,
.translation-modal .modal-body div,
.translation-modal .modal-body span,
.translation-modal .modal-body label,
.translation-modal .modal-body strong,
.translation-modal .modal-body em,
.translation-modal .modal-body b,
.translation-modal .modal-body i {
    color: #ffffff !important;
    background: transparent !important;
}

.translation-modal .modal-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #475569;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #ffffff !important;
    background: #334155 !important;
    resize: vertical;
    margin: 10px 0;
}

.translation-modal .modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.translation-progress {
    background: #334155;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #475569;
}

.translation-progress p {
    margin: 0;
    color: #e2e8f0 !important;
    font-weight: 500;
}

.translation-result {
    background: #334155;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #475569;
}

.translation-result h4 {
    margin: 0 0 10px 0;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
}

.translation-result p {
    margin: 0;
    color: #e2e8f0 !important;
    line-height: 1.6;
    font-size: 14px;
}

.translation-language-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: #475569;
    border-radius: 6px;
}

.translation-language-info span {
    color: #cbd5e1 !important;
    font-size: 12px;
    font-weight: 500;
}

.translation-modal .modal-footer {
    background: #334155;
    border-top-color: #475569;
}

.translation-modal .modal-footer .btn {
    color: #ffffff;
}

.translation-modal .modal-footer .btn-secondary {
    background: #64748b;
    border-color: #64748b;
}

.translation-modal .modal-footer .btn-secondary:hover {
    background: #475569;
    border-color: #475569;
}

.translation-modal .modal-footer .btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.translation-modal .modal-footer .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Hide Google Translate widget elements that might interfere */
.goog-te-banner-frame,
.goog-te-combo,
.goog-te-gadget,
.goog-te-menu-frame,
.skiptranslate {
    display: none !important;
}

/* Ensure translation modal always has full dark theme */
.translation-modal,
.translation-modal * {
    background-color: inherit !important;
}

.translation-modal .modal {
    background: #2d3748 !important;
    border: 1px solid #4a5568 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

.translation-modal .modal-header {
    background: #4a5568 !important;
    border-bottom-color: #718096 !important;
}

.translation-modal .modal-body {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    padding: 25px;
}

.translation-modal .modal-body *,
.translation-modal .modal-body h1,
.translation-modal .modal-body h2,
.translation-modal .modal-body h3,
.translation-modal .modal-body h4,
.translation-modal .modal-body h5,
.translation-modal .modal-body h6,
.translation-modal .modal-body p,
.translation-modal .modal-body div,
.translation-modal .modal-body span,
.translation-modal .modal-body label,
.translation-modal .modal-body strong,
.translation-modal .modal-body em,
.translation-modal .modal-body b,
.translation-modal .modal-body i {
    color: #e2e8f0 !important;
    background: transparent !important;
}

.translation-modal .modal-body textarea {
    background: #4a5568 !important;
    color: #e2e8f0 !important;
    border-color: #718096;
}

.translation-modal .translation-result,
.translation-modal .translation-stats,
.translation-modal .translation-preview,
.translation-modal .translation-text {
    background: #4a5568 !important;
    color: #e2e8f0 !important;
    border-color: #718096 !important;
}

.translation-modal .modal-footer {
    background: #4a5568 !important;
    border-top-color: #718096 !important;
}

.translation-modal .modal-footer .btn-primary {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
}

.translation-modal .modal-footer .btn-secondary {
    background: #718096 !important;
    border-color: #718096 !important;
    color: white !important;
}

/* Light mode override for translation modal (if user prefers light theme) */
@media (prefers-color-scheme: light) {
    .translation-modal .modal {
        background: #1e293b !important;
        border-color: #374151 !important;
    }
    
    .translation-modal .modal-header {
        background: #334155 !important;
    }
    
    .translation-modal .modal-body {
        background: #1e293b !important;
        color: #ffffff !important;
    }
    
    .translation-modal .modal-body *,
    .translation-modal .modal-body h1,
    .translation-modal .modal-body h2,
    .translation-modal .modal-body h3,
    .translation-modal .modal-body h4,
    .translation-modal .modal-body h5,
    .translation-modal .modal-body h6,
    .translation-modal .modal-body p,
    .translation-modal .modal-body div,
    .translation-modal .modal-body span,
    .translation-modal .modal-body label,
    .translation-modal .modal-body strong,
    .translation-modal .modal-body em,
    .translation-modal .modal-body b,
    .translation-modal .modal-body i {
        color: #ffffff !important;
        background: transparent !important;
    }
    
    .translation-modal .modal-body textarea {
        background: #334155 !important;
        color: #ffffff !important;
        border-color: #475569;
    }
    
    .translation-modal .translation-result,
    .translation-modal .translation-stats,
    .translation-modal .translation-preview,
    .translation-modal .translation-text {
        background: #334155 !important;
        color: #ffffff !important;
    }
}

/* Additional rules to prevent any white elements in modals */
.modal iframe,
.modal embed,
.modal object,
.modal .goog-te-gadget,
.modal .goog-te-combo,
.modal .goog-te-banner-frame {
    display: none !important;
}

/* Hide Google Translate elements globally when modals are open */
.modal-overlay.active ~ .goog-te-banner-frame,
.modal-overlay.active ~ div[id*="google_translate"],
body.modal-open .goog-te-banner-frame,
body.modal-open div[id*="google_translate"] {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure modal overlay covers everything completely */
.modal-overlay {
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.translation-modal .modal-overlay {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Ensure all modal children follow dark theme */
.modal *:not(.btn):not(.spinner) {
    color: inherit;
    background-color: transparent;
}

.modal .btn {
    background-color: var(--primary-blue);
    color: white;
}

.modal .btn-secondary {
    background-color: #64748b;
    color: white;
}
.modal embed,
.modal object,
.modal .goog-te-gadget,
.modal .goog-te-combo,
.modal .goog-te-banner-frame {
    display: none !important;
}

/* Ensure all modal children follow dark theme */
.modal *:not(.btn):not(.spinner) {
    color: inherit;
    background-color: transparent;
}

.modal .btn {
    background-color: var(--primary-blue);
    color: white;
}

.modal .btn-secondary {
    background-color: #64748b;
    color: white;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--text-gray);
    color: white;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-green);
    color: white;
    font-weight: 600;
}

.btn-success:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* Compare Texts Modal */
.compare-modal {
    width: 90%;
    max-width: 1000px;
}

.compare-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.compare-section {
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    overflow: hidden;
}

.compare-header {
    background: var(--light-gray);
    padding: 10px 15px;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-gray);
}

.compare-text {
    padding: 15px;
    min-height: 300px;
    font-family: var(--font-serif);
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--text-dark);
    background: white;
}

.diff-added {
    background-color: #d4edda;
    color: #155724;
    padding: 2px 4px;
    border-radius: 3px;
}

.diff-removed {
    background-color: #f8d7da;
    color: #721c24;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: line-through;
}

.stats-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.stat-card h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.stat-card .value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-blue);
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success-green);
    background: #f0f9f0;
    color: #155724;
    border-color: #c3e6cb;
}

.toast.error {
    border-left-color: #e74c3c;
    background: #fdf2f2;
    color: #721c24;
    border-color: #f5c6cb;
}

.toast.warning {
    border-left-color: #f39c12;
    background: #fffaf0;
    color: #856404;
    border-color: #ffeaa7;
}

.toast.info {
    border-left-color: var(--primary-blue);
    background: #e6f3ff;
    color: #004085;
    border-color: #b8d4f1;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.toast-title {
    font-weight: 600;
    color: inherit;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    opacity: 1;
}

.toast-body {
    color: inherit;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* Ensure proper text colors for all toast variants */
.toast.success .toast-title,
.toast.success .toast-body,
.toast.success .toast-close {
    color: #155724 !important;
}

.toast.error .toast-title,
.toast.error .toast-body,
.toast.error .toast-close {
    color: #721c24 !important;
}

.toast.warning .toast-title,
.toast.warning .toast-body,
.toast.warning .toast-close {
    color: #856404 !important;
}

.toast.info .toast-title,
.toast.info .toast-body,
.toast.info .toast-close {
    color: #004085 !important;
}

/* Default toast text colors */
.toast .toast-title,
.toast .toast-body,
.toast .toast-close {
    color: var(--text-dark) !important;
}

/* Export Modal */
.export-modal {
    width: 450px;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.export-option {
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.export-option:hover {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.export-option.active {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.1);
}

.export-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.export-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.export-description {
    font-size: 12px;
    color: var(--text-gray);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.3s ease;
    width: 0%;
}

/* Tool Navigation Styles */
.tool-navigation {
    background: var(--light-gray);
    border-bottom: 2px solid var(--border-gray);
    padding: 0;
    margin: 0;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 8px; /* Add gap between tabs for modern look */
    max-width: 1200px;
    margin: 0 auto 20px auto; /* Add bottom margin for spacing */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px; /* Add padding around the tab container */
    background: rgba(37, 99, 235, 0.05); /* Subtle background */
    border-radius: 16px; /* Rounded container */
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937; /* Explicit dark text for inactive tabs */
    border: 2px solid transparent;
    border-radius: 12px; /* Rounded tabs */
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
    font-family: var(--font-modern);
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    isolation: isolate;
}

.nav-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.nav-tab:hover::after {
    left: 100%;
}

.nav-tab.active::after {
    display: none; /* No shimmer effect on active tab */
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-blue); /* Blue text on hover */
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.nav-tab.active {
    background: var(--primary-blue);
    color: white; /* White text on active blue background */
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    position: relative;
}

.nav-tab.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.8;
}

/* Enhanced spacing for tool sections */
.tool-section {
    margin-top: 0; /* Remove extra margin since tabs now have bottom margin */
}

/* Smooth focus indicators for accessibility */
.nav-tab:focus {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

.nav-tab:focus:not(:focus-visible) {
    outline: none;
}

/* Hero Section for SEO Content */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 30px;
    margin: 0;
    border-bottom: 1px solid var(--border-gray);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    text-align: left;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-gray);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Responsive hero section */
@media (max-width: 768px) {
    .hero-section {
        padding: 25px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .features-preview {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature-card {
        padding: 20px;
    }
}

/* Tool Sections */
.tool-section {
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.tool-section.hidden {
    display: none;
}

.tool-section.active {
    display: block;
}

/* Invoice Generator Styles */
.invoice-generator {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.invoice-generator h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: 2em;
    text-align: center;
}

.tool-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.invoice-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px auto;
    max-width: 1000px;
}

.invoice-items {
    grid-column: 1 / -1;
}

.payment-info {
    grid-column: 1 / -1;
}

.company-info,
.customer-info,
.invoice-items,
.payment-info {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-gray);
}

.company-info h3,
.customer-info h3,
.invoice-items h3,
.payment-info h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: var(--font-display);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-modern);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Invoice Items */
.invoice-item {
    display: grid;
    grid-template-columns: 2fr 100px 120px 40px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-gray);
}

.invoice-item input {
    padding: 8px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 14px;
}

.remove-item-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    transition: background-color 0.3s ease;
    font-size: 12px;
}

.remove-item-btn:hover {
    background: #dc2626;
}

#add-item-btn {
    margin-top: 10px;
    background: var(--success-green);
    color: white;
    border: none;
}

#add-item-btn:hover {
    background: #15803d;
}

/* Invoice Preview */
.invoice-preview {
    background: #ffffff;
    border: 3px solid #374151;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px auto;
    min-height: 400px;
    max-width: 850px;
    box-shadow: 0 4px 20px rgba(55, 65, 81, 0.15);
    text-align: center; /* Center all content */
}

.invoice-preview h3 {
    color: #374151;
    margin-bottom: 20px;
    border-bottom: 3px solid #374151;
    padding-bottom: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Ensure all text in invoice preview is dark and readable with maximum contrast */
.invoice-preview,
.invoice-preview * {
    color: #000000 !important;
    background: #ffffff !important;
}

.invoice-preview h1,
.invoice-preview h2,
.invoice-preview h3,
.invoice-preview h4,
.invoice-preview h5,
.invoice-preview h6 {
    color: #374151 !important;
    font-weight: bold !important;
    text-align: center !important;
}

.invoice-preview p,
.invoice-preview span,
.invoice-preview div,
.invoice-preview td {
    color: #000000 !important;
    font-weight: 500 !important;
}

.invoice-preview table {
    margin: 0 auto !important; /* Center tables */
}

.invoice-preview table th {
    background: #374151 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

.invoice-preview table td {
    color: #000000 !important;
    font-weight: 600 !important;
}

.invoice-preview a {
    color: #374151 !important;
    font-weight: 600 !important;
}

.preview-placeholder {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 50px 20px;
}

/* Invoice Actions */
.invoice-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Social Media Formatter Styles */
.social-formatter {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.social-formatter h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: 2em;
    text-align: center;
}

.tool-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
}

.social-input {
    margin-bottom: 25px;
}

.social-input label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1em;
}

#social-text {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-modern);
    font-size: 1em;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
}

#social-text:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.platform-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-btn {
    padding: 12px 18px;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-dark);
    font-family: var(--font-modern);
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.platform-btn:hover {
    background: var(--light-gray);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.social-output {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-gray);
    margin-bottom: 20px;
}

.social-output h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-weight: 600;
    text-align: center;
    font-size: 1.3em;
}

#formatted-output {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-gray);
    min-height: 120px;
    margin-bottom: 20px;
    font-family: var(--font-modern);
    line-height: 1.6;
}

.formatted-content {
    max-width: 100%;
}

.content-body {
    margin-bottom: 20px;
}

.content-body p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.content-body strong {
    font-weight: 700;
    color: var(--text-dark);
}

.hashtag {
    color: var(--primary-blue);
    font-weight: 600;
}

.best-practices {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
    margin-top: 20px;
}

.best-practices h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.best-practices ul {
    margin: 0;
    padding-left: 20px;
}

.best-practices li {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 0.9em;
}

.output-placeholder {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 40px 20px;
}

.social-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--text-muted);
}

#char-count {
    font-weight: 700;
    color: var(--text-dark);
}

.char-limit-warning {
    color: #f39c12 !important;
}

.char-limit-danger {
    color: #e74c3c !important;
}

#copy-formatted-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-modern);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

#copy-formatted-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#copy-formatted-btn:disabled {
    background: var(--border-gray);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Platform-specific styling */
.platform-linkedin .social-output {
    border-left: 4px solid #0077b5;
}

.platform-instagram .social-output {
    border-left: 4px solid #e4405f;
}

.platform-facebook .social-output {
    border-left: 4px solid #1877f2;
}

.platform-twitter .social-output {
    border-left: 4px solid #1da1f2;
}

/* Mobile responsiveness for social formatter */
@media screen and (max-width: 768px) {
    .social-formatter {
        padding: 20px;
    }
    
    .platform-buttons {
        gap: 8px;
    }
    
    .platform-btn {
        padding: 10px 14px;
        font-size: 0.85em;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .social-output {
        padding: 20px;
    }
    
    #formatted-output {
        padding: 15px;
    }
    
    .best-practices {
        padding: 12px;
    }
}

/* High contrast mode for social formatter */
@media (prefers-contrast: high) {
    .platform-btn {
        border-width: 2px;
        font-weight: 700;
    }
    
    .platform-btn.active {
        border-width: 3px;
    }
    
    #copy-formatted-btn {
        border: 2px solid transparent;
        font-weight: 700;
    }
    
    .hashtag {
        font-weight: 700;
    }
}

/* Dark mode support for social formatter */
@media (prefers-color-scheme: dark) {
    .social-formatter {
        background: #1e293b;
        color: var(--text-dark);
    }
    
    .social-output {
        background: #334155;
        border-color: #475569;
    }
    
    #formatted-output {
        background: #1e293b;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .best-practices {
        background: #334155;
        border-left-color: var(--primary-blue);
    }
    
    .platform-btn {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .platform-btn:hover {
        background: #475569;
    }
}

/* Password Generator List Styles */
.password-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.password-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s ease;
}

.password-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.password-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    flex-grow: 1;
    word-break: break-all;
    letter-spacing: 0.5px;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    min-width: 120px;
}

.password-strength.weak {
    color: #dc2626;
}

.password-strength.medium {
    color: #ea580c;
}

.password-strength.strong {
    color: #16a34a;
}

.copy-password-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-password-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.copy-password-btn:active {
    transform: translateY(0);
}

/* Dark mode for password list */
@media (prefers-color-scheme: dark) {
    .password-item {
        background: #1e293b;
        border-color: #475569;
    }
    
    .password-text {
        background: #0f172a;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .password-item:hover {
        border-color: var(--primary-blue);
        background: #334155;
    }
}

/* Responsive design for password generator */
@media (max-width: 768px) {
    .password-generator {
        padding: 15px;
    }
    
    .setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .setting-group input[type="range"] {
        width: 100%;
        max-width: none;
    }
    
    .password-text {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .password-strength {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .strength-bar {
        max-width: none;
        width: 100%;
    }
    
    .strength-text {
        text-align: left;
    }
    
    .password-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .password-actions button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .password-settings,
    .password-output {
        padding: 15px;
    }
    
    .password-display {
        padding: 12px;
    }
    
    .password-text {
        font-size: 13px;
    }
}

/* Donation Section Styles */
.donation-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.donation-section h3 {
    font-size: 1.8em;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.donation-section p {
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.donate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-modern);
    font-size: 1em;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
}

.coffi-btn {
    background: #ff813f;
    color: white;
}

.coffi-btn:hover {
    background: #e6732d;
    color: white;
}

.vipps-btn {
    background: #ff5b24;
    color: white;
}

.vipps-btn:hover {
    background: #e64d1f;
    color: white;
}

.vipps-info {
    margin-top: 1.5rem;
    opacity: 0.9;
}

.vipps-info p {
    margin-bottom: 1rem;
    font-size: 1em;
}

.qr-placeholder {
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    padding: 20px;
    margin: 1rem auto;
    max-width: 200px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.qr-placeholder:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.qr-text {
    margin: 0;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-dark);
}

.qr-text small {
    font-size: 0.8em;
    color: var(--text-muted);
    font-weight: normal;
}

.qr-instruction {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 95%;
    }
    
    .find-replace-modal,
    .export-modal {
        width: 95%;
    }
    
    .compare-modal {
        width: 95%;
    }
    
    .compare-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .export-options {
        grid-template-columns: 1fr;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .toast {
        max-width: none;
    }
}

/* Responsive Design for Tools */
@media screen and (max-width: 768px) {
    /* Tool Navigation Mobile */
    .nav-tabs {
        justify-content: flex-start;
        padding: 6px;
        gap: 4px;
        margin: 0 auto 15px auto;
        border-radius: 12px;
    }
    
    .nav-tab {
        min-width: auto;
        padding: 10px 16px;
        font-size: 0.85em;
        border-radius: 10px;
        min-width: 100px;
    }
    
    .nav-tab.active::before {
        border-radius: 12px;
    }
    
    /* Invoice Generator Mobile */
    .invoice-generator {
        padding: 20px;
    }
    
    .invoice-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .invoice-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .invoice-item input {
        text-align: center;
    }
    
    .remove-item-btn {
        justify-self: center;
        width: 100%;
        max-width: 120px;
    }
    
    .invoice-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .invoice-actions button {
        width: 100%;
        max-width: 300px;
    }
    
    /* Social Media Formatter Mobile */
    .social-formatter {
        padding: 20px;
    }
    
    .platform-buttons {
        gap: 8px;
    }
    
    .platform-btn {
        padding: 10px 14px;
        font-size: 0.85em;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .social-output {
        padding: 20px;
    }
    
    #formatted-output {
        padding: 15px;
    }
    
    .best-practices {
        padding: 12px;
    }
    
    /* Password Generator Mobile */
    .password-generator {
        padding: 20px;
    }
    
    .setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .password-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px;
    }
    
    .password-text {
        font-size: 14px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .password-strength {
        justify-content: center;
        min-width: auto;
    }
    
    .copy-password-btn {
        width: 100%;
        padding: 12px 16px;
    }
    
    .password-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .password-actions button {
        width: 100%;
        max-width: 300px;
    }
    
    /* Donation Section Mobile */
    .donation-section {
        margin: 1rem 0;
        padding: 1.5rem;
    }
    
    .donate-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .donate-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .qr-placeholder {
        max-width: 150px;
    }
}

/* Touch device improvements for tools */
@media (hover: none) and (pointer: coarse) {
    .nav-tab {
        min-height: 44px;
        font-weight: 600;
        border-radius: 10px;
    }
    
    .nav-tab:hover {
        transform: none; /* Disable transform on touch devices */
    }
    
    .nav-tab.active {
        transform: none;
    }
    
    .platform-btn,
    .password-item,
    .invoice-item button {
        min-height: 44px;
        font-weight: 600;
    }
    
    .donate-btn {
        min-height: 48px;
        font-weight: 700;
    }
}

/* High contrast mode for tools */
@media (prefers-contrast: high) {
    .nav-tab {
        border: 3px solid var(--text-dark);
        font-weight: 700;
        background: white;
        color: #1f2937; /* Explicit dark text for high contrast inactive tabs */
    }
    
    .nav-tab:hover {
        color: var(--primary-blue); /* Keep blue hover color in high contrast */
        background: white;
    }
    
    .nav-tab.active {
        background: var(--text-dark);
        color: white; /* Explicit white text on dark background */
        border-color: var(--text-dark);
        font-weight: 700;
    }
    
    .nav-tab.active::before {
        display: none; /* Remove gradient overlay in high contrast */
    }
    
    .platform-btn,
    .password-item {
        border-width: 2px;
        font-weight: 700;
    }
    
    .donate-btn {
        border: 2px solid white;
        font-weight: 700;
    }
}

/* Dark mode support for tools */
@media (prefers-color-scheme: dark) {
    .tool-section {
        background: #1e293b;
        color: var(--text-dark);
    }
    
    .invoice-generator,
    .social-formatter,
    .password-generator {
        background: #1e293b;
    }
    
    .company-info,
    .customer-info,
    .invoice-items,
    .social-output,
    .password-settings,
    .password-output {
        background: #334155;
        border-color: var(--border-gray);
    }
    
    .invoice-item,
    .password-item,
    #formatted-output,
    .invoice-preview {
        background: #475569;
        border-color: var(--border-gray);
    }
    
    .form-group input,
    .form-group textarea,
    #social-text {
        background: #475569;
        color: var(--text-dark);
        border-color: var(--border-gray);
    }
    
    .qr-placeholder {
        background: #475569;
        color: var(--text-dark);
    }
    
    .qr-text {
        color: var(--text-dark);
    }
}

/* PWA Install and Update Prompts */
.install-prompt,
.update-prompt {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-green);
    color: #fff;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.update-prompt {
    background: var(--accent-blue);
}

.install-content,
.update-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.install-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.install-btn,
.update-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.install-btn:hover,
.update-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.dismiss-btn {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive PWA prompts */
@media (max-width: 768px) {
    .install-prompt,
    .update-prompt {
        left: 20px;
        right: 20px;
        max-width: none;
        top: 10px;
    }
    
    .install-content,
    .update-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .install-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* SEO Content Section */
.seo-content-section {
    background: #f8fafc;
    padding: 50px 30px;
    border-top: 1px solid var(--border-gray);
}

.seo-content {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

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

.seo-content-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-gray);
}

.seo-content-item h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.seo-content-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.use-cases {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-gray);
}

.use-cases h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.use-cases ul {
    list-style: none;
    padding: 0;
}

.use-cases li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-muted);
    line-height: 1.5;
}

.use-cases li:last-child {
    border-bottom: none;
}

.use-cases strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Responsive SEO content */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 30px 20px;
    }
    
    .seo-content h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .seo-content-item,
    .use-cases {
        padding: 20px;
    }
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 40px;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-gray);
}

.faq-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

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

.faq-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.faq-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

.about-content {
    background: #f8fafc;
    min-height: 100vh;
}

.about-content .hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-gray);
    margin: 0;
}

.about-content .seo-content-section {
    border-top: none;
    background: #f8fafc;
}
