/* app.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

    body.light-theme {
        background-color: #fff;
        color: #000;
    }

    body.dark-theme {
        background-color: #121212;
        color: #fff;
    }

    /* Ensure all elements inherit the theme colors */
    body.light-theme .header,
    body.light-theme .submit-button,
    body.light-theme .theme-toggle-button,
    body.light-theme .icon-link,
    body.light-theme textarea {
        background-color: #fff;
        color: #000;
    }

    body.dark-theme .header,
    body.dark-theme .submit-button,
    body.dark-theme .theme-toggle-button,
    body.dark-theme .icon-link,
    body.dark-theme textarea {
        background-color: #121212;
        color: #fff;
    }

#chatContainer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

/* Chat bubble colors */
.user-bubble {
    background-color: #6200EA; /* Light mode user message */
    color: #FFFFFF; /* White text */
    border-radius: 15px; /* Rounded corners */
    padding: 10px; /* Padding */
}

body.dark-theme .user-bubble {
    background-color: #BB86FC; /* Dark mode user message */
    color: #000000; /* Black text */
}

.ai-bubble {
    background-color: #03DAC5; /* Light mode AI message */
    color: #000000; /* Black text */
    border-radius: 15px; /* Rounded corners */
    padding: 10px; /* Padding */
}

body.dark-theme .ai-bubble {
    background-color: #03DAC6; /* Dark mode AI message */
    color: #000000; /* Black text */
}

/* LinkedIn icons */
.icon-link {
    color: #000; /* Light theme icon color */
}

body.dark-theme .icon-link {
    color: #fff; /* Dark theme icon color */
}

/* Scroll button */
.scroll-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Initially hidden */
    z-index: 1000;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

body.dark-theme .scroll-button {
    background-color: #121212; /* Dark theme background */
    color: #fff; /* Dark theme text color */
}

.scroll-button.visible {
    display: flex;
    opacity: 1;
}

.scroll-button.hidden {
    opacity: 0;
}

.scroll-button.hidden {
    opacity: 0;
}

/* Submit button */
.submit-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: black;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .submit-button:disabled {
        background-color: gray;
        cursor: not-allowed;
    }

    .submit-button i {
        font-size: 16px;
    }

/* Adjustments for mobile */
@media screen and (max-width: 600px) {
    .scroll-button {
        bottom: 80px; /* Moves it higher on mobile */
        width: 45px;
        height: 45px;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.spinner {
    font-size: 48px;
    color: #000;
}

.spinning-icon {
    font-size: 24px;
    color: #000;
}

.icon-link {
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

    .icon-link:hover {
        color: #005582; /* Darker LinkedIn blue color */
    }

/* Fixed bottom textarea border styles */
body.light-theme .fixed-bottom textarea {
    border: 1px solid #000; /* Light theme border */
}

body.dark-theme .fixed-bottom textarea {
    border: 1px solid #fff; /* Dark theme border */
}

/* Fixed bottom background color */
body.light-theme .fixed-bottom {
    background-color: #fff; /* Light theme background */
}

body.dark-theme .fixed-bottom {
    background-color: #121212; /* Dark theme background */
}

/* Ensure the header has enough margin from the top */
.header {
    margin-top: 20px; /* Adjust as needed */
}

/* Ensure the conversation starter is visible */
.conversation-starters {
    display: block !important;
}

/* Make the question box square */
.question-box {
    width: 200px; /* Adjust size as needed */
    height: 200px; /* Ensure it's square */
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Common Styles */
.chat-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
}

.mt-3 {
    margin-top: 3rem !important;
}

.main-container {
    padding-top: 100px; /* Adjust this value based on the actual height of your header */
}

.user-bubble {
    background-color: #dcf8c6; /* Light background for user messages */
    align-self: flex-end; /* Align user messages to the right */
}

.ai-bubble {
    background-color: #e8e8e8; /* Slightly different light background for AI messages */
    align-self: flex-start; /* Align AI messages to the left */
}

/* Light Theme */
.light-theme .user-bubble {
    color: #333; /* Black text for user messages in light theme */
}

.light-theme .ai-bubble {
    color: #333; /* Black text for AI messages in light theme */
}

.light-theme #mainContainer {
    background-color: #fff; /* Light background */
}

.light-theme .header {
    background-color: #fff; /* Light header background */
}

.light-theme .bottom-bar {
    background-color: #fff; /* Light bottom bar background */
}

/* Dark Theme */
.dark-theme .user-bubble {
    background-color: #4caf50; /* Dark background for user messages */
    color: #fff; /* White text for user messages in dark theme */
}

.dark-theme .ai-bubble {
    background-color: #333; /* Slightly different dark background for AI messages */
    color: #fff; /* White text for AI messages in dark theme */
}

.dark-theme #mainContainer {
    background-color: #121212; /* Dark background */
}

.dark-theme .header {
    background-color: #121212; /* Dark header background */
    color: #fff; /* White text for header in dark theme */
}

.dark-theme .bottom-bar {
    background-color: #121212; /* Dark bottom bar background */
    color: #fff; /* White text for bottom bar in dark theme */
}

/* Existing styles (footer, buttons, etc.) */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
}



.theme-toggle-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

    .theme-toggle-button i {
        font-size: 24px;
    }

.about-toggle-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

    .about-toggle-button i {
        font-size: 24px;
    }

.dark-theme .theme-toggle-button {
    background-color: #121212;
    color: #ffffff;
    border: 1px solid #fff; /* White border for dark mode button */
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2); /* Slight shadow for dark mode button */
}

.dark-theme .about-toggle-button {
    background-color: #121212;
    color: #ffffff;
    border: 1px solid #fff; /* White border for about button */
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2); /* Slight shadow for about button */
}

.conversation-starters {
    text-align: center;
    margin-top: 40px; /* Increased top margin for more padding */
}

.question-box {
    padding: 10px; /* Reduced padding */
    background-color: var(--conversation-bg, #f0f0f0);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 100px; /* Reduced minimum width */
    max-height: 100px;
    text-align: center;
    font-size: 0.875rem; /* Smaller font size */
    border: 1px solid #ccc; /* Light theme border */
}

.dark-theme .question-box {
    background-color: #121212;
    color: #ffffff;
    border: 1px solid #444; /* Dark theme border */
}

/* Hide scrollbar in modern browsers */
.hide-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    .hide-scrollbar::-webkit-scrollbar {
        width: 0px;
        background: transparent; /* Chrome/Safari */
    }

.dark-theme .fixed-footer {
    background-color: #121212;
    color: #ffffff;
}

.dark-theme .scroll-button {
    background-color: #121212;
    color: #ffffff;
}

.dark-theme .bottom-bar {
    background-color: #121212;
    color: #ffffff;
}

.scroll-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 20px;
    border: none;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

    .scroll-button.show {
        opacity: 1;
        visibility: visible;
    }

.dark-theme .scroll-button {
    background-color: #444;
    color: white;
}
