body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    overflow: hidden;
    line-height: 1.6;
 }
 body.light-mode {
    background-color: #f0f0f0;
    color: #333;
 }
 #sidebar {
    position: fixed;
    left: 7px;
    top: 8px;  
    width: 250px;
    height: calc(97.25vh - 20px); 
    background-color: #1e1e1e;
    padding: 15px; 
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;  
 }
 
 #growbot-text {
    font-size: 45px;
    font-weight: bold;
    color: #fff;
    text-align: center;
 }
 #chat-container {
    margin-left: 288px;
    width: calc(95vw - 250px);
    height: 95vh;
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    border: 0.5px solid #333;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
 }
 body.light-mode #chat-container {
    background-color: #ffffff;
    border: 0.5px solid #ddd;
 }
 #chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 15px;
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 0;
    position: relative;
 }
 body.light-mode #chat-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #333;
 }
 #chat-box p strong {
    font-weight: bold;
 }
 #input-container {
    position: absolute;
    bottom: 40px;
    left: 600px;
    right: 350px;
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: #2a2a2a;
    padding: 1px;
    border-radius: 10px;
 }
 body.light-mode #input-container {
    background-color: #f9f9f9;
 }
 #user-input {
    flex-grow: 1;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 10px;
    font-size: 16px;
    color: #e0e0e0;
    background-color: #333;
 }
 body.light-mode #user-input {
    color: #333;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
 }

 #settings-icon {
    position: fixed;
    top: 27px;
    right: 32px;
    font-size: 35px;
    cursor: pointer;
    color: #ccc;
 }
 .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
 }
 .modal-content {
    background-color: #333;
    color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
 }
 body.light-mode .modal-content {
    background-color: #f0f0f0;
    color: #333;
 }
 .close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
 }
 body.light-mode .close-button {
    color: #333;
 }
 .close-button:hover {
    color: #fff;
 }
 body.light-mode .close-button:hover {
    color: #333;
 }
 #theme-toggle {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    background-color: #4CAF50;
    transition: background-color 0.3s ease;
 }
 body.light-mode #theme-toggle {
    color: #333;
 }
 #save-button {
    padding: 5px 12px;
    font-size: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 1px;
    height: 23px;
    display: inline-block;
    text-align: center;
    width: auto;
 }
 #save-button:hover {
    background-color: #45a049;
 }
 body.light-mode #save-button {
    background-color: #4CAF50;
    color: #333;
 }
 body.light-mode #save-button:hover {
    background-color: #45a049;
 }
 #clear-chat-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
 }
 #clear-chat-btn:hover {
    background-color: #d32f2f;
 }
 body.light-mode #clear-chat-btn {
    background-color: #e57373;
    color: #333;
 }
 body.light-mode #clear-chat-btn:hover {
    background-color: #c62828;
 }
 #language-select {
    margin-top: 10px;
 }
 #language-select select {
    padding: 8px;
    font-size: 16px;
    border: 2px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    width: 100%;
 }
 body.light-mode #language-select select {
    background-color: #f9f9f9;
    color: #333;
    border: 2px solid #ddd;
 }
 #typing-indicator {
    font-style: italic;
    color: #bbb;
    padding-left: 20px;
    margin-top: 10px;
    font-size: 14px;
    display: none;
 }
 .typing-dots {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background-color: #4CAF50;
    animation: typing 1.5s infinite ease-in-out;
 }
 .typing-dots:nth-child(1) {
    animation-delay: 0s;
 }
 .typing-dots:nth-child(2) {
    animation-delay: 0.3s;
 }
 .typing-dots:nth-child(3) {
    animation-delay: 0.6s;
 }
 @keyframes typing {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
 }
 #welcome-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
 }
 #welcome-modal .modal-content {
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
 }
 body.light-mode #welcome-modal .modal-content {
    background-color: #f0f0f0;
    color: #333;
 }
 #welcome-modal button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
 }
 #welcome-modal button:hover {
    background-color: #45a049;
 }
 @keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
 }
 
 .sidebar-profile {
    text-align: center;
    cursor: pointer;
    padding: 20px;
 }
 
 .profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto; 
 }
 
 .profile-name {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: 1.2em;
    text-align: center;
 }

  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
   .modal-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
  }
   .close-button {
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
    float: right;
  }
 
 #growbot-text {
    font-size: 3em;
    font-weight: bold;
    margin: 10px 0;
    color: #4CAF50;
 }
 
 .sidebar-links {
    list-style: none;
    padding: 0;
    width: 100%;
 }
 
 .sidebar-links li {
    width: 100%;
    margin: 15px 0;
 }
 
 .sidebar-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
 }
 
 
 .sidebar-links a:hover {
    background-color: #333333;
 }
 
 
 .sidebar-links i {
    margin-right: 10px;
 }
 
 .badge {
    background-color: #ff5733;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 0.9em;
    position: absolute;
    right: 20px;
 }

 .modal-content {
    background-color: #ffffff;
    color: #333333;
    padding: 20px;
    border-radius: 8px;
 }
 
 .modal-content.dark-theme {
    background-color: #333333;
    color: #ffffff;
 }
 
 #theme-toggle label {
    color: inherit;
 }
 
 #theme-toggle input[type="checkbox"] {
    margin-left: 8px;
 }
 
 #sidebar ul {
    list-style-type: none;
    padding: 0;
 }
 
 #sidebar ul li {
    margin: 15px 0;
 }
 
 #sidebar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 20px;
    transition: background-color 0.3s;
 }
 
 #sidebar a:hover {
    background-color: #575757;
 }
 
 .bottom-links {
    position: absolute;
    bottom: 50px;
    left: 25px;
    display: flex;
    gap: 10px; 
 }
 
 .bottom-links {
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 10px;
 }
 
 .bottom-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
 }

 .popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
 }
 
 .popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 }
 
 .popup-content h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
 }
 
 .popup-content textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    font-size: 16px;
 }
 
 .popup-content button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
 }
 
 .popup-content button:hover {
    background-color: #45a049;
 }

 #disclaimer-modal .popup-content p {
    font-size: 16px;
    color: #555;
 }
 
 .popup-content button:focus {
    outline: none;
 }

 .modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
 }
 
 .modal .modal-content {
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
 }
 
 body.light-mode .modal .modal-content {
    background-color: #f0f0f0;
    color: #333;
 }
 
 .modal button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
 }
 
 .modal button:hover {
    background-color: #45a049;
 }
 
 #welcome-modal {
    z-index: 1001;
 }
 
 #feedback-modal {
    z-index: 1002;
 }
 
 #disclaimer-modal {
    z-index: 1003;
 }
 
 #settings-modal {
    z-index: 1004;
 }
 
 body.light-mode .modal {
    background-color: rgba(0, 0, 0, 0.5); 
 }
 
 body.dark-mode .modal {
    background-color: rgba(0, 0, 0, 0.7); 
 }
 
 .chat-message {
    position: relative;
    margin-bottom: 20px;
    padding-right: 40px; 
 }

 .copy-button {
    position: absolute;
    bottom: -25px; 
    right: 0;
    transform: translateY(5px);
    padding: 5px 8px;
    background-color: transparent;
    border: 1px solid #4CAF50; 
    color: #4CAF50; 
    cursor: pointer;
    font-size: 12px;
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
 }
 
 .chat-message:hover .copy-button {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0s linear 0s; 
 }
 
 .copy-button:hover {
    color: #45a049;
 }
 
 .copy-button i {
    margin-right: 5px;
 }
 
 .copy-button i {
    font-size: 16px;
 }
 .italic-text {
    font-style: italic;
 }

 .copy-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0.9;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
 }

 .stock-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 350px;
    height: auto;
    min-height: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
 }
 
 .stock-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
    margin-bottom: 15px;
 }
 
 .stock-modal-header h2 {
    font-size: 18px;
    margin: 0;
 }
 
 .stock-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
 }
 
 .stock-modal-close:hover {
    color: #f44336;
 }

 .input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
 }
 
 #stock-symbol {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #222;
    color: #ddd;
 }
 
 #stock-symbol::placeholder {
    color: #888;
 }
 
 button {
    padding: 8px;
    font-size: 14px;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
 }
 
 button:hover {
    background-color: #45a049;
 }
 #chat-box {
    position: relative;
    max-height: 780px;  
    overflow-y: auto;
    padding-bottom: 5px; 
 }
 #buffer-line {
    position: absolute;
    bottom: 5px; 
    left: 0;
    right: 0;
    height: 1px;
    background-color: transparent; 
 }
 .response-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
 }
 
 .response-table th, .response-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
 }
 
 .response-table th {
    background-color: #f2f2f2;
 }
 
 button {
    padding: 12px;
    border: none;
    border-radius: 20px;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
 }
 button:hover {
    background-color: #45a049;
 }
 