* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(243, 151, 128, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(243, 151, 128, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Canonical tag checker needs wider container */
.main-content .container {
    max-width: 95% !important;
}

/* Add spacing between audit-section and result section */
.audit-section {
    margin-bottom: 12rem;
}

#result {
    margin-top: 6rem;
    scroll-margin-top: 6rem;
}

/* Override container width when showing results */
.container.showing-results {
    max-width: 95%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.03);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.875rem;
    font-weight: 800;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.75px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.tagline {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.25px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    width: 100%;
}

.audit-section {
    width: 100%;
    max-width: 520px;
    text-align: center;
    position: relative;
}

.audit-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.audit-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 3.5rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Audit Form */
.audit-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.audit-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(243, 151, 128, 0.3), transparent);
}

.audit-form:hover {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.url-input-wrapper {
    position: relative;
}

.url-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    font-weight: 500;
}

.url-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.url-input:focus {
    outline: none;
    border-color: #f39780;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 0 4px rgba(243, 151, 128, 0.1),
        0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.language-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.language-option {
    position: relative;
}

.language-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.language-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 250, 252, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 500;
    color: #64748b;
    position: relative;
    overflow: hidden;
}

.language-option label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(243, 151, 128, 0.1), rgba(243, 151, 128, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-option input[type="radio"]:checked + label {
    border-color: #f39780;
    background: linear-gradient(135deg, #f39780, #e87a5a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(243, 151, 128, 0.4);
}

.language-option input[type="radio"]:checked + label::before {
    opacity: 1;
}

.language-option label:hover {
    border-color: rgba(243, 151, 128, 0.6);
    background: rgba(243, 151, 128, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.1);
}

.language-option input[type="radio"]:checked + label:hover {
    background: linear-gradient(135deg, #f39780, #e87a5a);
    transform: translateY(-2px);
}

.generate-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.2),
        0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.generate-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.2),
        0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.generate-btn:disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e0 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.generate-btn:disabled::before {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.audit-section {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading state */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Loading screen animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    font-weight: 500;
}

.step.active {
    color: #f39780 !important;
    transform: scale(1.05);
}

/* Preview Mode Styles */
.preview-container {
    display: none;
    width: 100%;
    padding: 2rem;
    gap: 2rem;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    min-width: 1000px;
}

/* Ensure preview container maintains side-by-side layout on desktop */
@media (min-width: 1024px) {
    .preview-container {
        grid-template-columns: 2fr 1fr !important;
        max-width: 100vw !important;
        width: 100vw !important;
        padding: 2rem 4rem;
    }
    
    .outline-sidebar {
        order: 0 !important;
    }
}

.preview-container.active {
    display: grid;
}

/* Outline Sidebar */
.outline-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 100px;
    height: calc(100vh - 170px);
    overflow-y: auto;
}

.outline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(243, 151, 128, 0.1);
}

.outline-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.25px;
}

.outline-section {
    margin-bottom: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.outline-section:hover {
    box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.outline-section.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.outline-section.disabled {
    opacity: 0.4;
    background: rgba(248, 250, 252, 0.5);
}

.outline-section.collapsed .subsection-list {
    display: none;
}

.outline-section.collapsed .section-header {
    border-bottom: none;
}

.section-header {
    background: rgba(248, 250, 252, 0.8);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.section-header:hover {
    background: rgba(243, 151, 128, 0.05);
}

.section-info {
    flex: 1;
    pointer-events: none;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    font-size: 0.75rem;
    color: #64748b;
}

.expand-icon {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.outline-section:not(.collapsed) .expand-icon {
    transform: rotate(180deg);
}

.section-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    pointer-events: all;
}

.drag-handle {
    cursor: move;
    color: #94a3b8;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.drag-handle:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.toggle-section {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-section.enabled {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.toggle-section.disabled {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.subsection-list {
    padding: 0.5rem 1rem 1rem;
    background: white;
}

.subsection-item {
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.subsection-item:hover {
    background: rgba(248, 250, 252, 0.8);
}

.subsection-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.subsection-item.removed {
    opacity: 0.3;
    text-decoration: line-through;
    background: rgba(239, 68, 68, 0.05);
}

.subsection-name {
    flex: 1;
}

.subsection-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.remove-subsection {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.subsection-item:hover .remove-subsection {
    opacity: 1;
}

.remove-subsection:hover {
    background: rgba(239, 68, 68, 0.1);
}

.subsection-status {
    font-size: 0.65rem;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

/* PDF Preview */
.pdf-preview {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    min-height: 80vh;
    position: relative;
    overflow-y: auto;
    max-height: 82vh;
}

.pdf-document {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.pdf-page {
    background: white;
    width: 100%;
    min-height: 297mm; /* A4 height */
    max-width: 210mm; /* A4 width */
    margin: 0 auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    page-break-after: always;
    display: flex;
    flex-direction: column;
}

.pdf-page.title-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem;
}

.pdf-page.index-page,
.pdf-page.content-page,
.pdf-page.conclusion-page,
.pdf-page.contact-page {
    padding: 3rem;
    background: white;
}

/* Title Page Styles */
.title-page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title-page .pdf-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.title-page .pdf-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    font-weight: 300;
}

.title-page .pdf-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 600px;
}

.title-page .meta-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.title-page .meta-label {
    display: block;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.title-page .meta-value {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Index Page Styles */
.index-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f39780;
}

.index-list {
    list-style: none;
    padding: 0;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dotted #e2e8f0;
    font-size: 1rem;
}

.index-item.subsection {
    padding-left: 2rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.index-item.subsection .index-section-title {
    color: #6b7280;
}

.index-item:last-child {
    border-bottom: none;
}

.index-section-number {
    font-weight: 600;
    color: #f39780;
    margin-right: 1rem;
}

.index-section-title {
    flex: 1;
    color: #1a1a1a;
}

.index-page-number {
    font-weight: 600;
    color: #64748b;
}

/* Content Page Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Conclusion Page Styles */
.conclusion-content {
    text-align: center;
    padding: 4rem 2rem;
}

.conclusion-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.conclusion-placeholder {
    font-size: 1.125rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: #64748b;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-section {
    background: rgba(248, 250, 252, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

.contact-details strong {
    color: #1a1a1a;
    font-weight: 600;
}

.pdf-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.3);
    transition: all 0.3s ease;
}

.pdf-section.disabled {
    opacity: 0.3;
    background: rgba(248, 250, 252, 0.1);
}

.pdf-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(243, 151, 128, 0.2);
}

.section-number {
    background: #f39780;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
}

.pdf-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.pdf-section-content {
    color: #64748b;
    line-height: 1.6;
}

.subsection {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(243, 151, 128, 0.3);
}

.subsection-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.subsection-placeholder {
    font-size: 0.875rem;
    color: #94a3b8;
    font-style: italic;
}

.export-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 1.25rem 0;
        margin-bottom: 3rem;
    }
    
    .logo {
        font-size: 1.625rem;
    }
    
    .audit-form {
        padding: 2.5rem;
        border-radius: 20px;
    }
    
    .audit-title {
        font-size: 2.25rem;
    }
    
    .audit-subtitle {
        font-size: 1.125rem;
    }
    
    .language-selector {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .audit-title {
        font-size: 2rem;
        letter-spacing: -0.75px;
    }
    
    .audit-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .audit-form {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .url-input {
        padding: 1rem 1.25rem;
        border-radius: 12px;
        font-size: 0.95rem;
    }
    
    .language-option label {
        padding: 0.875rem;
        border-radius: 12px;
        font-size: 0.875rem;
    }
    
    .generate-btn {
        padding: 1.125rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
    }
}

/* Preview Responsive - Stack only on tablets and mobile */
@media (max-width: 1023px) {
    .preview-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 1rem;
        min-width: auto;
    }
    
    .outline-sidebar {
        position: relative;
        top: auto;
        max-height: none;
        order: -1;
    }
    
    .export-controls {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .preview-container {
        padding: 1rem 0;
    }
    
    .outline-sidebar {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .pdf-preview {
        padding: 1rem;
    }
    
    .pdf-page {
        min-height: auto;
        max-width: 100%;
        margin: 0;
        border-radius: 8px;
    }
    
    .pdf-page.title-page {
        padding: 2rem;
    }
    
    .title-page .pdf-title {
        font-size: 2rem;
    }
    
    .title-page .pdf-subtitle {
        font-size: 1.125rem;
    }
    
    .title-page .pdf-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .title-page .meta-item {
        padding: 1rem;
    }
    
    .pdf-page.index-page,
    .pdf-page.content-page,
    .pdf-page.conclusion-page,
    .pdf-page.contact-page {
        padding: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pdf-header {
        padding: 1.5rem;
    }
    
    .pdf-title {
        font-size: 1.5rem;
    }
    
    .pdf-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .pdf-content {
        padding: 1.5rem;
    }
    
    .export-controls {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
}

/* Canonical Tag Checker Specific Styles */

/* Tool-specific styles */
.main-content {
    padding: 4rem 0;
}

.tool-section {
    margin-bottom: 3rem;
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.tool-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.tool-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-input:focus {
    outline: none;
    border-color: #f39780;
    box-shadow: 0 0 0 3px rgba(243, 151, 128, 0.1);
    background: rgba(255, 255, 255, 1);
}

.toggle-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.toggle-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #f39780;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.tool-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #f39780 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 151, 128, 0.3);
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 151, 128, 0.4);
}

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

/* Results section styles */
.results-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin-top: 1rem;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.results-table th {
    background: rgba(248, 250, 252, 0.8);
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #e2e8f0;
}

.results-table tr:hover {
    background: rgba(248, 250, 252, 0.5);
}

/* Icon styles */
.icon-green { color: #10b981; }
.icon-red { color: #ef4444; }
.icon-orange { color: #f59e0b; }
.icon-purple { color: #8b5cf6; }
.icon-blue { color: #3b82f6; }

/* Loading overlay */
#loadingOverlay {
    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: 9999;
}

.spinner {
    border: 4px solid #e2e8f0;
    border-top: 4px solid #f39780;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Legacy functionality styles */
.input-group-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 150px auto 90px;
    text-align: center;
    padding: 0 20px;
}

.input-group {
    display: flex;
    width: 100%;
    margin-bottom: 50px;
    height: 60px;
}

#urlInput {
    flex: 2;
    font-size: 1.4rem;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.toggle-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f0f0;
    padding: 0 20px;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    font-size: 1.1rem;
    min-width: 400px;
}

.minimalist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: none;
    min-width: 600px;
    table-layout: fixed;
}

.minimalist-table th,
.minimalist-table td {
    padding: 8px 10px;
    text-align: left;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Override text-align for status-text columns specifically */
.minimalist-table th.status-text,
.minimalist-table td.status-text,
.minimalist-table td.status {
    text-align: center !important;
}

.minimalist-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    border-bottom: 2px solid #000;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    user-select: none;
    font-size: 0.85rem;
}

.sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.minimalist-table th:hover {
    background-color: #e9ecef;
}

.minimalist-table th:hover .sort-icon {
    opacity: 1;
}

.minimalist-table tr:hover {
    background-color: #f5f5f5;
}

.minimalist-table .error {
    color: #dc3545;
}

.minimalist-table .url {
    width: 40%;
}

.minimalist-table .word-count,
.minimalist-table .page-size,
.minimalist-table .text-code-ratio {
    width: 20%;
}

.minimalist-table th.url, .minimalist-table td.url {
    width: 30%;
    word-break: break-all;
    white-space: normal;
}

.minimalist-table th.canonical-status, .minimalist-table td.canonical-status {
    width: 10%;
    text-align: center;
}

.minimalist-table th.canonical-tag, .minimalist-table td.canonical-tag {
    width: 30%;
    word-break: break-all;
    white-space: normal;
}

.minimalist-table th.canonical-description, .minimalist-table td.canonical-description {
    width: 20%;
}

.minimalist-table th.canonical-detail, .minimalist-table td.canonical-detail {
    width: 10%;
    text-align: center;
}

/* Anchor Text Analyzer specific column styling */
.minimalist-table th.target-url, .minimalist-table td.target-url {
    width: 25%;
    word-break: break-all;
    white-space: normal;
}

.minimalist-table th.anchor-text, .minimalist-table td.anchor-text {
    width: 25%;
    word-break: break-all;
    white-space: normal;
}

.minimalist-table th.source-url, .minimalist-table td.source-url {
    width: 25%;
    word-break: break-all;
    white-space: normal;
}

.minimalist-table th.status-code, .minimalist-table td.status-code {
    width: 15%;
    text-align: center;
}

.minimalist-table th.rel-attribute, .minimalist-table td.rel-attribute {
    width: 10%;
    text-align: center;
}

/* H1 Tag Checker regenerate button styling */
.regenerate-btn, .regenerate-all-btn, .spelling-check-btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    line-height: 1.2 !important;
}

/* Title Tag Checker AI Optimizer button styling */
.title-tag-table .regenerate-btn,
.title-tag-table .spelling-check-btn {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
    line-height: 1.2 !important;
    margin: 0.2rem !important;
    white-space: nowrap !important;
}

.title-tag-table .regen-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

/* Undo/Redo button styling */
.undo-btn, .redo-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.125rem;
    text-decoration: none;
    line-height: 1.2;
}

.undo-btn:hover, .redo-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.undo-btn:active, .redo-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.undo-btn i, .redo-btn i {
    font-size: 0.7rem;
}

.undo-redo-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Meta Robots Tag Checker table column widths - specific to this tool only */
.meta-robots-table th.url, 
.meta-robots-table td.url {
    width: 32% !important;
    max-width: 32% !important;
    min-width: 32% !important;
}

.meta-robots-table th.meta-status, 
.meta-robots-table td.meta-status {
    width: 8% !important;
    max-width: 8% !important;
    min-width: 8% !important;
    text-align: center !important;
}

.meta-robots-table th.meta-robots, 
.meta-robots-table td.meta-robots {
    width: 20% !important;
    max-width: 20% !important;
    min-width: 20% !important;
    word-break: break-all !important;
    white-space: normal !important;
}

.meta-robots-table th.details, 
.meta-robots-table td.details {
    width: 32% !important;
    max-width: 32% !important;
    min-width: 32% !important;
    word-break: break-all !important;
    white-space: normal !important;
}

.meta-robots-table th.preview, 
.meta-robots-table td.preview {
    width: 8% !important;
    max-width: 8% !important;
    min-width: 8% !important;
    text-align: center !important;
}

/* Force table layout to respect column widths */
.meta-robots-table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Open Graph Tags Checker table column centering - specific to this tool only */
.minimalist-table th.og-title,
.minimalist-table td.og-title {
    text-align: center !important;
}

.minimalist-table th.og-description,
.minimalist-table td.og-description {
    text-align: center !important;
}

.minimalist-table th.og-image,
.minimalist-table td.og-image {
    text-align: center !important;
}

.minimalist-table th.og-url,
.minimalist-table td.og-url {
    text-align: center !important;
}

.minimalist-table th.og-type,
.minimalist-table td.og-type {
    text-align: center !important;
}

.minimalist-table th.og-locale,
.minimalist-table td.og-locale {
    text-align: center !important;
}

.minimalist-table th.og-site-name,
.minimalist-table td.og-site-name {
    text-align: center !important;
}

.minimalist-table th.preview,
.minimalist-table td.preview {
    text-align: center !important;
}

/* Ensure icons and content are centered within cells */
.minimalist-table td.og-title i,
.minimalist-table td.og-description i,
.minimalist-table td.og-image i,
.minimalist-table td.og-url i,
.minimalist-table td.og-type i,
.minimalist-table td.og-locale i,
.minimalist-table td.og-site-name i,
.minimalist-table td.preview i {
    display: inline-block !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* Redirect Checker table column styling - specific to this tool only */
.minimalist-table th.final-url,
.minimalist-table td.final-url {
    word-break: break-all !important;
    white-space: normal !important;
}

.minimalist-table th.status-text,
.minimalist-table td.status-text,
.minimalist-table td.status {
    text-align: center !important;
}

/* Ensure content inside status-text cells is also centered */
.minimalist-table td.status-text *,
.minimalist-table td.status * {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Force centering for status text specifically */
.minimalist-table td.status-text,
.minimalist-table td.status {
    text-align: center !important;
    vertical-align: middle !important;
}

/* More specific targeting for status text centering */
.minimalist-table td.status-text,
.minimalist-table th.status-text,
.minimalist-table td.status {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Server Response Time Checker - center Response Time column */
.minimalist-table th.response-time,
.minimalist-table td.response-time {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Ensure content inside response-time cells is also centered */
.minimalist-table td.response-time * {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Text to Code Ratio Checker table column widths - specific to this tool only */
.minimalist-table th.url,
.minimalist-table td.url {
    width: 40% !important;
    max-width: 40% !important;
    min-width: 40% !important;
    word-break: break-all !important;
    white-space: normal !important;
}

.minimalist-table th.word-count,
.minimalist-table td.word-count {
    width: 12% !important;
    max-width: 12% !important;
    min-width: 12% !important;
    text-align: center !important;
}

.minimalist-table th.page-size,
.minimalist-table td.page-size {
    width: 12% !important;
    max-width: 12% !important;
    min-width: 12% !important;
    text-align: center !important;
}

.minimalist-table th.text-code-ratio,
.minimalist-table td.text-code-ratio {
    width: 12% !important;
    max-width: 12% !important;
    min-width: 12% !important;
    text-align: center !important;
}

.minimalist-table th.status,
.minimalist-table td.status {
    width: 12% !important;
    max-width: 12% !important;
    min-width: 12% !important;
    text-align: center !important;
}

.minimalist-table th.details,
.minimalist-table td.details {
    width: 12% !important;
    max-width: 12% !important;
    min-width: 12% !important;
    text-align: center !important;
}

/* Title Tag Checker table column widths - specific to this tool only */
.title-tag-table th.url,
.title-tag-table td.url {
    width: 30% !important;
    max-width: 30% !important;
    min-width: 30% !important;
    word-break: break-all !important;
    white-space: normal !important;
}

.title-tag-table th.meta-status,
.title-tag-table td.meta-status {
    width: 8% !important;
    max-width: 8% !important;
    min-width: 8% !important;
    text-align: center !important;
}

.title-tag-table th.title-tag,
.title-tag-table td.title-tag {
    width: 30% !important;
    max-width: 30% !important;
    min-width: 30% !important;
    word-break: break-all !important;
    white-space: normal !important;
}

.title-tag-table th.meta-length,
.title-tag-table td.meta-length {
    width: 8% !important;
    max-width: 8% !important;
    min-width: 8% !important;
    text-align: center !important;
}

.title-tag-table th.preview,
.title-tag-table td.preview {
    width: 8% !important;
    max-width: 8% !important;
    min-width: 8% !important;
    text-align: center !important;
}

.title-tag-table th.ai-optimizer,
.title-tag-table td.ai-optimizer {
    width: 16% !important;
    max-width: 16% !important;
    min-width: 16% !important;
    text-align: center !important;
}

/* Target the actual text content within status-text cells */
.minimalist-table td.status-text span,
.minimalist-table td.status-text div,
.minimalist-table td.status-text p,
.minimalist-table td.status span,
.minimalist-table td.status div,
.minimalist-table td.status p {
    text-align: center !important;
    display: inline-block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Override any inherited text alignment */
.minimalist-table td.status-text,
.minimalist-table td.status {
    text-align: center !important;
    vertical-align: middle !important;
    display: table-cell !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Ensure all text content in status-text cells is centered */
.minimalist-table td.status-text:not(:empty),
.minimalist-table td.status:not(:empty) {
    text-align: center !important;
}

/* Open Graph Tags Details Modal Styling */
.og-tags-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.og-tag-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.og-tag-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.og-tag-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 123, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    margin-right: 15px;
}

.og-tag-value {
    flex: 1;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-all;
    padding: 8px 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.og-tags-summary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* H1 Tag Checker table column widths */
.minimalist-table th.url-col, .minimalist-table td.url-col {
    width: 30% !important;
}

.minimalist-table th.h1-col, .minimalist-table td.h1-col {
    width: 30% !important;
}

.minimalist-table th.status-col, .minimalist-table td.status-col {
    width: 8% !important;
}

.minimalist-table th.number-col, .minimalist-table td.number-col {
    width: 8% !important;
}

.minimalist-table th.length-col, .minimalist-table td.length-col {
    width: 8% !important;
}

.minimalist-table th.regenerate-col, .minimalist-table td.regenerate-col {
    width: 16% !important;
}

/* H1 Tag Checker table column alignment */
.minimalist-table td.meta-status,
.minimalist-table td.meta-count,
.minimalist-table td.meta-length,
.minimalist-table td.regenerate {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Center the Regenerate header */
.minimalist-table th.regenerate-col {
    text-align: center !important;
}

/* Allow text wrapping in Primary H1 Tag column */
.minimalist-table td.h1-tag {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* Ensure content inside cells is also centered */
.minimalist-table td.meta-status *,
.minimalist-table td.meta-count *,
.minimalist-table td.meta-length *,
.minimalist-table td.regenerate * {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Center buttons and icons specifically */
.minimalist-table td.regenerate-col .btn,
.minimalist-table td.regenerate-col .regen-btn-group,
.minimalist-table td.status-col i,
.minimalist-table td.number-col,
.minimalist-table td.length-col {
    display: inline-block !important;
    text-align: center !important;
}

/* Broken Link Checker specific column styling */
.minimalist-table th.broken-link, .minimalist-table td.broken-link {
    width: 30%;
    word-break: break-all;
    white-space: normal;
}

.minimalist-table th.anchor-text, .minimalist-table td.anchor-text {
    width: 25%;
    word-break: break-all;
    white-space: normal;
}

.minimalist-table th.source-url, .minimalist-table td.source-url {
    width: 30%;
    word-break: break-all;
    white-space: normal;
}

.minimalist-table th.status-code, .minimalist-table td.status-code {
    width: 15%;
    text-align: center;
}

/* Status icons in table */
.minimalist-table .status-icon {
    font-size: 0.75rem;
}

.minimalist-table .status-icon.good {
    color: #28a745;
}

.minimalist-table .status-icon.missing {
    color: #dc3545;
}

.minimalist-table .status-icon.suboptimal {
    color: #ffc107;
}

.minimalist-table .preview-icon {
    font-size: 0.7rem;
    cursor: pointer;
}

.completion-message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    padding: 1rem 1.5rem;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #f6c23e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#topCompletionMessage,
#bottomCompletionMessage {
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    color: #155724;
    border: 1px solid #d4edda;
}

.completion-message .pause-resume-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.completion-message .pause-resume-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.completion-message .btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.completion-message .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.completion-message .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.completion-message .see-results-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.completion-message .see-results-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
}

.summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.summary-box h3 {
    margin-top: 0;
    color: #007bff;
    margin-bottom: 40px;
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.summary-box h3 i {
    font-size: 1.2em;
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-box p {
    margin: 10px 0;
    font-size: 0.95em;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stats-section {
    width: 100%;
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-section h4 {
    color: #495057;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stats-section h4 i {
    font-size: 1.2em;
    color: #007bff;
}

.stats-section p {
    font-size: 0.9em;
    color: #6c757d;
    margin: 8px 0;
    font-weight: 500;
}

.stats-section span {
    font-weight: 700;
    color: #007bff;
    font-size: 1em;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    line-height: 1.4;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
    line-height: 1;
}

.stat-icon {
    font-size: 1.6em;
    color: #007bff;
    opacity: 0.8;
}

.summary-instructions {
    margin-top: 30px;
    text-align: left;
}

.charts-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.charts-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.chart-group {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-wrapper canvas {
    max-width: 100%;
    max-height: 100%;
}

.summary-instructions h4 {
    color: #007bff;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.result-title {
    text-align: center;
    margin-bottom: 30px;
}

.summary-instructions ul {
    padding-left: 0;
    list-style: none;
}

.summary-instructions li {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.summary-instructions li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-instructions li .icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    font-size: 1.2em;
}

.summary-instructions li.analyzing {
    border-left-color: #007bff;
}

.summary-instructions li.missing {
    border-left-color: #dc3545;
}

.summary-instructions li.duplicate {
    border-left-color: #6f42c1;
}

.summary-instructions li.good {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    border: 1px solid #d4edda;
}

.summary-instructions li.long {
    border-left-color: #17a2b8;
}

.summary-instructions li.short {
    border-left-color: #ffc107;
}

.recommendation-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    font-size: 1.1em;
    line-height: 1.4;
}

.recommendation-urls {
    margin-top: 15px;
    padding-left: 0;
    list-style: none;
    width: 100%;
}

.recommendation-urls li {
    padding: 8px 0;
    margin-bottom: 8px;
    background: none;
    border-left: none;
    box-shadow: none;
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.recommendation-urls li:last-child {
    border-bottom: none;
}

.summary-instructions code {
    background-color: #f1f3f5;
    padding: 2px 4px;
    border-radius: 3px;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #004085;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: pointer;
}

.btn-warning {
    color: #fff;
    background-color: #fd7e14;
    border-color: #fd7e14;
    cursor: pointer;
}

.btn-warning:hover {
    color: #fff;
    background-color: #e8690b;
    border-color: #d55a00;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    cursor: pointer;
}

.btn-danger:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.btn {
    cursor: pointer;
}

.summary-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.summary-buttons .btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    min-width: 140px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.summary-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.right-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.right-buttons .btn {
    flex: 1;
    min-width: 140px;
}

.btn-wrapper {
    position: relative;
}

.pro-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-box {
        padding: 20px;
        margin-top: 20px;
    }
    
    .summary-box h3 {
        font-size: 1.5em;
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-stats {
        gap: 15px;
        padding: 15px;
    }
    
    .stats-section {
        padding: 20px;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .charts-section {
        padding: 20px;
    }
    
    .charts-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .chart-group {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .summary-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .right-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .summary-buttons .btn {
        min-width: auto;
        width: 100%;
    }
    
    .summary-instructions li {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .summary-instructions li .icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .summary-box {
        padding: 15px;
    }
    
    .summary-box h3 {
        font-size: 1.3em;
    }
    
    .stat-value {
        font-size: 1.6em;
    }
    
    .chart-wrapper {
        height: 250px;
    }
}

/* Additional styling improvements */
.summary-blur-section {
    position: relative;
}

.summary-blur {
    position: relative;
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* Animation for loading states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.analyzing {
    animation: pulse 2s infinite;
}

/* Smooth transitions for all interactive elements */
.summary-box * {
    transition: all 0.3s ease;
}

/* Enhanced focus states for accessibility */
.summary-box .btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.summary-box .stat-card:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Generic Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    z-index: 10000;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal h2 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Generic Preview Modal Styling */
.preview-modal {
    max-width: 800px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 5vh auto !important;
    top: 0 !important;
    transform: none !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 16px !important;
}

/* Modal-specific preview container styles */
.preview-modal .preview-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000 !important;
    background: transparent !important;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    overflow-x: hidden;
    max-width: 100%;
    min-width: auto !important;
    width: 100% !important;
}

.preview-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.preview-tab {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.preview-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.preview-tab:hover:not(.active) {
    background: #e9ecef;
}

.snippet-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.snippet-label i {
    color: #007bff;
}

.preview-snippet-block {
    margin-bottom: 30px;
}

.preview-snippet-block:last-child {
    margin-bottom: 0;
}

.preview-device {
    display: none;
}

.preview-device.active {
    display: block;
}

.preview-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Realistic Google SERP Styling */
.search-result-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.4;
    max-width: 600px;
}

.search-result-preview.mobile {
    padding: 12px;
    border-radius: 6px;
    max-width: 320px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.preview-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 4px;
    font-family: 'Roboto', Arial, sans-serif;
    word-break: break-all;
}

.preview-title {
    color: #1a0dab;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
    font-family: 'Roboto', Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.preview-title:hover {
    text-decoration: underline;
}

.preview-description {
    color: #545454;
    font-size: 14px;
    line-height: 1.58;
    font-family: 'Roboto', Arial, sans-serif;
    word-wrap: break-word;
}

/* Mobile-specific styling */
.search-result-preview.mobile .preview-url {
    font-size: 12px;
    margin-bottom: 2px;
    color: #5f6368;
}

.search-result-preview.mobile .preview-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
    line-height: 1.2;
    color: #1a0dab;
}

.search-result-preview.mobile .preview-description {
    font-size: 12px;
    line-height: 1.4;
    color: #5f6368;
    margin-bottom: 0;
}

.preview-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.preview-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.preview-label {
    font-weight: 600;
    color: #495057;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-value {
    color: #6c757d;
    flex: 1;
    word-break: break-all;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.preview-code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    overflow-x: auto;
    margin: 10px 0;
    border-left: 4px solid #007bff;
}

.result-explanation {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #2196f3;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.result-explanation h6 {
    color: #1976d2;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-explanation p {
    color: #424242;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .preview-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .preview-label {
        min-width: auto;
    }
}

/* Schedule Scan Modal Styling */
#scheduleScanModal .modal-content {
    max-width: 600px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#scheduleScanModal h2 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    margin: -30px -30px 30px -30px;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    font-size: 1.6em;
    font-weight: 600;
    text-align: center;
    position: relative;
}

#scheduleScanModal .close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 24px;
    font-weight: 300;
    z-index: 10;
}

#scheduleScanModal .close:hover {
    color: #f8f9fa;
    transform: scale(1.1);
}

#scheduleScanModal .form-group {
    margin-bottom: 25px;
    position: relative;
}

#scheduleScanModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#scheduleScanModal .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

#scheduleScanModal .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

#scheduleScanModal select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

#scheduleScanModal input[type="time"].form-control {
    padding: 12px 15px;
}

#scheduleScanModal .form-group:last-of-type {
    margin-bottom: 30px;
}

#scheduleScanModal .form-group:last-of-type label {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

#scheduleScanModal input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
    cursor: pointer;
}

#scheduleScanModal .modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

#scheduleScanModal .modal-buttons .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    cursor: pointer;
}

#scheduleScanModal .btn-secondary {
    background: #6c757d;
    border: 2px solid #6c757d;
    color: white;
}

#scheduleScanModal .btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
}

#scheduleScanModal .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 2px solid #007bff;
    color: white;
}

#scheduleScanModal .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments for Schedule Scan Modal */
@media (max-width: 768px) {
    #scheduleScanModal .modal-content {
        margin: 5% auto;
        padding: 20px;
    }
    
    #scheduleScanModal h2 {
        margin: -20px -20px 20px -20px;
        padding: 20px;
        font-size: 1.4em;
    }
    
    #scheduleScanModal .close {
        top: 15px;
        right: 20px;
    }
    
    #scheduleScanModal .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    #scheduleScanModal .modal-buttons .btn {
        width: 100%;
        min-width: auto;
    }
}

.filter-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.filter-controls .row {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.filter-controls .col-md-5 {
    flex: 2;
    max-width: 35%;
}

.filter-controls .col-md-3 {
    flex: 1;
    max-width: 22%;
}

.filter-controls .col-md-1 {
    flex: 0 0 auto;
    max-width: 120px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 45px;
    padding: 0 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
    outline: none;
    border-color: #f39780;
    box-shadow: 0 0 0 3px rgba(243, 151, 128, 0.1);
    transform: translateY(-1px);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.chart-wrapper {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height: 300px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.clear-filters-btn {
    height: 45px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
    border: 2px solid #fd7e14;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.50rem;
    min-width: 80px;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, #e55a00 0%, #cc4a00 100%);
    border-color: #e55a00;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

.clear-filters-btn i {
    font-size: 0.875rem;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.website-result-container {
    width: 80%;
    max-width: none;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
    margin-bottom: 100px;
}

.filter-container {
    text-align: right;
    margin-bottom: 15px;
}

.filter-container label {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.filter-container input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #007bff;
}

.what-to-do-next {
    margin-top: 60px !important;
    margin-bottom: 40px !important;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.what-to-do-next h4 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.what-to-do-next h4:before {
    content: '\f0eb';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.what-to-do-next ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.what-to-do-next > ul > li {
    margin-bottom: 25px;
    padding-left: 20px;
    position: relative;
}

.what-to-do-next > ul > li:last-child {
    margin-bottom: 0;
    background: #d4edda;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
}

.what-to-do-next > ul > li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #28a745;
}

.what-to-do-next > ul > li:last-child strong {
    color: #155724;
}

.what-to-do-next ul ul {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 20px;
}

.what-to-do-next ul ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #666;
}

.what-to-do-next ul ul ul {
    margin-top: 5px;
    margin-bottom: 10px;
}

.what-to-do-next ul ul ul li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #777;
    padding-left: 15px;
    position: relative;
}

.what-to-do-next ul ul ul li:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #6c757d;
}

.what-to-do-next strong {
    color: #495057;
    font-weight: 600;
}

.what-to-do-next > ul > li + li {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Responsive design for canonical checker */
@media (max-width: 768px) {
    .tool-form {
        padding: 2rem 1.5rem;
    }
    
    .toggle-group {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .input-group {
        flex-direction: column;
        height: auto;
    }
    
    #urlInput, .toggle-container {
        width: 100%;
        border-radius: 4px;
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
    
    #urlInput {
        border-radius: 4px;
        height: 60px !important;
        font-size: 2rem;
        padding: 30px 15px;
    }
    
    .toggle-container {
        min-width: unset;
        width: 100%;
        border-radius: 4px;
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 15px;
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .toggle-label {
        margin: 5px 0;
    }
    
    .website-result-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .minimalist-table {
        font-size: 1.2rem;
    }
    
    .switch {
        margin: 0 10px;
        width: 60px;
    }
    
    .charts-container {
        padding: 15px;
        margin: 20px 0;
    }
    
    .chart-wrapper {
        padding: 10px;
        min-height: 250px;
    }
    
    .filter-controls .col-md-5,
    .filter-controls .col-md-3,
    .filter-controls .col-md-1 {
        padding: 0;
        margin-bottom: 10px;
        width: 100%;
        max-width: 100%;
        flex: none;
        display: flex;
        align-items: center;
    }
    
    .filter-controls .row {
        flex-direction: column;
        gap: 1rem;
        justify-content: flex-start;
    }

    .clear-filters-btn {
        width: 100%;
    }
    
    .what-to-do-next {
        padding: 20px;
    }
    
    .what-to-do-next h4 {
        font-size: 1.2rem;
    }
    
    .what-to-do-next ul ul li {
        font-size: 0.9rem;
    }
    
    .what-to-do-next ul ul ul li {
        font-size: 0.85rem;
    }
    
    .summary-buttons {
        flex-direction: column;
        padding: 0 15px;
    }

    .left-buttons {
        width: 100%;
        margin-bottom: 15px;
    }

    .left-buttons .btn {
        width: 100%;
    }

    .right-buttons {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .right-buttons .btn,
    .right-buttons .btn-wrapper {
        flex: 1;
    }
    
    .input-group-wrapper {
        margin: 80px auto 45px;
        padding: 0 15px;
    }
    
    .input-group {
        margin-bottom: 25px;
    }
}

/* Hreflang Tags Checker specific column styling */
.minimalist-table th.hreflang-status,
.minimalist-table td.hreflang-status {
    text-align: center !important;
    width: 10% !important;
}

.minimalist-table th.hreflang-tags,
.minimalist-table td.hreflang-tags {
    text-align: center !important;
    width: 40% !important;
}

.minimalist-table th.details,
.minimalist-table td.details {
    text-align: center !important;
    width: 10% !important;
}

/* Hreflang language code badges */
.minimalist-table .badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    background-color: #007bff;
    color: white;
    margin: 0.125rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.minimalist-table .badge:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Different colors for different language codes */
.minimalist-table .badge[data-lang="nl-be"] {
    background-color: #28a745;
}

.minimalist-table .badge[data-lang="nl-nl"] {
    background-color: #17a2b8;
}

.minimalist-table .badge[data-lang="fr-fr"] {
    background-color: #fd7e14;
}

.minimalist-table .badge[data-lang="it-it"] {
    background-color: #6f42c1;
}

.minimalist-table .badge[data-lang="x-default"] {
    background-color: #6c757d;
}

/* Center the hreflang tags container */
.minimalist-table td.hreflang-tags {
    text-align: center !important;
}

.minimalist-table td.hreflang-tags .badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

/* Hreflang Preview Modal Styling */
.url-details-modal {
    max-width: 800px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: 5vh auto !important;
    top: 0 !important;
    transform: none !important;
}

.url-details-modal .result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.url-details-modal .result-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.url-details-modal .result-text {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.url-details-modal .result-text i {
    font-size: 1.2rem;
    min-width: 20px;
}

/* Hreflang section specific styling */
.url-details-modal .hreflang-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #6f42c1;
}

.url-details-modal .hreflang-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.url-details-modal .hreflang-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.url-details-modal .hreflang-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.url-details-modal .hreflang-item .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.url-details-modal .hreflang-item .hreflang-url {
    color: #495057;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    flex: 1;
}

/* Result explanation styling */
.url-details-modal .result-explanation {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    margin-top: 1.5rem;
}

.url-details-modal .result-explanation h6 {
    color: #1976d2;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-details-modal .result-explanation p {
    color: #37474f;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.url-details-modal .result-explanation p:last-child {
    margin-bottom: 0;
}
