/* Load Outfit regular and bold (applies to all text unless overridden) */
@font-face {
    font-family: 'Outfit';
    src: url('assets/Outfit-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/Outfit-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Load Noto Sans SC for Chinese characters */
/* Basic CJK Unified Ideographs range: U+4E00-9FFF */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('assets/NotoSansSC-Regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: 'Noto Sans SC';
    src: url('assets/NotoSansSC-Bold.ttf') format('opentype');
    font-weight: bold;
    font-style: normal;
    unicode-range: U+4E00-9FFF;
}

:root {
    --bg-color: #000000;
    --chat-bg: #161a1d;
    --text-color: #e6e6e6;
    --input-bg: #1f2937;
    --button-color: #2ee42e; /* Unified button color */
    --button-hover: #1eab23; /* Slightly darker green for hover */
    --user-message-bg: #1a1f24;
    --assistant-message-bg: #23272c;
    --border-color: #2d3339;
    --header-green: #2ee42e;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling */
}

/* Apply Outfit as the primary font, with Noto Sans SC as fallback for Chinese */
body {
    font-family: 'Outfit', 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
	opacity: 1;
	transition: opacity 0.5s ease; /* ensure body can fade out */
}

body.fade-out {
	opacity: 0;
}

/* Bold elements use the bold font face */
strong, b {
    font-family: 'Outfit';
    font-weight: bold; /* This will use the Outfit-Bold font face */
}

header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 1rem;
    background-color: var(--chat-bg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1005;
    box-sizing: border-box;
	gap:15px;
}

.header-text img {
    height: 20px;
    vertical-align: middle;
    /* Initial green halo using drop-shadow */
    filter: drop-shadow(0 0 8px rgba(46, 228, 46, 0.2))
            drop-shadow(0 0 16px rgba(46, 228, 46, 0.5));
    transition: filter 0.5s ease-in-out;
}

.header-text img:hover {
    /* Intensify the halo on hover */
    filter: drop-shadow(0 0 15px rgba(46, 228, 46, 1))
            drop-shadow(0 0 30px rgba(46, 228, 46, 0.5));
}

.header-buttons {
    display: inline-flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
    vertical-align: middle;
}

.language-switcher-container {
    position: relative;
    display: inline-block;
}


/* If .open is present, keep it open even if not hovering */
.language-switcher-container.open .language-dropdown {
    display: flex;
}

.language-switcher {
    background-color: var(--button-color);
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2),
                0 0 15px rgba(46, 228, 46, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 100px;
    height: auto;
    box-sizing: border-box;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}


.language-switcher:hover {
    background-color: var(--button-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(46, 228, 46, 0.5);
}

.language-dropdown {
    position: absolute;
    top: calc(100% - 0px); /* or just top: 100%; */
    left: 50%;            /* Move the dropdown's left edge to the horizontal center of the parent */
    transform: translateX(-50%); /* Shift it back left by 50% of its own width to center it */
    background-color: var(--chat-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    min-width: 100px;
    z-index: 1101;
}

.language-switcher-container:hover .language-dropdown {
    display: flex;
}

.language-switcher-container.force-close .language-dropdown {
    display: none !important;
}

/* Force the dropdown to hide, overriding hover styles */
.language-switcher-container.force-close .language-dropdown {
    display: none !important;
}

.language-switcher-container.force-close .language-dropdown {
    display: none !important; 
}

.language-option {
    display: block;           /* Make it a block-level element */
    text-align: center;       /* Center the text horizontally */
    color: #e6e6e6;
    text-decoration: none;
    padding: 8px 10px;
    font-size: 12px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.2s ease;
}


.language-option:hover {
    background-color: var(--button-hover);
    color: white;
}

.home-button {
    background-color: var(--button-color);
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2),
                0 0 15px rgba(46, 228, 46, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 80px;
    height: auto;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.home-button:hover {
    background-color: var(--button-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(46, 228, 46, 0.5);
}

.button-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}



.predefined-buttons {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    /* Use grid instead of flex */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Adjust columns as needed */
    gap: 10px;
    z-index: 1002;
    justify-content: center;
    align-items: stretch; /* Ensure all cells (buttons) stretch to same height */
    padding: 10px;
    background-color: var(--chat-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 90%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.predefined-button {
    background-color: var(--button-color);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2),
                0 0 15px rgba(46, 228, 46, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Make them fully expand within the grid cell */
    width: 100%;
    box-sizing: border-box;
    /* Allow text to wrap */
    white-space: normal; 
    /* Remove overflow and text-overflow to prevent truncation */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    animation: buttonGlow 2s infinite alternate ease-in-out;
}

.predefined-button:hover {
    background-color: var(--button-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(46, 228, 46, 0.5);
}


/* Send button */
#send-button {
    width: 40px;
    height: 40px;
    background-color: var(--button-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

#send-button svg {
    width: 20px;
    height: 20px;
    fill: black;
    flex-shrink: 0;
}

#send-button:hover {
    background-color: var(--button-hover);
    transform: scale(1.1);
}

#send-button:hover svg {
    fill: white;
}

/* Predefined buttons container */
.predefined-buttons {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 1002;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: var(--chat-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 90%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.predefined-buttons.visible {
    opacity: 1;
}

.predefined-buttons.hidden {
    opacity: 0.1;
    pointer-events: none;
}

.main-content {
    margin-left: 0;
    padding: 20px;
    padding-top: 50px;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
    transition: margin-left 0.3s ease;
}

.chat-container {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    height: 100%;
    overflow: hidden;
    transition: margin-left 0.3s ease;
    position: relative;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-top: 30px;
    padding-left: calc(var(--side-menu-collapsed-width));
    padding-bottom: 200px; /* Increased from 150px to 300px */
    height: calc(100vh - 140px);
    z-index: 1000;
}


.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    max-width: 70%;
    word-wrap: break-word;
    font-size: 15px;
}

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

.user-message {
    background-color: var(--user-message-bg);
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
    animation: fadeIn 0.5s ease-in;
    word-wrap: break-word;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.assistant-message {
    background-color: var(--assistant-message-bg);
    margin-right: auto;
    padding: 10px;
    border-radius: 6px;
    max-width: 70%;
    word-wrap: break-word;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.message strong {
    color: #2ee42e;
    /* Already uses the bold font, no need to set font-weight here since 
       @font-face handles it */
    text-shadow: 0 0 8px rgba(46, 228, 46, 0.2),
                 0 0 16px rgba(46, 228, 46, 0.3);
}

.highlighted-text {
    color: #2ee42e;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(46, 228, 46, 0.8),
                 0 0 16px rgba(46, 228, 46, 0.5);
}

.chat-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--chat-bg);
    border-top: 1px solid var(--border-color);
    z-index: 1003;
    opacity: 1;
}

.chat-input-container {
    padding: 15px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.chat-input {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
}

.loading-text {
    color: #2ee42e;
    font-style: italic;
    font-weight: bold; /* This will pick the bold font face */
    opacity: 1;
    transition: opacity 0.5s ease;
}


.loading-text #response-counter {
    font-weight: bold;
    color: var(--button-color);
    font-size: 1em;
}

.typing-effect {
    display: inline-block;
    white-space: pre-wrap;
    border-right: 2px solid var(--text-color);
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

.word-counter-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--assistant-message-bg);
    color: #2ee42e;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    z-index: 1010;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(46, 228, 46, 0.3);
    text-shadow: 0 0 8px rgba(46, 228, 46, 0.8),
                 0 0 16px rgba(46, 228, 46, 0.5);
    animation: counterGlow 2s infinite alternate ease-in-out;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.word-counter-overlay.visible {
    opacity: 1;
}

@keyframes counterGlow {
    0% {
        box-shadow: 0 0 15px rgba(46, 228, 46, 0.3),
                    0 0 30px rgba(46, 228, 46, 0.2);
    }
    100% {
        box-shadow: 0 0 25px rgba(46, 228, 46, 0.5),
                    0 0 50px rgba(46, 228, 46, 0.3);
    }
}

.welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #2ee42e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    z-index: 1500;
    text-shadow: 0 0 8px rgba(46, 228, 46, 0.4),
                 0 0 16px rgba(46, 228, 46, 0.2);
    opacity: 1;
    transition: opacity 1s ease;
}

/* The scaling container */
.welcome-foreground {
    position: relative;
    width: 3rem; /* Just a fixed area large enough for text and dot */
    height: 3rem; 
    transform-origin: center center;
    transform: scale(0.1);
    transition: transform 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* After expansion, full size */
.welcome-foreground.expanded {
    transform: scale(1);
}

.welcome-screen.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Position both the dot and the content absolutely at the center */
.welcome-dot, .welcome-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    text-shadow: 0 0 8px rgba(46, 228, 46, 0.4),
                 0 0 16px rgba(46, 228, 46, 0.2);
}

/* Dot visible initially, content hidden */
.welcome-dot {
    width: 1rem;
    height: 1rem;
    background-color: #2ee42e;
    border-radius: 50%;
    opacity: 1;
}

.welcome-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.welcome-foreground.show-content .welcome-dot {
    opacity: 0;
}

.welcome-foreground.show-content .welcome-content {
    opacity: 1;
}

.welcome-text {
    font-size: 1em;
    line-height: 1;
}

.welcome-logo {
    height: 0.8em;
    vertical-align: middle;
    display: inline-block;
}




/* Menu items styles */
.menu-title {
    color: #27c425;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    text-shadow: none;
}

.menu-item:hover .menu-title {
    color: #2ee42e;
    text-shadow: 0 0 8px rgba(46, 228, 46, 0.8),
                 0 0 16px rgba(46, 228, 46, 0.5);
}

.menu-description {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.menu-item {
    background-color: rgba(22, 26, 29, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
	
	    /* Transition to allow smooth movement */
        opacity: 0;
    transform: translateY(20px);
    transition: transform 1.5s ease, opacity 0.5s ease;
    position: relative;
}


/* Add a slight staggered delay for each item for a cascading effect */
.menu-item:nth-of-type(1) {
    transition-delay: 0.1s;
}

.menu-item:nth-of-type(2) {
    transition-delay: 0.2s;
}

.menu-item:nth-of-type(3) {
    transition-delay: 0.3s;
}

.menu-item:nth-of-type(4) {
    transition-delay: 0.4s;
}

body.fade-out {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(3px);
    transition: opacity 0.5s ease, transform 5.5s ease, filter 2.5s ease;
}

/* Once the class is added, bring them to their original position */
body.menu-fly-in .menu-item {
    transform: translate(0, 0);
    opacity: 1;
}

.menu-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(46, 228, 46, 0.3) 20%,
        rgba(46, 228, 46, 0.5) 50%,
        rgba(46, 228, 46, 0.3) 80%,
        transparent 100%
    );
    transition: left 0.7s ease;
    pointer-events: none;
}

.menu-item:hover::after {
    left: 100%;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(46, 228, 46, 0.3),
                0 0 30px rgba(46, 228, 46, 0.2);
    border-color: #2ee42e;

    /* Two backgrounds: 
       1) A 50% black overlay as the top layer
       2) Your original green-tinted gradient as the bottom layer */
    background:
        linear-gradient(
            rgba(22, 26, 29, 0.5),
            rgba(22, 26, 29, 0.5)
        ),
        linear-gradient(
            135deg,
            rgba(46, 228, 46, 0.1) 0%,
            rgba(46, 228, 46, 0.05) 50%,
            rgba(46, 228, 46, 0.1) 100%
        );

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


.menu-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    overflow: hidden;
    box-sizing: border-box;
    padding: 2rem;
}

.menu-grid {
    max-width: 90vw;
    max-height: 90vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 300px));
    gap: 2rem;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

#background-overlay, #background-overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: -1;
}

/* The dark overlay on top */
#dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.60); /* 95% black, so images behind are very faint */
    pointer-events: none; /* Allows clicks to pass through if needed */
    z-index: 0; /* Above the image overlays, but below your page content if any */
}


/* Both overlays have the same z-index and size; 
   they will stack in the order they are in the DOM. */
#lock-button {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    /* Remove or comment out the fixed width and height */
    /* width: 80px; */
    /* height: 40px; */

    /* Instead, let width adjust to content */
    width: auto; 
    height: auto;

    background-color: var(--chat-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(46, 228, 46, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    z-index: 1100;
    font-size: 12px;
    color: #e6e6e6;
    text-decoration: none;
    text-transform: uppercase; 
    font-family: 'Outfit', sans-serif;
    white-space: nowrap; /* Ensure text stays on one line */
    padding: 10px 15px; /* Add padding to ensure spacing around the text */
}


#lock-button:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(46, 228, 46, 0.3),
                0 0 30px rgba(46, 228, 46, 0.2);
    border-color: #2ee42e;
    background: linear-gradient(
        135deg,
        rgba(46, 228, 46, 0.1) 0%,
        rgba(46, 228, 46, 0.05) 50%,
        rgba(46, 228, 46, 0.1) 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
}

.lock-icon {
    width: 20px;
    height: 20px;
    fill: #e6e6e6;
    transition: fill 0.2s ease;
}

#lock-button:hover .lock-icon {
    fill: #ffffff;
}

@media (max-width: 768px) {
    .header-text {
        font-size: 14px;
    }

    .chat-messages {
        padding-bottom: 150px;
        margin-bottom: 60px;
        padding-left: calc(var(--side-menu-collapsed-width) - 30px);
        transition: padding-left 0.3s ease;
    }

    .chat-input-container {
        padding: 10px;
        bottom: 0;
    }
	
	.menu-container {
		margin-top: 10%;
	}
	
    .logo img {
        max-height: 30px;
    }
	
    .menu-grid {
        grid-template-columns: 300px;
		transform: translateY(-30px);
        top: 60%;
        gap: 1rem;
    }

    .menu-icon {
        position: fixed;
        top: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        background-color: var(--button-color);
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(46, 228, 46, 0.5),
                    0 0 16px rgba(46, 228, 46, 0.3);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1100;
    }

    .menu-icon img {
        width: 18px;
        height: auto;
    }

    .menu-icon:hover {
        background-color: var(--button-hover);
        box-shadow: 0 0 12px rgba(46, 228, 46, 0.8),
                    0 0 24px rgba(46, 228, 46, 0.6);
        transform: translate(-50%, -50%) scale(1.1);
    }

    .predefined-buttons {
        bottom: 80px;
        width: calc(90% - 25px);
        margin-left: 15px;
        left: 50%;
        transform: translateX(-50%) translateX(0);
    }

    .chat-messages {
        padding-bottom: 250px;
        margin-bottom: 60px;
        padding-left: calc(var(--side-menu-collapsed-width) - 30px);
        transition: padding-left 0.3s ease;
    }
}

@media (max-width: 480px) {
    .header-text {
        font-size: 12px;
    }

    .predefined-button {
        padding: 6px 12px;
        font-size: 10px;
        min-width: 80px;
    }

    .menu-icon {
        top: 85%;
        width: 40px;
        height: 40px;
    }
	
	.menu-container {
		margin-top: 10%;
	}

    .menu-icon img {
        width: 20px;
    }

    .menu-icon:hover {
        background-color: var(--button-hover);
        box-shadow: 0 0 15px rgba(46, 228, 46, 0.8),
                    0 0 30px rgba(46, 228, 46, 0.6);
        transform: translate(-50%, -50%) scale(1.1);
    }

    .predefined-buttons {
        bottom: 80px;
        width: calc(90% - 25px);
        margin-left: 15px;
        left: 50%;
        transform: translateX(-50%) translateX(0);
    }

    .chat-messages {
        padding-bottom: 250px;
        margin-bottom: 60px;
        padding-left: calc(var(--side-menu-collapsed-width) - 30px);
        transition: padding-left 0.3s ease;
    }

    .chat-input-container {
        padding: 8px;
    }

    .chat-messages {
        padding-bottom: 80px;
        padding-left: calc(var(--side-menu-collapsed-width) - 30px);
        transition: padding-left 0.3s ease;
    }
}

@media (max-width: 360px) {
    .header-text {
        font-size: 10px;
    }

    .chat-messages {
        padding-bottom: 100px;
        padding-left: calc(var(--side-menu-collapsed-width) - 30px);
        transition: padding-left 0.3s ease;
    }

    .predefined-button {
        padding: 5px 10px;
        font-size: 9px;
        min-width: 70px;
    }

    .menu-icon {
        top: 90%;
        width: 35px;
        height: 35px;
    }

    .menu-icon img {
        width: 18px;
    }
}


body.fancy-exit {
    animation: simpleFadeOut 1.5s forwards ease-in-out;
    overflow: hidden;
    transform-origin: center bottom; /* optional, can be removed if not needed */
}

@keyframes simpleFadeOut {
    0% {
        opacity: 1;
        filter: none;
    }
    100% {
        opacity: 0;
        filter: blur(5px);
    }
}

