/* Additional custom styling beyond Bootstrap */

/* Specific styling for homepage title "What data can I help you find?" */
.homepage-title {
    color: #0F0F0F !important;
    font-family: Inter !important;
    font-size: 56px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    text-transform: capitalize !important;
}

/* Linear gradient for "find" text */
.gradient-text {
    background: linear-gradient(135deg, #1379FC 0%, #827EFC 50%, #D381FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Subtitle text styling */
.subtitle-text {
    color: #0F0F0F !important;
    font-family: Inter !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-transform: capitalize !important;
}

/* Modern search input container */
.search-area-show .card {
    background: transparent;
    border: none !important;
    border-radius: 20px !important;
    /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.04) !important; */
    padding: 0 !important;
}

.search-area-show .card-body {
    padding: 20px !important;
}

/* Search input field styling */
#search-query {
    background: white !important;
    border: 1px solid #E7ECF0 !important;
    border-radius: 16px !important;
    padding: 16px 100px 16px 20px !important;
    font-family: Inter !important;
    font-size: 16px !important;
    color: #303030 !important;
    line-height: 1.5 !important;
    resize: none !important;
    min-height: 140px !important;
    box-shadow: none !important;
}

#search-query:focus {
    border-color: #0081FF !important;
    box-shadow: 0 0 0 3px rgba(0, 129, 255, 0.1) !important;
    outline: none !important;
}

#search-query::placeholder {
    color: #9CA3AF !important;
    font-family: Inter !important;
}

/* Agentic Search button styling */
#agentic-search-button {
    background: white !important;
    border: 1px solid #E7ECF0 !important;
    border-radius: 16px !important;
    padding: 6px 12px !important;
    font-family: Inter !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #303030 !important;
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    height: 32px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

#agentic-search-button:hover {
    background: #F8F9FA !important;
    border-color: #0081FF !important;
    color: #0081FF !important;
}

#agentic-search-button.active {
    background: #0081FF !important;
    border-color: #0081FF !important;
    color: white !important;
}

#agentic-search-button .badge {
    background: #0081FF !important;
    border-radius: 8px !important;
    padding: 1px 6px !important;
    font-family: Inter !important;
    font-weight: 500 !important;
    font-size: 10px !important;
    color: white !important;
}

#agentic-search-button.active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Search button styling */
#search-button {
    background: #0081FF !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 8px 16px !important;
    font-family: Inter !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: white !important;
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    height: 32px !important;
    min-width: 80px !important;
    transition: all 0.2s ease !important;
}

#search-button:hover {
    background: #0066CC !important;
    transform: translateY(-1px) !important;
}

#search-button:active {
    transform: translateY(0) !important;
}

.form-text {
    font-family: Inter !important;
    color: #6B7280 !important;
    font-size: 13px !important;
}

/* Subscription status message styling */
.subscription-status-text {
    background: #E6F3FF !important;
    border: 1px solid #E7ECF0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-family: Inter !important;
    font-size: 14px !important;
    color: #303030 !important;
    margin-top: 16px !important;
}

/* Override any conflicting styles */
.position-relative .form-control {
    border-radius: 16px !important;
}

.position-relative {
    margin-bottom: 20px !important;
}

/* Gradient Background Elements */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-ellipse {
    position: absolute;
    filter: blur(75px);
}

/* Blue gradient ellipse */
.gradient-ellipse-1 {
    width: 163px;
    height: 282px;
    background: linear-gradient(10deg, #1D9FF0 16.37%, #6EC3FF00 97.62%);
    border-radius: 50%;
    transform: rotate(40.562deg);
    bottom: 20%;
    right: 15%;
    opacity: 0.8;
}

/* Blue/purple gradient ellipse */
.gradient-ellipse-2 {
    width: 191px;
    height: 158px;
    background: linear-gradient(266deg, #1D20D9 44.98%, #1D20D966 90.59%);
    border-radius: 50%;
    transform: rotate(38.292deg);
    bottom: 30%;
    right: 25%;
    opacity: 0.7;
}

/* Pink/purple gradient ellipse */
.gradient-ellipse-3 {
    width: 283px;
    height: 326px;
    background: linear-gradient(14deg, #EEBCFF 58.03%, #EEBCFF66 80.09%);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    opacity: 0.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .gradient-ellipse-1 {
        width: 120px;
        height: 200px;
        bottom: 15%;
        right: 10%;
    }
    
    .gradient-ellipse-2 {
        width: 140px;
        height: 110px;
        bottom: 25%;
        right: 20%;
    }
    
    .gradient-ellipse-3 {
        width: 200px;
        height: 240px;
        bottom: 5%;
        right: 0%;
    }
}

/* Modern Search Results and AI Analysis Section */
#processing-section {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    padding: 40px !important;
    margin-top: 32px !important;
    text-align: left !important;
}

/* Main Search Icon */
#processing-section .fas.fa-search {
    color: #6366F1 !important;
    font-size: 48px !important;
    margin-bottom: 24px !important;
    display: block !important;
    text-align: left !important;
}

/* Main Title - "Identified X Potential Customer Matches..." */
#processing-section h5 {
    color: #0F0F0F !important;
    font-family: Inter !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-transform: none !important;
    margin-bottom: 32px !important;
    text-align: left !important;
}

#processing-section p {
    color: #666666 !important;
    font-family: Inter !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    margin-bottom: 24px !important;
}

/* AI Analysis Section Styling */
.ai-reasoning-section {
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 24px !important;
}

/* Reasoning Header */
.ai-reasoning-section h6,
.text-info {
    color: #6366F1 !important;
    font-family: Inter !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    margin-bottom: 16px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ai-reasoning-section h6 .fas,
.text-info .fas {
    color: #6366F1 !important;
    font-size: 16px !important;
}

/* AI Reasoning Display */
#ai-reasoning-display {
    color: #9CA3AF !important;
    font-family: Inter !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    min-height: 60px !important;
    text-align: left !important;
}

/* Remove background styling for parent containers */
.mb-3.p-3.bg-light.rounded.border-left.border-info {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

/* Service Indicators Modern Styling */
.service-indicators {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin: 24px 0 !important;
}

.service-indicator {
    background: white !important;
    border: 1px solid #E7ECF0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: Inter !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
}

.service-indicator:hover {
    border-color: #0081FF !important;
    box-shadow: 0 2px 8px rgba(0, 129, 255, 0.1) !important;
}

.service-indicator.active {
    background: #F0F8FF !important;
    border-color: #0081FF !important;
}

.service-indicator.completed {
    background: #F0FDF4 !important;
    border-color: #22C55E !important;
    color: #16A34A !important;
}

.service-indicator.failed {
    background: #FEF2F2 !important;
    border-color: #EF4444 !important;
    color: #DC2626 !important;
}

/* Progress Text Styling */
#progress-text {
    color: #374151 !important;
    font-family: Inter !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    text-align: center !important;
    margin-top: 16px !important;
}

/* Thinking Dots Animation */
.thinking-dots {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 4px !important;
}

.thinking-dots span {
    width: 4px !important;
    height: 4px !important;
    background: #0081FF !important;
    border-radius: 50% !important;
    margin: 0 2px !important;
    animation: thinkingPulse 1.4s infinite ease-in-out both !important;
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s !important; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s !important; }
.thinking-dots span:nth-child(3) { animation-delay: 0s !important; }

@keyframes thinkingPulse {
    0%, 80%, 100% {
        transform: scale(0.8) !important;
        opacity: 0.5 !important;
    }
    40% {
        transform: scale(1.2) !important;
        opacity: 1 !important;
    }
}

/* Results Container Styling */
.search-results-container {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #E7ECF0 !important;
    padding: 24px !important;
    margin-top: 24px !important;
}

.search-results-container h6 {
    color: #0F0F0F !important;
    font-family: Inter !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    margin-bottom: 16px !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #processing-section {
        padding: 24px !important;
        margin-top: 24px !important;
    }
    
    .service-indicators {
        gap: 12px !important;
    }
    
    .service-indicator {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

/* Sidebar section headers with step numbers */
.sidebar-section-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

/* Adjust sidebar menu item spacing for better organization */
.sidebar-menu-item {
    margin-bottom: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.sidebar-menu-item:hover {
    background-color: rgba(67, 97, 238, 0.08);
    transform: translateX(2px);
}

/* Enhance form inputs */
.form-control:focus {
    border-color: var(--bs-info);
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

/* Spacing and layout improvements */
.card {
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 2rem;
}

/* Style for single-step view layout */
#search-section .card-body {
    padding: 3rem 2rem;
}

/* Form style improvements */
.form-control {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

/* Slider styling */
#result-limit {
    height: 8px;
    cursor: pointer;
}

#result-limit::-webkit-slider-thumb {
    background: var(--bs-info);
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

#result-limit-value {
    font-size: 1.5rem;
    min-width: 2.5rem;
    text-align: center;
}

/* Style for the results table */
.table-responsive {
    max-height: 400px;
    overflow-x:auto;
    overflow-y: auto;
    margin-top: 1rem;
    
}

.table thead th {
    position: sticky;
    top: 0;
    /* background-color: var(--bs-dark); */
    z-index: 1;
}

/* Button styling */
.btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
}

/* Loading spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-border {
    animation: spin 1.2s linear infinite;
}

/* Processing screen improvements */
#processing-section .spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 0.35em;
}

/* Alert styling */
.alert {
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.3);
}

/* Button hover effects */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

/* Prominent download container */
.download-now-container {
    background-color: rgba(25, 135, 84, 0.1);
    border: 2px solid rgba(25, 135, 84, 0.4);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.download-now-button {
    background-color: #198754;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-now-button:hover {
    background-color: #157347;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.download-now-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.5);
}

/* Improve spacing on mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    #processing-section .spinner-border {
        width: 3rem;
        height: 3rem;
    }
    
    .download-now-container {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .download-now-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
