/* Fixed Navbar Styles */
.fixed-navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    height: 60px;
    /* background: rgba(255, 255, 255, 0.95); */
    /* backdrop-filter: blur(10px); */
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 20px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.fixed-navbar .container-fluid {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.fixed-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.fixed-navbar .logo {
    height: 32px;
    width: auto;
    transition: opacity 0.3s ease;
}

.fixed-navbar .logo:hover {
    opacity: 0.8;
}

/* Adjust main content to account for navbar */
.uplifting {
    /* padding-top: 60px; */
}

/* Chat AI Input Styles - Matching Figma Design */
.chat_ai {
    padding: 40px 20px;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.chat-input-container {
    width: 540px;
    margin: 0 auto 16px auto;
    position: relative;
    z-index: 999;
}
.chat_ai .textContent{
    text-align: center;
    margin: auto;
    margin-bottom: 40px;
    position: relative;
    z-index: 999;
}
.chat_ai .chat_ai_hero_illustration{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
.input-wrapper {
    position: relative;
    background: #FFFFFF;
    background-clip: padding-box;
    /* border: 1.662px solid; */
    /* border-image: linear-gradient(45deg, rgba(255, 175, 71, 0.90) 29.82%, rgba(255, 71, 240, 0.70) 53.41%, #D285FF 68.52%, rgba(10, 93, 255, 0.90) 100.85%); */
    border-radius: 6.65px;
    width: 540px;
    height: 144px;
    padding: 21.563px 20.605px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.input-wrapper::before{
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background:  linear-gradient(45deg, rgba(255, 175, 71, 0.90) 29.82%, rgba(255, 71, 240, 0.70) 53.41%, #D285FF 68.52%, rgba(10, 93, 255, 0.90) 100.85%);
    border-radius: 12px;
    z-index: -1;
}
.chat-input {
    border: none;
    outline: none;
    background: transparent;
    color: #8993a4;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    resize: none;
    width: 100%;
    height: 14px;
    min-height: 14px;
    max-height: 84px;
    flex: 1;
    overflow-y: hidden;
    box-sizing: border-box;
}

.chat-input::placeholder {
    color: #8993a4;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}

.send-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 21.563px;
    right: 20.605px;
    transition: all 0.2s ease;
}

.send-button:hover {
    opacity: 0.8;
}

.send-button svg {
    width: 20px;
    height: 15px;
}

/* Suggestions Container */
.suggestions-container {
    width: 540px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: auto;
    position: relative;
    z-index: 999;
}

.suggestion-item {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* .suggestion-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
} */

.suggestion-item span {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #253858;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-separator {
    height: 0.75px;
    background-color: #C1C7D0;
    width: 100%;
}



/* Focus states */
.input-wrapper:focus-within {
    border-color: rgba(255, 175, 71, 1);
    box-shadow: 0 0 0 2px rgba(255, 175, 71, 0.2);
}

.chat-input:focus {
    color: #253858;
}

/* Background circle animation - rotates in place */
.bg_anim_circle {
    animation: spin 3s linear infinite;
    transform-origin: center center;
}

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

/* Chat Messages Styles */
.chat-messages-container {
    width: 100%;
    /* max-width: 800px; */
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 999;
    bottom: -50px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px 0;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeInUp 0.3s ease-out;
}

.message.user {
    flex-direction: row-reverse;
}




.message-content {
    /* background: white; */
    /* border-radius: 16px; */
    padding: 12px 16px;
    /* max-width: 70%; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    /* border: 1px solid rgba(0, 0, 0, 0.05); */
}

.message.user .message-content {
    background: #F1E0F7;
    color: white;
    /* border-radius: 16px 16px 4px 16px; */
    border-radius: 4px;
}

.message.ai .message-content {
    /* background: white; */
    color: #333;
    /* border-radius: 16px 16px 16px 4px; */
    padding-top:0 ;
    overflow: hidden;
}

.message-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.message-text p {
    margin: 0 0 8px 0;
    line-height: 2.1;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-text li {
    margin: 4px 0;
    line-height: 2;
}

.message-text strong {
    font-weight: 600;
    color: inherit;
    font-size: inherit;
}

.message-text em {
    font-style: normal;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    color: #667eea;
    line-height: 2.1;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #252525;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

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

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

/* Chat mode adjustments */
.chat-mode .chat-input-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    /* transform: translateX(-50%); */
    z-index: 1000;
    width: 100%;
    /* max-width: 1170px; */
    margin: 0 auto;
}

.chat-mode .input-wrapper {
    width: 100%;
    height: auto;
    min-height: 26px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #DFE1E6;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.chat-mode .input-wrapper::before {
   content: none;
}

.chat-mode .chat-input {
    font-size: 14px;
    line-height: 14px;
    min-height: 34px;
    max-height: 84px;
    height: 14px;
    padding: 6px 10px;
    color: #333;
    overflow-y: hidden;
    resize: none;
    box-sizing: border-box;
}

.chat-mode .chat-input::placeholder {
    color: #999;
    font-size: 14px;
}

.chat-mode .send-button {
    position: static;
    margin: 0;
    margin-left: 12px;
    width: 36px;
    height: 36px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-mode .send-button svg {
    width: 16px;
    height: 12px;
}

.chat-mode .suggestions-container {
    display: none;
}

.chat-mode .chat_ai {
    padding-top: 20px;
    padding-bottom: 100px;
    justify-content: flex-start;
}

.chat-mode .input-wrapper {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

/* Chat Header Styles - Better UX for chat interface */
.message-text .chat-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 16px 0 8px 0 !important;
    padding: 0;
    line-height: 1.3;
}

.message-text .chat-header-h1 {
    font-size: 16px;
    color: #2c3e50;
    border-left: 3px solid #667eea;
    padding-left: 12px;
}

.message-text .chat-header-h2 {
    font-size: 15px;
    color: #34495e;
    border-left: 2px solid #667eea;
    padding-left: 10px;
}

.message-text .chat-header-h3 {
    font-size: 14px;
    color: #34495e;
    font-weight: 600;
    margin-top: 12px !important;
}

.message-text .chat-header-h4 {
    font-size: 14px;
    color: #34495e;
    font-weight: 600;
}

.message-text .chat-header-h5 {
    font-size: 13px;
    color: #34495e;
    font-weight: 600;
}

.message-text .chat-header-h6 {
    font-size: 13px;
    color: #34495e;
    font-weight: 600;
}

/* First header in a message should have less top margin */
.message-text .chat-header:first-child {
    margin-top: 8px !important;
}

/* Chat table styling - Pure CSS responsive solution matching Figma design */
.chat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 12.48px;
    background: white;
    border-radius: 3.84px;
    border: 0.96px solid #DFE1E6;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.table-scroll {
    overflow-x: auto;
}
.chat-table thead,
.chat-table tbody,
.chat-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.chat-table tbody {
    display: table-row-group;
}

.chat-table thead {
    display: table-header-group;
}

.chat-table th {
    background: #F4F5F7;
    padding: 9.599px 15.358px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-weight: 500; /* Medium weight - exactly as in Figma */
    font-size: 12.48px; /* Same size as regular cells */
    line-height: 19.198px;
    color: #253858;
    border-bottom: 0.96px solid #DFE1E6;
    border-right: 0.96px solid #DFE1E6;
    vertical-align: top;
    display: table-cell;
    white-space: nowrap;
    min-width: 120px;
}

.chat-table th:last-child {
    border-right: none;
}

.chat-table td {
    /* background: white; */
    padding: 15.358px;
    /* font-family: 'Poppins', sans-serif; */
    font-weight: 400; /* Regular weight */
    font-size: 12.48px;
    line-height: 19.198px;
    color: #253858;
    border-bottom: 0.96px solid #DFE1E6;
    border-right: 0.96px solid #DFE1E6;
    vertical-align: center;
    display: table-cell;
    white-space: pre-wrap;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-table td:last-child {
    border-right: none;
}

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

.chat-table tr:last-child th {
    border-bottom: none;
}

/* Remove hover effects to match Figma design */
.chat-table tr:hover {
    background: inherit;
}

.chat-table tr:hover td {
    background: white;
}

.chat-table tr:first-child {
    background: #F4F5F7;
}
.chat-table tr:first-child td{
    font-weight: 600;

}
.pricing_banner{
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 3px 14px 0 rgba(0, 0, 0, 0.10);
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    /* max-width: 822px; */
}
.pricing_banner::before{
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background:  linear-gradient(45deg, rgba(255, 175, 71, 0.90) 29.82%, rgba(255, 71, 240, 0.70) 53.41%, #D285FF 68.52%, rgba(10, 93, 255, 0.90) 100.85%);
    border-radius: 7px;
    z-index: -1;
}
.pricing_banner p{
    margin-bottom: 0;
}
.pricing_banner .banner_data{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    /* max-width: 822px; */
}
.pricing_banner .banner_data .left_data {
    display: flex;
    flex-direction: column;
    gap: 17px;
}
.pricing_banner .banner_data .header{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}
.pricing_banner .banner_data .left_data .details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.pricing_banner .banner_data .left_data .details .V_line{
    max-width: 455px;
    width: 100%;
    height: 1px;
    background: #DFE1E6;
    margin: 8px 0;
}
.pricing_banner .banner_data .left_data .provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.pricing_banner .banner_data .left_data .provider_data {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}
.pricing_banner .banner_data .left_data .provider_data .provider_data_item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.pricing_banner .banner_data .line{
    width: 0.718px;
    height: 119.858px;
    background: #DFE1E6;
}
.pricing_banner .banner_data .right_data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pricing_banner .banner_data .right_data .price{
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.pricing_banner .banner_data .right_data .price p{
    margin-bottom: 4px;
}
.pricing_banner .banner_data .right_data .price h3{
    color: #2F39BF;
}
/* .pricing_banner .banner_data  */
/* Pure CSS Responsive table design */
@media (max-width: 1024px) {
    .chat-table {
        font-size: 11px;
        border-radius: 3px;
        margin: 12px 0;
    }
    
    .chat-table th {
        padding: 8px 12px;
        font-size: 11px;
        line-height: 17px;
        min-width: 100px;
    }
    
    .chat-table td {
        padding: 12px;
        /* font-size: 11px; */
        line-height: 17px;
        min-width: 100px;
    }
    .pricing_banner .banner_data{
        flex-direction: column;
        align-items: flex-start;
    }
    .pricing_banner .banner_data .line{
        display: none;
    }
    .pricing_banner .banner_data .left_data .provider_data{
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .pricing_banner .banner_data .left_data .provider{
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .fixed-navbar {
        height: 56px;
        padding: 0 15px;
    }
    
    .fixed-navbar .logo {
        height: 28px;
    }
    
    .uplifting {
        padding-top: 56px;
    }
    
    .chat_ai {
        padding: 20px 15px;
    }
    
    .chat-input-container,
    .suggestions-container {
        width: 100%;
        max-width: 540px;
    }
    
    .input-wrapper {
        width: 100%;
    }
    
    .chat-input {
        font-size: 13px;
    }
    
    .send-button {
        width: 20px;
        height: 20px;
    }
    
    .send-button svg {
        width: 16px;
        height: 12px;
    }
    .chat-table {
        font-size: 10px;
        border-radius: 2px;
        margin: 10px 0;
        /* Enable horizontal scrolling for smaller screens */
        width: 100%;
        min-width: 600px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .chat-table thead,
    .chat-table tbody {
        display: block;
        width: 100%;
    }
    
    .chat-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .chat-table th {
        padding: 6px 10px;
        font-size: 10px;
        line-height: 15px;
        min-width: 90px;
        display: table-cell;
    }
    
    .chat-table td {
        padding: 10px;
        /* font-size: 10px; */
        line-height: 15px;
        min-width: 90px;
        display: table-cell;
    }
}
@media (max-width: 480px) {
    .fixed-navbar {
        height: 52px;
        padding: 0 10px;
    }
    
    .fixed-navbar .logo {
        height: 24px;
    }
    
    .uplifting {
        padding-top: 52px;
    }
    
    .chat-table {
        font-size: 9px;
        margin: 8px 0;
        border-radius: 2px;
        /* Keep horizontal scroll on very small screens */
        min-width: 500px;
        overflow-x: auto;
    }
    
    .chat-table th {
        padding: 5px 8px;
        font-size: 9px;
        line-height: 13px;
        min-width: 80px;
        font-weight: 500; /* Keep headers bold */
    }
    
    .chat-table td {
        padding: 8px;
        /* font-size: 9px; */
        line-height: 13px;
        min-width: 80px;
    }
}