/* KeywordsFX v2 - Modern Design */

/* Hero Section - Beautiful Gradient Background */
.keywordsfx-v2-hero {
    background-color: #00316A;
    padding: 80px 0 160px;
    color: white;
    position: relative;
    overflow: hidden;
}

.keywordsfx-v2-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/themes/fx/assets/img/special-pages/http-status-tools/right-spiral.svg), url(/wp-content/themes/fx/assets/img/special-pages/http-status-tools/left-spiral.svg);
    background-size: 600px auto, 500px auto;
    background-position: center right, center left;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.keywordsfx-v2-hero__content {
    position: relative;
    z-index: 10;
}

/* Ensure all text in hero content area is white */
.keywordsfx-v2-hero .hero-content-column,
.keywordsfx-v2-hero .hero-content-column * {
   color: white !important;
}

/* Override any dark text that might appear in hero content */
.keywordsfx-v2-hero .hero-content-column h1,
.keywordsfx-v2-hero .hero-content-column h2,
.keywordsfx-v2-hero .hero-content-column h3,
.keywordsfx-v2-hero .hero-content-column p,
.keywordsfx-v2-hero .hero-content-column span,
.keywordsfx-v2-hero .hero-content-column div {
   color: white !important;
}

.hero-flex-layout {
    display: flex;
    gap: 80px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-content-column {
    flex: 1;
}

.hero-form-column {
    flex: 0 0 500px;
}

/* KeywordsFX Logo */
.keywordsfx-logo {
    height: 60px;
    width: auto;
}

/* Update title color for dark background */
.keywordsfx-v2-hero .keywordsfx-v2-hero__title {
    color: var(--White, #FFF) !important;
    /* font-size: 48px;
    font-weight: 800;
    line-height: 56px;
    letter-spacing: -1.728px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    animation: fadeInDown 0.8s ease-out;
}

.keywordsfx-v2-hero__description {
    font-size: 18px;
    color: white !important;
    line-height: 1.6;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

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

/* Quick Guide Steps - Updated for dark background */
.how-to-guide {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: white !important;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    text-align: left;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95) !important;
}

.step-number {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease;
}

.guide-step:hover .step-number {
   transform: scale(1.1);
}
table.dataTable td.dt-control:before {
    display: none!important;
}
table table:not(.exclude-default-table-style) {
    margin-top: 16px!important;
    margin-bottom: 16px!important;
}
.step-text {
    line-height: 1.4;
    color: black !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Quick Guide Steps */
.hero-quick-guide__steps-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
}

.one-line-connector {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--Primary-Blue-Lightest, #CCE4FF);
    z-index: 0;
}

.hero-quick-guide__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    background: #f8faff;
    padding: 8px;
    border-radius: 8px;
}

.hero-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--Primary-Blue, #207DE9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.hero-quick-guide__step span:not(.tooltip-text) {
    font-size: 14px;
    font-weight: 600;
    color: var(--Gray-gray-08, #222);
    text-align: center;
}

/* Skeletal Loading for Form */
.form-skeleton-loading {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: white;
   border-radius: 16px;
   padding: 32px;
   z-index: 100;
   display: flex;
   flex-direction: column;
   gap: 24px;
}

.skeleton-header {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.skeleton-form {
   display: flex;
   flex-direction: column;
   gap: 20px;
   flex: 1;
}

.skeleton-input-group {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

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

.skeleton-examples {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.skeleton-example-buttons {
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
}

/* Skeleton Elements */
.skeleton-line {
   height: 16px;
   background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
   background-size: 200% 100%;
   border-radius: 4px;
   animation: skeleton-loading 1.5s infinite;
}

.skeleton-title {
   height: 20px;
   width: 70%;
}

.skeleton-subtitle {
   height: 14px;
   width: 85%;
}

.skeleton-label {
   height: 14px;
   width: 30%;
}

.skeleton-input {
   height: 44px;
   width: 100%;
}

.skeleton-checkbox {
   width: 18px;
   height: 18px;
   background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
   background-size: 200% 100%;
   border-radius: 3px;
   animation: skeleton-loading 1.5s infinite;
   flex-shrink: 0;
}

.skeleton-checkbox-label {
   height: 14px;
   width: 140px;
}

.skeleton-example-label {
   height: 12px;
   width: 25%;
}

.skeleton-button {
   background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
   background-size: 200% 100%;
   border-radius: 6px;
   animation: skeleton-loading 1.5s infinite;
}

.skeleton-example {
   height: 28px;
   width: 80px;
}

.skeleton-submit {
   height: 48px;
   width: 100%;
   margin-top: auto;
}

@keyframes skeleton-loading {
   0% {
       background-position: 200% 0;
   }
   100% {
       background-position: -200% 0;
   }
}

/* Hide form initially, show after JS loads */
.keywordsfx-v2-form {
   opacity: 0;
   transition: opacity 0.3s ease;
}

.keywordsfx-v2-form.loaded {
   opacity: 1;
}

/* Form Card - Minimalist */
.keywordsfx-v2-card {
    background: white;
    border-radius: 16px;
    border: none;
    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.05);
    backdrop-filter: blur(16px);
    position: relative;

}

.keywordsfx-v2-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    z-index: -1;
}

.keywordsfx-v2-form {
    padding: 32px;
    position: relative;
    z-index: 1;
}

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

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

/* AI Section */
.ai-section {
    margin: 16px 0;
    display: flex;
}

.ai-section .ai-checkbox {
    justify-content: flex-start;
}

/* Industry Section (conditional) */
.industry-section {
    margin: 16px 0;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    margin-top: 24px;
    margin-bottom: 8px;
}


.industry-section label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.industry-section .compact-select {
    width: 100%;
}

/* Compact Select */
.compact-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    min-width: 120px;
}

/* Options Wrapper */
.keywordsfx-v2-form__options-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.keywordsfx-v2-form__option {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* AI Checkbox */
.ai-label {
    font-size: 14px;
    font-weight: 500;
    margin-left: 6px;
    margin-bottom: 0px!important;
}

/* Quick Examples */
.quick-examples {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.examples-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.example-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Helper Text */
.helper-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    padding: 8px 12px;
    background: #f9fafb;
    border-left: 3px solid #3b82f6;
}

/* Main Input - Compact */
.main-input {
    position: relative;
}

.main-input input[type="text"],
.main-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #1f2937;
    background: white;
    transition: border-color 0.2s ease;
    font-family: var(--font-inter);
}

.main-input input[type="text"]:focus,
.main-input textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.main-input textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
    padding-right: 50px;
}

.file-upload-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f3f4f6;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-upload-btn:hover {
    background: #e5e7eb;
}

/* Input Status Icon */
.input-status {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.input-status.valid {
    opacity: 1;
}

.input-status svg {
    width: 100%;
    height: 100%;
    fill: var(--Secondary-Green, #26B16D);
}

/* Examples */
.keyword-examples-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.keyword-examples {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.keyword-examples__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--Primary-Dark-Gray, #6E7B81);
}

.keyword-example {
    background: var(--Primary-Blue-Lightest, #CCE4FF);
    border: none;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--Primary-Blue, #207DE9);
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyword-example:hover {
    background: var(--Primary-Blue, #207DE9);
    color: white;
}

.char-counter {
    font-size: 14px;
    color: var(--Primary-Dark-Gray, #6E7B81);
}

/* Format Requirements */
.format-requirements {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--Core-Blue-blue-00, #F9FBFF);
    border-radius: 8px;
    border: 1px solid var(--Primary-Blue-Lightest, #CCE4FF);
}

.format-requirements__icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.format-requirements__text {
    font-size: 14px;
    line-height: 20px;
    color: var(--Gray-gray-08, #222);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 14px 0 rgba(59, 130, 246, 0.39),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px 0 rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

/* Results Section - Compact */
.keywordsfx-v2-results-section {
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.results-header {
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.results-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.action-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #374151;
}

.action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    text-decoration: none;
}

/* Loading State */
.keywordsfx-v2-results__loading {
    text-align: center;
    padding: 60px 20px;
}

.loader-container {
    margin-bottom: 24px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--Primary-Blue-Lightest, #CCE4FF);
    border-top: 4px solid var(--Primary-Blue, #207DE9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: white;
    margin: 0;
}

.loading-dots span {
    animation: loading-dots 1.4s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading-dots {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}

/* Filters */
.keywordsfx-v2-filters {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--Primary-Blue-Lightest, #CCE4FF);
    margin-bottom: 32px;
}

.filter-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--Primary-Light-Gray, #CED4DA);
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--Primary-Light-Gray, #CED4DA);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.clear-filters-btn {
    background: transparent;
    border: 1px solid var(--Primary-Dark-Gray, #6E7B81);
    color: var(--Primary-Dark-Gray, #6E7B81);
}

.clear-filters-btn:hover {
    background: var(--Primary-Dark-Gray, #6E7B81);
    color: white;
}

/* Results Content */
/* .keywordsfx-v2-results__content {
    min-height: 200px;
} */

/* Keyword Categories - Minimalist */
.keyword-category {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.category-header {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.category-header:hover {
    background: #f9fafb;
}

.category-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-header .count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.toggle-icon {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.category-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.category-content {
    padding: 8px 16px 16px;
}

/* Keyword Items - Compact */
.keyword-item {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keyword-item:hover {
    background: #f9fafb;
}

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

.keyword-item.enhanced {
    background: #f0fdf9;
    border-left: 3px solid #10b981;
}

.keyword-text {
    font-size: 15px;
    color: #1f2937;
    flex: 1;
}

.keyword-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-badge {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-1, .score-2, .score-3 { background: #ef4444; }
.score-4, .score-5, .score-6 { background: #f59e0b; }
.score-7, .score-8, .score-9, .score-10 { background: #10b981; }

.quick-win {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
}

.analyze-btn {
    padding: 4px 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analyze-btn:hover {
    background: #e5e7eb;
}

/* AI Tags - Compact */
.ai-tags {
    display: flex;
    gap: 4px;
    align-items: center;
}

.tag {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: capitalize;
}

.tag.theme { background: #dbeafe; color: #1e40af; }
.tag.intent { background: #fce7f3; color: #be185d; }
.tag.content { background: #dcfce7; color: #166534; }

/* Empty State - Instructional */
.keywordsfx-v2-results__empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-state__icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.empty-state__text {
    font-size: 16px;
    color: white !important;
    margin-bottom: 24px;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
}

.feature-icon {
    font-size: 16px;
}

/* Search History */
.keywordsfx-v2-history {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.keywordsfx-v2-history.open {
    right: 0;
}

.keywordsfx-v2-history h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--Gray-gray-08, #222);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--Primary-Blue-Lightest, #CCE4FF);
}

.history-list {
    margin-bottom: 24px;
}

.history-item {
    padding: 12px;
    border: 1px solid var(--Primary-Blue-Lightest, #CCE4FF);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: var(--Core-Blue-blue-00, #F9FBFF);
    border-color: var(--Primary-Blue, #207DE9);
}

.history-item-keyword {
    font-weight: 600;
    color: var(--Gray-gray-08, #222);
    margin-bottom: 4px;
}

.history-item-meta {
    font-size: 12px;
    color: var(--Primary-Dark-Gray, #6E7B81);
    display: flex;
    justify-content: space-between;
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background: var(--Gray-gray-08, #222);
    color: white;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--Gray-gray-08, #222) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Utility Classes */
.hide {
    display: none !important;
}

.desktop-only {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-flex-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-content-column {
        text-align: center;
    }
    
    .keywordsfx-logo {
        height: 50px;
        margin-bottom: 12px;
    }
    
    .hero-form-column {
        flex: none;
        width: 100%;
    }
    
    .keywordsfx-v2-hero {
        padding: 60px 0 80px;
    }
    
    .keywordsfx-v2-hero:before {
        display: none;
    }
    
    .keywordsfx-v2-hero__title {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: -1.2px;
    }
    
    .keywordsfx-v2-hero__description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .keywordsfx-v2-form {
        padding: 24px;
    }
    
    .keywordsfx-v2-card {
        border-radius: 12px;
    }
    
    .ai-section {
        margin: 12px 0;
    }
    
    .industry-section {
        margin: 8px 0;
        padding: 10px;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .keyword-examples {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .keyword-examples-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .keywordsfx-v2-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
} 

/* Results Section - Table Layout */
.keyword-category-table {
    margin-bottom: 32px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.keyword-category-table .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.keyword-category-table .category-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.btn-export-csv, .btn-copy-keywords {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-export-csv:hover, .btn-copy-keywords:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.table-container {
    overflow-x: auto;
}

.keywords-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.keywords-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.keywords-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.keyword-row:hover {
    background: #f8fafc;
}

.keyword-row.enhanced {
    background: #fef3cd;
}

.keyword-row.enhanced:hover {
    background: #fde68a;
}

.keyword-text {
    font-weight: 500;
    color: #1f2937;
}

.score-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.score-badge.score-1, .score-badge.score-2, .score-badge.score-3 { background: #ef4444; }
.score-badge.score-4, .score-badge.score-5, .score-badge.score-6 { background: #f59e0b; }
.score-badge.score-7, .score-badge.score-8 { background: #10b981; }
.score-badge.score-9, .score-badge.score-10 { background: #059669; }

.tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #e5e7eb;
    color: #374151;
}

.tag.theme { background: #dbeafe; color: #1e40af; }
.tag.intent { background: #dcfce7; color: #166534; }

.analyze-btn.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analyze-btn.btn-sm:hover {
    background: #2563eb;
    border-color: #2563eb;
} 

/* DataTables Implementation - Compact Design */
.keywords-datatable-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-top: 24px;
}

/* Ensure DataTable container can be positioned */
.keywords-datatable-container {
    position: relative;
}

.datatable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding-right: 16px!important;
}
.filter-controls {
    text-align: right!important;
}
.filter-controls .form-control {
    color: #333!important;
}
.datatable-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.datatable-header .total-count {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.datatable-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.datatable-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    color: #333!important;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

/* DataTables Custom Styling - Compact */
.table-responsive {
    border: none;
}

/* Child Row Toggle Control */
.link-expand-analysis {
    background: none;
    border: none;
    color: #3b82f6;
    padding: 0;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
}

.link-expand-analysis:hover {
    color: #2563eb;
    text-decoration: underline;
}

.expand-caret {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.fx-cta.cta-wrapper.cta-omniseo-cta-wrapper {
    margin-top: -113px;
}


/* Child Row Content Styling */
.child-row-content {
    padding: 12px 16px;
    background: #f8fafc;
    margin: 0;
    text-align: left;
}

/* Minimalist Analysis Table */
.analysis-table {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 0;
   background: transparent;
}

.analysis-table td {
   padding: 6px 8px;
   font-size: 11px;
   border: none;
   border-bottom: 1px solid #e5e7eb;
   vertical-align: middle;
}

.analysis-table tr:last-child td {
   border-bottom: none;
}

.analysis-label {
   font-weight: 500;
   color: #6b7280;
   width: 30%;
   text-align: left;
}

.analysis-value {
   color: #374151;
   font-weight: 500;
   text-align: right;
}

.compact-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    flex: 0 0 auto;
    margin-right: 8px;
}

.compact-value {
    font-size: 11px;
    color: #374151;
    font-weight: 500;
}

.analysis-reasoning {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-left: 3px solid #3b82f6;
    margin-top: 8px;
}

.reasoning-title {
    font-size: 12px;
    color: #374151;
    display: block;
    margin-bottom: 4px;
}

.reasoning-text {
    font-size: 11px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    font-style: italic;
}

/* Enhanced row styling */
tr.enhanced {
   background: rgba(16, 185, 129, 0.05);
}

tr.enhanced:hover {
   background: rgba(16, 185, 129, 0.1);
}

#keywords-datatable {
    margin: 0 !important;
    font-size: 13px !important;
    width: 100% !important;
}

#keywords-datatable thead th {
    background: #3b82f6 !important;
    border-bottom: 1px solid #2563eb !important;
    font-weight: 600 !important;
    color: white !important;
    padding: 10px 8px !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 45px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Hide default DataTables filter since we moved it to header */
.dataTables_filter {
    display: none !important;
}

/* Hide DataTables scroll headers that cause duplicate headers */
.dataTables_scrollHead {
   display: none !important;
}

.dataTables_scrollBody {
   border: none !important;
}

/* Fix table wrapper to prevent scroll issues */
.dataTables_wrapper {
   overflow: visible !important;
}

/* Ensure main table headers work properly */
#keywords-datatable thead {
   display: table-header-group !important;
}

/* Fix sorting indicators */
#keywords-datatable thead th.sorting,
#keywords-datatable thead th.sorting_asc,
#keywords-datatable thead th.sorting_desc {
   background: #3b82f6 !important;
   color: white !important;
   cursor: pointer !important;
}

#keywords-datatable thead th.sorting:after,
#keywords-datatable thead th.sorting_asc:after,
#keywords-datatable thead th.sorting_desc:after {
   color: white !important;
   opacity: 0.7 !important;
}

/* Make sure our custom controls don't interfere */
.datatable-controls {
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 16px;
}
.datatable-main-table {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 40px;
    padding-bottom: 40px;
}
#keywords-datatable tbody td {
    padding: 8px 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f3f4f6 !important;
    font-size: 13px !important;
    height: auto !important;
}

#keywords-datatable tbody tr:hover {
    background: #f8fafc !important;
}

/* Enhanced keyword styling */
.keyword-text.enhanced {
    color: #059669;
    font-weight: 600;
}

.keyword-text:not(.enhanced) {
    color: #374151;
}

/* Badge styling - Smaller with white text */
.badge {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 12px;
    color: white !important;
}

.badge-sm {
    font-size: 9px;
    padding: 2px 5px;
    color: white !important;
}

.badge.bg-primary { background: #3b82f6 !important; }
.badge.bg-info { background: #06b6d4 !important; }
.badge.bg-secondary { background: #6b7280 !important; }
.badge.bg-success { background: #10b981 !important; }
.badge.bg-warning { background: #f59e0b !important; }
.badge.bg-danger { background: #ef4444 !important; }
.badge.bg-light { background: #9ca3af !important; color: white !important; }

/* Action buttons in table - Extra Small */
.btn-sm.analyze-single-btn {
    font-size: 11px !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

.btn-sm.analyze-single-btn:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
}

.btn-xs {
    font-size: 11px !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    min-width: 28px !important;
}

.view-details-btn {
    background: transparent !important;
    border-color: #d1d5db !important;
    color: #6b7280 !important;
}

.view-details-btn:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
}

/* DataTables controls styling - Compact */
.datatable-controls {
    padding: 12px 16px 8px;
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
}

.datatable-footer {
    padding: 8px 16px 12px;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
}

.dataTables_wrapper .dataTables_filter input {
    width: 180px !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 8px 0 !important;
    font-size: 13px !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Pagination styling - Improved */
.dataTables_wrapper .dataTables_paginate {
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.dataTables_wrapper .dataTables_paginate ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.dataTables_wrapper .dataTables_paginate ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    margin: 0 2px !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    font-size: 12px !important;
    min-width: 36px !important;
    text-align: center !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button a {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #3b82f6 !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
    text-decoration: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #9ca3af !important;
    background: #f9fafb !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    text-decoration: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    transform: none !important;
    text-decoration: none !important;
}

/* Info text styling */
.dataTables_wrapper .dataTables_info {
    color: #6b7280 !important;
    font-size: 12px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .keywordsfx-v2-hero {
        padding: 60px 0 80px;
    }
    
    .keywordsfx-v2-hero:before {
        display: none;
    }
    
    .keywordsfx-v2-hero__title {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: -1.2px;
    }
    
    .keywordsfx-v2-hero__description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .keywordsfx-v2-form {
        padding: 24px;
    }
    
    .keywordsfx-v2-card {
        border-radius: 12px;
    }
    
    .form-skeleton-loading {
        padding: 24px;
        border-radius: 12px;
    }
    
    .skeleton-example-buttons {
        justify-content: center;
    }
    
    .datatable-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 12px 16px;
    }
    
    .datatable-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .compact-filter {
        flex: 1;
        min-width: 120px;
    }
    
    .compact-search {
        flex: 2;
        min-width: 150px;
        max-width: none;
    }
    
    .datatable-actions .btn {
        flex-shrink: 0;
    }
    
    .datatable-controls,
    .datatable-footer {
        padding: 8px 12px;
    }
    
    .datatable-controls .row,
    .datatable-footer .row {
        margin: 0;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: 12px !important;
    }
    
    .dataTables_wrapper .dataTables_paginate {
        justify-content: center !important;
    }
   
       /* Compact child row on mobile */
    .analysis-section-compact {
        margin-bottom: 6px;
        padding: 6px;
    }
    
    .section-title-compact {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .analysis-title-compact {
        font-size: 13px;
    }
    
    .analysis-table td {
        padding: 4px 6px;
        font-size: 10px;
    }
   
   .analysis-label {
        font-size: 10px;
    }
    
    .analysis-value {
        font-size: 10px;
    }
} 

@media screen and (max-width: 600px) {
    .hero-flex-layout__container:before {
        display: none;
    }
    
    .keywordsfx-v2-hero__title {
        font-size: 28px;
        line-height: 32px;
    }
} 

@media screen and (max-width: 1200px) {
    .keywordsfx-v2-hero:before {
        background-size: 250px auto, 250px auto;
        background-position: right -200px center, left -200px center;
        opacity: 0.2;
    }
} 

@media screen and (max-width: 767px) {
    .fx-cta.cta-wrapper.cta-omniseo-cta-wrapper {
        margin-top: -184px;
    }
    .keywordsfx-v2-hero {
        padding-bottom: 160px;
    }
}

/* AI Analysis Overlay */
.ai-analysis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-radius: 8px;
    padding-top: 40px;
}

/* Ensure DataTable container can be positioned */
.keywords-datatable-container {
    position: relative;
}

.ai-overlay-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.ai-loader-container {
   margin-bottom: 24px;
   position: relative;
}

.ai-loader {
   position: relative;
   display: inline-block;
}

.ai-icon {
   font-size: 48px;
   margin-bottom: 16px;
   animation: aiPulse 2s infinite;
}

.loader-spinner {
   position: absolute;
   top: -8px;
   left: -8px;
   width: 64px;
   height: 64px;
   border: 3px solid #e5e7eb;
   border-top: 3px solid #3b82f6;
   border-radius: 50%;
   animation: spin 1s linear infinite;
}

@keyframes aiPulse {
   0%, 100% { transform: scale(1); opacity: 1; }
   50% { transform: scale(1.1); opacity: 0.8; }
}

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

.ai-loading-title {
   font-size: 20px;
   font-weight: 600;
   color: #1f2937;
   margin-bottom: 8px;
}

.ai-loading-text {
   font-size: 14px;
   color: #6b7280;
   margin-bottom: 24px;
   line-height: 1.5;
}

.ai-loading-steps {
   display: flex;
   flex-direction: column;
   gap: 12px;
   text-align: left;
}

.loading-step {
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: 13px;
   color: #9ca3af;
   transition: all 0.3s ease;
}

.loading-step.active {
   color: #3b82f6;
   font-weight: 500;
}

.step-dot {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: #e5e7eb;
   transition: all 0.3s ease;
   flex-shrink: 0;
}

.loading-step.active .step-dot {
   background: #3b82f6;
   animation: dotPulse 1s infinite;
}

@keyframes dotPulse {
   0%, 100% { transform: scale(1); }
   50% { transform: scale(1.2); }
}

.step-text {
   transition: all 0.3s ease;
} 