/* Reset some basic styles for a clean slate */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFF0; /* Ivory background */
    color: #333333; /* Dark text for contrast */
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Adi's styles */
.citations {
    font-size: 0.65em;
    color: gray;
  }


/* Navbar Styles */
.navbar {
    background-color: #114949 !important; /* Teal */
    color: #FFFFF0;
    width: 100%;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    border-radius: 16px; /* Ensures card corners are rounded */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar a {
    color:  #d4a56b !important;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    
}

/* Hover Effect */
.navbar a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle white overlay */
    border-radius: 5px;
}

/* Mobile Toggle Button */
.navbar-toggler {
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #d4a56b;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Active Link Styling */
/* Remove the border-bottom to prevent duplicate underlines */
/* Ensure navbar links have relative positioning */
/* Base styling for navbar links */
/* Base styling for navbar links */
.navbar .nav-link {
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
}
/* Ensure it's visible */
.navbar .nav-link.active {
    font-weight: bold;
    color: #d4a56b !important;
}

/* Underline for the active menu item */
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: #d4a56b; /* Gold */
    transition: width 0.3s ease-in-out;
}

/* Hover effect */
.navbar .nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: transparent; /* Only show on hover */
}

/* Ensures only one underline per link */
.navbar .nav-link:not(.active)::after {
    content: none;
}

/* Navbar Dropdown */
.navbar .dropdown-menu {
    background-color: #114949; /* Teal */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Dropdown Items */
.navbar .dropdown-item {
    color: #d4a56b !important;
    font-size: 0.95rem;
    padding: 10px 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Dropdown Hover */
.navbar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

/* Login & Signup Buttons */
.btn-outline-primary2 {
    border: 2px solid #d4a56b;
    color: #d4a56b;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary2:hover {
    background-color: #d4a56b;
    color: white !important;
}



/* Responsive Navbar Adjustments */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 10px;
    }

    .navbar a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    .navbar .dropdown-item {
        font-size: 0.9rem;
    }
}

/* Fix Bootstrap dropdown arrow resizing */
.navbar .nav-link.dropdown-toggle {
    font-size: inherit !important;  /* Ensures it does not enlarge */
    display: flex;
    align-items: center;
}

/* Keep the arrow size consistent */
.navbar .nav-link.dropdown-toggle::after {
    font-size: 0.8em;  /* Adjust size if needed */
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}

/* Rotate arrow when dropdown is open */
.navbar .nav-link[aria-expanded="true"]::after {
    transform: rotate(180deg); /* Optional: rotates the arrow */
}

/* Content */
.content {
    padding-top: 80px; /* Adjusted for navbar height */
    padding-bottom: 60px; /* Ensure space at the bottom for footer */
    background-color: #FFFFF0; /* Ivory background */
    min-height: calc(100vh - 140px); /* Full height minus navbar and footer */
}

/* Footer Styles */
/* Footer Styles */
footer {
    background-color: #114949; /* Teal background */
    color: #d6ae6b; /* Gold text */
    text-align: center;
    padding: 30px 0;
    width: 100%;
    position: relative; /* Let it naturally stay at the bottom */
    bottom: 0;
}

footer .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

footer .row {
    margin-left: 0;
    margin-right: 0;
}

footer h6 {
    font-weight: bold;
}

footer .footer-link {
    text-decoration: none;
    color: #d6ae6b;
}

footer .footer-link:hover {
    color: #fff;
}

footer .social-icons a {
    color: #d6ae6b;
    font-size: 1.5rem;
    margin-right: 15px;
}

footer .social-icons a:hover {
    color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    footer {
        padding: 20px 0;
    }

    footer .row {
        flex-direction: column;
    }

    footer .col-md-2 {
        width: 100%;
        margin-bottom: 10px;
    }

    footer .container p {
        font-size: 0.9rem;
    }

    footer .social-icons a {
        font-size: 1.2rem;
        margin-right: 10px;
    }
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1.2rem; /* Rounded corners for cards */
    box-shadow: 0 12px 30px rgba(17, 73, 73, 0.8);
    height: 100%;
}

/* Card Image */
/* .card-img-top {
    border-top-left-radius: 1.2rem;
    border-top-right-radius: 1.2rem;
    height: auto;
    object-fit: contain;
} */

/* Card Title */
.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333333;
}

/* Card Body Text */
.card-text {
    font-size: 1rem;
    color: #555555;
}

/* Hover Effect */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(17, 73, 73, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .col-md-4 {
        flex: 0 0 50%; /* On mobile, cards will be half-width */
        max-width: 50%;
    }

    .card {
        margin-bottom: 15px; /* Provide space between cards */
    }

    .card-title {
        font-size: 1rem; /* Smaller title for mobile */
    }

    .card-text {
        font-size: 0.9rem; /* Smaller text for mobile */
    }
}

@media (max-width: 480px) {
    .col-md-4 {
        flex: 0 0 100%; /* On very small screens, cards will be full-width */
        max-width: 100%;
    }

    .card-title {
        font-size: 1rem; /* Adjust title size further for very small screens */
    }

    .card-text {
        font-size: 0.85rem; /* Adjust text size for very small screens */
    }

    .card {
        margin-bottom: 20px; /* Increase spacing between cards */
    }
}

/* Hover Effect for the Button */
.btn.btn-outline-dark:hover {
    background-color: #114949; /* Teal color */
    border-color: #114949; /* Teal border */
    color: white; /* Text color changes to white */
}

.btn.btn-outline-dark1 {
    background-color: #114949; /* Teal color */
    border-color: #114949; /* Teal border */
    color: white; /* Text color changes to white */
}

.btn.btn-outline-dark1:hover {
    background-color: white; /* Teal color */
    border-color: #114949; /* Teal border */
    color: #114949; /* Text color changes to white */
}


.card.half-size {
    width: 90%; /* Adjusts the width to half of its current size */
    height: auto; /* Adjusts the height to half of its current size */
    transform: scale(0.9); /* Optional: scales down the card content */
    margin: auto; /* Centers the card */
    font-size: 0.75rem; /* Decreases text size */
    line-height: 1.2; /* Adjusts line height for compact text */
}
.card.half-size .card-text-content {
    padding: 1.5rem !important; /* Adjusts padding for text only */
    font-size: 0.75rem; /* Optional: adjust text size */
    line-height: 1.2; /* Optional: adjust line height */
}

.card.half-size img {
    display: block;
    width: 100%; /* Ensures the image fits within the card */
    margin: 0; /* Removes any default margin */
    padding: 0; /* No padding for the image */
}


/* Let's Tour Button */
.btn-tour {
    background-color: #114949; /* Teal Green */
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-tour:hover {
    background-color: white; 
    color: #114949; 
    border-color: #114949;
}

/* Let's Work Button */
.btn-work {
    background-color: #d4a56b; /* Golden Accent */
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-work:hover {
    background-color: white; /* Darker Gold */
    color: #d4a56b; /* Teal Green */
    border-color: #d4a56b;
}

/* Disabled/Restricted Feature Button */
.btn-work-disabled {
    background-color: #f5f5f5; /* Light Gray */
    color: #b0b0b0; /* Muted Gray */
    border: 2px solid #dcdcdc;
    cursor: not-allowed;
}

.btn-work-disabled:hover {
    background-color: #f5f5f5;
    color: #b0b0b0;
    border-color: #dcdcdc;
}


 /* Define button colors */
 .btn-114949 {
    background-color: #114949;
    color: #fff;
    border: 2px solid #114949;
    transition: background-color 0.3s, color 0.3s;
}

.btn-114949:hover {
    background-color: #0d3a3a;
    color: #d4a56b;
    border-color: #d4a56b;
}

.btn-hover.d4a56b:hover {
    background-color: #d4a56b;
    color: #114949;
    border-color: #114949;
}

/* Custom Text Color for Titles */
.text-114949 {
    color: white;
}

/* Carousel Image Container */
.carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Carousel Image Styling */
.carousel-image {
    width: 100%;
    height: 100%; /* Ensure the image covers the whole carousel */
    object-fit: cover; /* Fill the area without cutting off important parts of the image */
    object-position: center; /* Keep the image centered */
}

/* Set a fixed height for the carousel */
.carousel-inner {
    max-height: 800px; /* Adjust based on desired height */
}

/* Adjust the position of the carousel caption */
.carousel-caption {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 15px;
    border-radius: 10px;
    width: 80%; /* Make the caption wider, adjust as needed */
    max-width: 90%; /* Prevent it from being too wide on larger screens */
}

/* Optional: Style the carousel indicators for better visibility */
.carousel-indicators button {
    background-color: #114949;
}
.carousel-indicators .active {
    background-color: #d4a56b;
}


/* Button for submitting the form */
.btn-submit {
    background-color: #004d00; /* Dark Green */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #003300; /* Darker Green for hover effect */
    color: #e6ffe6; /* Light Green text on hover */
}

/* Button for navigating home */
.btn-home {
    background-color: #f0f0f0; /* Light Gray */
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-home:hover {
    background-color: #e6e6e6; /* Slightly darker gray on hover */
    color: #000; /* Darker text on hover */
}

/* Button for saving chat to PDF */
.btn-save {
    background-color: #66b2ff; /* Calm Blue */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background-color: #3399ff; /* Darker Blue for hover effect */
    color: #e6f5ff; /* Light Blue text on hover */
}


.card {
    border-radius: 8px;
    border: 1px solid #ddd;
}

.card-title {
    font-size: 1.5rem;
    color: #114949; /* Match your primary theme color */
}

.card-text {
    font-size: 1rem;
    color: #333;
}



.bg-teal {
    background-color: #114949 !important; /* Teal background */
    color: #ffffff !important; /* White text */
}
.bg-teal2 {
    background-color: #E6E6E6 !important; /* Teal background */
    color: #114949 !important; /* White text */
}

/*#########*/
.card {
    border: 1px solid #e6e6e6; /* Subtle border for better definition */
    border-radius: 8px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
}

pre {
    background-color: #f8f9fa; /* Light neutral background for preformatted text */
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}

/* ####### */
.card {
    border-radius: 10px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333333;
}

.btn-success {
    background-color: #004d00; /* Adjust to match your branding */
    border: none;
}

.btn-success:hover {
    background-color: #006600; /* Slightly brighter green for hover */
}



/* ##### */
.card {
    border-radius: 10px;
    padding: 20px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: bold;
}

.btn-primary {
    background-color: #004d00; /* Match your branding */
    border: none;
}

.btn-primary:hover {
    background-color: #006600; /* Slightly brighter for hover */
}

.bg-teal {
    background-color: #114949; /* Teal color */
    color: #ffffff; /* White text for better readability */
}

.bg-teal-gradient {
    background: linear-gradient(135deg, #114949, #0f3d3d); /* Teal gradient */
    color: #ffffff; /* White text */
}


/* Ensure the container is properly positioned */
.textarea-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Toolbar should be inside but not cover the label */
.toolbar {
    position: absolute;
    top: -30px; /* Move toolbar above the textarea */
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Style for toolbar buttons */
.toolbar button {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}

/* Adjust textarea padding to prevent text from overlapping the label */
#floatingTextarea {
    padding-top: 20px; /* Space for label */
    resize: none;
}

.text-teal {
    color: #114949;
}


.restricted-card {
    position: relative;
    opacity: 0.6; /* Makes it look restricted */
    cursor: pointer; /* Makes it look clickable */
}

.restricted-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.square-rounded-img {
    width: 80px; /* Adjust size as needed */
    height: 80px; /* Ensures a perfect square */
    object-fit: cover; /* Prevents distortion */
    border-radius: 12px; /* Adds rounded borders */
}

.bg-orange {
    background-color: #FF5722;
}

.custom-accordion-header {
    background-color: #E6E6E6 !important;
    color: #333333; /* Dark text for contrast */
    font-weight: bold;
}
.custom-accordion-header:hover {
    background-color: #D4D4D4; /* Slightly darker on hover */
}

/* Active state (Green) */
.btn-upload {
    background-color: #004d00; /* Dark Green */
    color: white;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover Effect */
.btn-upload:hover {
    background-color: #006600; /* Slightly brighter green */
    color: white;
}

/* Inactive/Disabled State (Gray) */
.btn-upload:disabled {
    background-color: #E6E6E6 !important; /* Light Gray */
    color: #A0A0A0 !important; /* Muted text */
    border: 1px solid #DCDCDC;
    cursor: not-allowed;
}

.list-group-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.list-group-item span {
    word-break: break-word; /* Prevents long filenames from breaking the layout */
    max-width: 70%; /* Ensures text doesn't take the whole row */
}

.badge {
    white-space: nowrap; /* Prevents badges from wrapping unnecessarily */
    font-size: 0.85rem; /* Slightly smaller badges for better fit */
}

.bg-gr {
    background-color: #114949;
}


/* Always solid buttons */
.btn-info {
    background-color: #17a2b8 !important; /* Bootstrap "info" blue */
    color: white !important;
    border-color: #117a8b !important;
}

.btn-success {
    background-color: #FF5722 !important; /* Bootstrap "success" green */
    color: white !important;
    border-color: #FF5722 !important;
}

/* New hover effect: Slightly darker background */
.btn-info:hover {
    background-color: #117a8b !important; /* Darker blue on hover */
    border-color: #0d5e73 !important;
}

.btn-success:hover {
    background-color: #218838 !important; /* Darker green on hover */
    border-color: #1a682b !important;
}

.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
}

.language-btn img.flag-icon {
    width: 26px; /* Dimensiune implicită */
    height: auto;
    transition: transform 0.2s ease-in-out;
}

/* Hover Effect */
.language-btn:hover img.flag-icon {
    transform: scale(1.1);
}

/* Dimensiuni mai mici pe mobil */
@media (max-width: 768px) {
    .language-btn img.flag-icon {
        width: 20px; /* Mai mic pe ecrane mici */
    }
}

@media (min-width: 992px) {
    .profile-language-container {
        gap: 20px; /* Adaugă spațiu între profil și stegulețe */
    }
}

/* ========================= */
/* 🚀 Assistant Business Cards - Original Size & Animation */
/* ========================= */

.assistant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ffffff, #f3f3f3);
    box-shadow: 0 12px 30px rgba(17, 73, 73, 0.8); /* Stronger shadow for premium look */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    width: 100%;
    max-width: 550px; /* Keeps original large size */
    min-height: 160px;
    position: relative;
}

/* Hover Effect (Original Animation) */
.assistant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(17, 73, 73, 0.6); /* Smooth hover effect */
    border-color: #004d00;
    background: linear-gradient(135deg, #ffffff, #eef2f3); /* Light gradient shift */
}

/* Text Section */
.assistant-info {
    flex: 1;
    padding-right: 15px;
    text-align: left;
}

/* Assistant Name */
.assistant-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004d00;
    margin-bottom: 5px;
}

/* Assistant Title */
.assistant-title {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
}

/* Assistant Description */
.assistant-description {
    font-size: 1rem;
    color: #444;
    max-width: 90%; /* Keeps text readable */
}

/* Assistant Image (Rounded Square) */
.assistant-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px; /* Ensures rounded corners */
    border: none !important;
    transition: transform 0.3s ease-in-out;
}

/* Image Hover Effect */
.assistant-card:hover .assistant-img {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .assistant-card {
        flex-direction: row;
        max-width: 100%;
    }

    .assistant-name {
        font-size: 1.3rem;
    }
    .assistant-title {
        font-size: 1rem;
    }
    .assistant-description {
        font-size: 0.9rem;
    }

    .assistant-img {
        width: 80px;
        height: 80px;
    }
}


/* 🚀 Assistant Card - Vivian & Lexi */
.assistant-card.vivian-lexi {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ffffff, #f3f3f3);
    box-shadow: 0 12px 30px rgba(17, 73, 73, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    width: 100%;
    max-width: 550px; /* Matches other cards */
    min-height: 220px;
}

/* Hover Effect */
.assistant-card.vivian-lexi:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(17, 73, 73, 0.6);
    background: linear-gradient(135deg, #ffffff, #eef2f3);
}

/* Assistant Content */
.assistant-content {
    width: 100%;
}

/* Each Assistant Row */
.assistant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

/* Assistant Text */
.assistant-info {
    flex: 1;
    text-align: left;
    padding-right: 15px;
}

/* Assistant Name */
.assistant-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004d00;
    margin-bottom: 5px;
}

/* Assistant Title */
.assistant-title {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
}

/* Assistant Description */
.assistant-description {
    font-size: 1rem;
    color: #444;
}

/* Assistant Image Container */
.assistant-image {
    flex-shrink: 0;
}

/* Assistant Images (Rounded Square) */
.assistant-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px; /* Ensures rounded corners */
    border: 4px solid #114949;
    transition: transform 0.3s ease-in-out;
}

/* Separator between Vivian and Lexi */
.assistant-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .assistant-row {
        flex-direction: column; /* Stack text and images vertically on mobile */
        text-align: center;
    }

    .assistant-info {
        padding-right: 0;
    }

    .assistant-image {
        margin-top: 10px;
    }

    .assistant-name {
        font-size: 1.3rem;
    }

    .assistant-title {
        font-size: 1rem;
    }

    .assistant-description {
        font-size: 0.95rem;
    }

    .assistant-img {
        width: 80px;
        height: 80px;
        border-radius: 16px; /* Keeps roundness on mobile */
    }

    .assistant-card.vivian-lexi {
        margin-bottom: 20px; /* Adds space below Vivian & Lexi's card */
    }
}


@media (max-width: 768px) {
    #save-pdf {
        font-size: 0.55rem;  /* Smaller text */
        padding: 3px 3px;  /* Reduce button padding */
        width: auto;  /* Prevents buttons from stretching full width */
        margin-left: 10px; /* Adds space between text and button */
    }

    #save-docx {
        font-size: 0.55rem;  /* Smaller text */
        padding: 3px 3px;  /* Reduce button padding */
        width: auto;  /* Prevents buttons from stretching full width */
    }
}

.text-teal {
    color: #114949 !important; /* Adjust this to your specific teal shade */
}

.text-or {
    color: #FF5722 !important;
  
}


/* 🔹 Button Section: Proper Spacing & Alignment */
.button-section {
    display: flex;
    justify-content: center;  /* Center buttons */
    gap: 15px;  /* Space between buttons */
    padding: 20px 10px;  /* Adds some margin around */
    flex-wrap: wrap; /* Ensures responsiveness */
}

/* 🔹 General Button Styling */
.custom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #114949;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    font-size: 1rem;
    text-align: center;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    font-weight: 500;
}

/* 🔹 Adjust Individual Button Colors */
.btn-info { background-color: #17a2b8; }
.btn-success { background-color: #2e7d32; }
.btn-warning { background-color: #ff8f00; }

/* 🔹 Hover Effects: Slightly Darker & Subtle Lift */
.custom-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}

/* 🔹 Button Icons & Text Formatting */
.custom-btn span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 6px;
}

/* 🔹 Responsive Adjustments */
@media (max-width: 768px) {
    .button-section {
        flex-direction: column; /* Stack buttons on smaller screens */
        align-items: center;
    }

    .custom-btn {
        width: 180px;
        font-size: 0.95rem;
        padding: 12px 18px;
    }

    .custom-btn span {
        font-size: 0.8rem;
    }
}


/* Progress Bar (YouTube-style) */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #007bff; /* Blue */
    z-index: 9999;
    transition: width 0.3s ease-out, opacity 0.5s ease-out;
}

/* Small Floating Spinner */
#floating-spinner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Initially hidden */
    z-index: 9999;
}


.floating-label {
    position: absolute;
    top: 12px;
    left: 16px;
    color: #6c757d;
    transition: 0.3s ease-in-out;
    pointer-events: none;
    font-size: 16px;
}

textarea:focus + .floating-label,
textarea:not(:placeholder-shown) + .floating-label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #007bff;
}


/* Enhanced styling for card-body list-group-item to prevent overflow on mobile devices */
.card-body .list-group-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    display: block;
    max-width: 100%;
}

.card-body .list-group-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


.hover-effect:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Improved layout and responsiveness */
.list-group-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .card-header a {
        margin-top: 10px;
    }
}


/* Ensure the card scales properly across devices */
.card {
    max-height: 90vh; /* Prevents card from becoming too tall */
    overflow: hidden; /* Ensures border-radius applies correctly */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 16px; /* Rounded corners for the card */
}

/* Updated Card Image: Circular */
.card-img-top {
    
    object-fit: cover; /* Cover the area without distortion */
    border-radius: 16px; /* Fully round the image */
    margin: auto;   /* Center the image horizontally */
    display: block;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1rem;
}

.card-body .btn {
    width: auto; /* Prevents buttons from stretching */
    padding: 10px 20px;
    align-self: center; /* Centers the button within the card */
}

@media (max-width: 768px) {
    .card {
        max-height: none;
    }

    .card-img-top {
        
        border-radius: 16px; /* Fully rounded */
    }
}

.card-body .btn {
    pointer-events: auto;
    position: relative;
    z-index: 1;
}


/*  chat html */

.custom-textarea-wrapper {
    position: relative;
}

.custom-scrollable-textarea {
    height: 80px;
    max-height: 80px;
    overflow-y: auto;
    resize: none;
    padding-right: 70px; /* space for read more button */
    transition: max-height 0.3s ease;
}

.custom-scrollable-textarea.expanded {
    max-height: 300px;
}

.btn-ghost2 {
    background: transparent;
    border: 2px solid #114949; /* Your main color */
    color: #114949;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.btn-ghost2:hover {
    background-color: rgba(17, 73, 73, 0.1); /* A subtle fill effect on hover */
    color: #114949; /* Keeping text color consistent or switching to white if you prefer a stronger contrast */
}




    .btn-gradient {
        border: none;
        color: white;
        padding: 10px 20px;
        border-radius: 4px;
        transition: opacity 0.3s;
        text-decoration: none;
    }
    .btn-gradient:hover {
        opacity: 0.85;
    }
    .btn-gradient.disabled, .btn-gradient:disabled {
        opacity: 0.65;
        pointer-events: none;
    }
    .btn-gradient-pdf {
        background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    }
    .btn-gradient-docx {
        background: linear-gradient(45deg, #ff8c00, #ff4500);
    }


 
    .btn-send {
        background: linear-gradient(45deg, #114949, #1abc9c);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 30px; /* Creates a pill shape */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s, box-shadow 0.2s;
        width: 100%;
        font-size: 16px;
        text-decoration: none;
    }
    .btn-send:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
    }
    .btn-send:active {
        transform: scale(0.98);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }


  /* Container styling for proper spacing and responsiveness */
  .button-section-low {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

/* Shared button styles */
.button-section-low button {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;   /* Pill shape for a modern look */
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 160px;
}

.button-section-low button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Primary action buttons with vibrant gradients */
.custom-btn.btn-create {
    background: linecreatear-gradient(45deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px; /* Creates a pill shape */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    font-size: 16px;
    text-decoration: none;
}

.custom-btn.btn-view {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px; /* Creates a pill shape */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    font-size: 16px;
    text-decoration: none;
}

.custom-btn.btn-work {
    background: linear-gradient(45deg, #343a40, #23272b);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px; /* Creates a pill shape */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    font-size: 16px;
    text-decoration: none;
}

/* Secondary ghost button style */
.btn-ghost {
    background: rgba(17, 73, 73, 0.03);
    border: none;
    padding: 12px 25px;
    border-radius: 30px; /* Creates a pill shape */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    font-size: 16px;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(17, 73, 73, 0.1);
}


    .disabled-assistant {
        background: #e0e0e0; /* grey-ish background */
        color: #888888;    /* grey text color */
        pointer-events: none; /* disable clicks */
    }
    .disabled-assistant .assistant-info h5,
    .disabled-assistant .assistant-info p {
        color: #888888;
    }

@media (max-width: 576px) {
  .container.py-5 { padding-top: 2rem; padding-bottom: 2rem; }
  h1 { font-size: 1.75rem; }
  p { font-size: 0.95rem; }
}



/* Smaller upload icon inside the textarea */
.custom-textarea-wrapper .upload-icon {
    color: #114949;          /* ensure the icon and border share this color */
    font-size: 0.95rem;    /* makes the 📎 smaller */
    padding: 0.45rem;      /* tighter click area */
    min-width: auto;       /* override any default button width */
    line-height: 1;        /* vertically center the icon */
    border-radius: 0.50rem;
    border: 1px solid currentColor; /* match border to icon color */
  }



  #loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  #loading-overlay.show {
    display: flex;
  }


/* Container for attached files: vertical scroll only */
.attached-files-container {
    display: flex;
    flex-direction: column;   /* keep items stacked vertically */
    gap: 0.5rem;              /* space between items */
    overflow-y: auto;         /* vertical scroll when too tall */
    overflow-x: auto;         /* horizontal scroll when items too wide */
    max-height: 8rem;         /* limit height before vertical scroll */
    width: 100%;              /* fill available width */
    padding: 0.25rem 0;
    /* background: #f8f9fa; */
    border-radius: 0.25rem;
  }
  
  /* Each file link as a “chip” */
  .attached-file-item {
    flex: 0 0 auto;         /* don’t grow or shrink */
    /* background: #e2e3e5; */
    color: #333;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    white-space: nowrap;    /* no wrapping inside chip */
  }
  
  /* Responsive tweak: smaller max-height on narrow screens */
  @media (max-width: 576px) {
    .attached-files-container {
      max-height: 6rem;
    }
  }



  .markdown-small * {
      font-size: 0.85rem !important;
      line-height: 1.5 !important;
  }



  /* Container for the little icon buttons */
.icon-button-group {
  position: absolute;
  right: 0.5rem;
  bottom: 0.25rem;
  display: flex;
  gap: 0.25rem;
  /* ensure its parent is positioned relative */
  z-index: 1;
}

/* Style every icon button */
.icon-button-group .icon-btn {
  font-size: 0.8rem;
  padding: 0.2rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.icon-button-group .icon-btn:hover,
.icon-button-group .icon-btn:focus {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}


.attached-file-item-container {
        position: relative;
        padding: 0.2rem 0.4rem;
        border-radius: 3px;
        transition: background-color 0.2s ease-in-out;
      }
      .attached-file-item-container:hover {
        background-color: #f8f9fa;
      }
      .lexi-button-group {
        display: none;
        flex-direction: row;
        gap: 0.15rem;
        padding: 0.25rem 0.4rem;
        margin-right: 0.5rem;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 3px;
      }
      .lexi-button-group .icon-btn {
        border: none;
      }
      .attached-file-item-container:hover .lexi-button-group {
        display: flex;
      }
      .lexi-button-group .icon-btn {
        padding: 0.2rem;
        font-size: 0.85rem;
        line-height: 1;
        min-width: auto;
      }