/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body Styling */
body {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Container */
#container {
    width: 90%;
    max-width: 600px;
    background: #1f1f1f;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    border: 1px solid #444;
    margin-right: 200px;
}

/* Header */
header {
    margin-bottom: 20px;
}

#logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #555;
    margin-bottom: 10px;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #e0e0e0;
}

#name {
    color: #ff9900;
    font-weight: bold;
}

#va {
    color: #00cccc;
    font-weight: bold;
}

/* Chatbox */
#chatbox {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

#chatlogs {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Add spacing between messages */
}

/* User Message */
.user-message {
    align-self: flex-end;
    background: #444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    max-width: 70%;
    word-wrap: break-word;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Bot Message */
.bot-message {
    align-self: flex-start;
    background: #555;
    color: #fff;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 70%;
    word-wrap: break-word;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#made {
    font-size: 0.9rem;
    color: #888;
}

#made span {
    color: #ff9900;
    font-weight: bold;
}

#voice {
    width: 50px;
    height: 50px;
    display: none;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Button */
#btn {
    background: #444;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#btn img {
    width: 20px;
    height: 20px;
}

#btn:hover {
    background: #555;
    transform: scale(1.05);
}

#content {
    font-size: 0.9rem;
}

/* Scrollbar Styling */
#chatbox::-webkit-scrollbar {
    width: 8px;
}

#chatbox::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

#chatbox::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#made {
    font-size: 0.9rem;
    color: #888;
}

#made span {
    color: #ff9900;
    font-weight: bold;
}

#voice {
    width: 50px;
    height: 50px;
    display: none;
}

/* Copyright Section */
#copyright {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 10px;
    width: 100%;
}

#copyright span {
    color: #ff9900;
    font-weight: bold;
}

/* Controls Section */
#controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

#controls button {
    background: #444;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#controls button:hover {
    background: #555;
    transform: scale(1.1);
}

#controls img {
    width: 20px;
    height: 20px;
}

/* Tooltip Styling */
#controls button[title] {
    position: relative;
}

#controls button[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #444;
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}


/* Copy Button Below User Message */
.copy-btn {
    background: #444;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
}

.copy-btn img {
    width: 15px;
    height: 15px;
}

.copy-btn:hover {
    background: #555;
    transform: scale(1.1);
}
/* Copy Button Below User Message */
.copy-btn {
    background: #444;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
}

.copy-btn img {
    width: 15px;
    height: 15px;
}

.copy-btn:hover {
    background: #555;
    transform: scale(1.1);
}

/* User Copy Button Alignment */
.user-copy-btn {
    align-self: flex-end; /* Align to the right */
    margin-right: 10px; /* Add spacing from the edge */
}

/* Bot Copy Button Alignment */
.bot-copy-btn {
    align-self: flex-start; /* Align to the left */
    margin-left: 10px; /* Add spacing from the edge */
}

/* Volume Button Below Bot Message */
.volume-btn {
    background: #444;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
}

.volume-btn img {
    width: 15px;
    height: 15px;
}

.volume-btn:hover {
    background: #555;
    transform: scale(1.1);
}
/* Copy Button Below Message */
.copy-btn {
    background: #444;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
}

.copy-btn img {
    width: 15px;
    height: 15px;
}

.copy-btn:hover {
    background: #555;
    transform: scale(1.1);
}

/* User Copy Button Alignment */
.user-copy-btn {
    align-self: flex-end; /* Align to the right */
    margin-right: 10px; /* Add spacing from the edge */
}

/* Bot Copy Button Alignment */
.bot-copy-btn {
    align-self: flex-start; /* Align to the left */
    margin-left: 10px; /* Add spacing from the edge */
}

/* Volume Button Below Bot Message */
.volume-btn {
    background: #444;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
}

.volume-btn img {
    width: 15px;
    height: 15px;
}

.volume-btn:hover {
    background: #555;
    transform: scale(1.1);
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: flex-start; /* Align buttons to the left */
    gap: 10px; /* Add spacing between buttons */
    margin-top: 5px;
}

/* Align buttons for user messages */
.user-message + .button-container {
    justify-content: flex-end; /* Align buttons to the right for user messages */
}

/* Copy Button */
.copy-btn {
    background: #444;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
}

.copy-btn img {
    width: 15px;
    height: 15px;
}

.copy-btn:hover {
    background: #555;
    transform: scale(1.1);
}

/* Volume Button */
.volume-btn {
    background: #444;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
}

.volume-btn img {
    width: 15px;
    height: 15px;
}

.volume-btn:hover {
    background: #555;
    transform: scale(1.1);
}


/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.toast {
    background: #444;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    animation: fadeInOut 3s ease;
}

/* Toast Animation */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

body {
    user-select: none; /* Disable text selection */
    -webkit-user-select: none; /* For Safari */
    -ms-user-select: none; /* For IE */
}


/* Popup Container */
#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Popup Styling */
.popup {
    background: #ff4444; /* Dangerous red background */
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: popupFadeIn 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.popup h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.popup p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.popup button {
    background: #fff;
    color: #ff4444;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup button:hover {
    background: #ffcccc;
    color: #ff0000;
}

/* Popup Fade-In Animation */
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* Contact Section Styling */
#contact-section {
    background: linear-gradient(135deg, #626a74, #4285f4);
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#promo-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

#promo-banner p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

#contact-btn {
    background: #fff;
    color: #2f3135;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact-btn:hover {
    background: #e8f0fe;
    color: #0b57d0;
}
/* Popup Container */
#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Smooth semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Popup Styling */
.popup {
    background: #ffffff; /* Clean white background */
    color: #333;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: popupFadeIn 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.popup h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a73e8; /* Professional blue color */
    text-transform: uppercase;
}

.popup p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup button {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup button:hover {
    background: #1558b0;
}

/* Popup Fade-In Animation */
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}





/* Floating Banner */
#floating-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25464e; /* Windows-like blue color */
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.5s ease;
}

#floating-banner p {
    margin: 0;
    text-align: center;
}

#floating-banner:hover {
    background: #1558b0; /* Darker blue on hover */
    cursor: pointer;
}

/* Slide-In Animation */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}






/* Voice Wave Indicator */
/* #voice {
    width: 50px;
    height: 50px;
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    animation: pulse 1.5s infinite;
} */
/* #help-toggle {
    background-color: #494f57;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* #help-instructions {
    display: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} */
/* 
.hidden {
    display: none;
} */ 

/* Instruction Box */
#instruction-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0); /* Fully transparent background */
    color: #444; /* Slightly dimmed text color */
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.6); /* Semi-transparent border */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    font-size: 0.9rem;
    font-weight: normal; /* Normal font weight for less emphasis */
    z-index: 1000;
    max-width: 300px; /* Limit the width */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

/* Instruction Box List */
#instruction-box ul {
    margin: 10px 0 0;
    padding: 0;
    list-style-type: none;
}

#instruction-box ul li {
    font-size: 0.85rem; /* Slightly smaller font size */
    margin: 5px 0;
    color: #fff; /* White text for better visibility */
}

/* Hover Effect */
#instruction-box:hover {
    opacity: 0.9; /* Slightly increase visibility on hover */
    transform: scale(1.02); /* Slight zoom effect */
}


.activate-brahma-btn {
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 9px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(142, 45, 226, 0.3);
    letter-spacing: 0.5px;
    margin-left: 1px; /* Add margin to push the button left */
    margin-right: 10px;
  }
  
  .activate-brahma-btn:hover {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    box-shadow: 0 12px 26px rgba(142, 45, 226, 0.5);
    transform: translateY(-2px);
  }
  