 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 17px;
}


.tiva-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.tiva-popup-content {
  background: white;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease;
  font-family: "Segoe UI", sans-serif;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.tiva-popup-content h2 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.tiva-popup-content ul {
  text-align: left;
  margin: 15px 0;
  padding-left: 20px;
}

.tiva-popup-content button {
  background-color: #3f51b5;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 15px;
}

.tiva-popup-content button:hover {
  background-color: #303f9f;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


.message {
    word-wrap: break-word;
}

.user-message {
    background-color: #d1e7dd;
    align-self: flex-end;
    text-align: right;
    border-top-right-radius: 0;
}

.copy-btn, .save-btn {
    font-size: 12px;
    padding: 6px 10px;
    margin-top: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
}

.copy-btn:hover, .save-btn:hover {
    background-color: #0056b3;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}


 
.app-container {
    width: 100%;
    border-radius: 15px;
}

 
.sidebar {
    width: 250px;
    background: #2C3E50;  
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    left: 0;
    height: 100vh;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: auto;
}

.sidebar h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
}

.search-bar {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background: #34495E;  
    color: #fff;
    font-size: 0.9rem;
}

.search-bar::placeholder {
    color: #BDC3C7;
}

.menu {
    flex-grow: 1;
}

.menu-btn {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-btn:hover, .menu-btn.active {
    background: #E67E22; 
}

.auth-link {
    color: #E67E22;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    display: block;
}

.auth-link:hover {
    text-decoration: underline;
}

 
.main-content {  
    padding-left: 250px;
    width: 100%;
}

.content-section {
    padding: 15px;
    display: none;
    padding-top: 70px;
    width: 100%;
}

.content-section.active {
    display: block;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50; /* Dark Slate Blue */
    margin: 0;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
 
.mode-selection {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mode-selection label {
    margin-right: 10px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.mode-selection select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
}
 

.user-message {
    background: #E67E22;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}

.copy-btn, .save-btn {
    position: absolute;
    top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-btn {
    right: 60px;
    background: #E67E22;
    color: #fff;
}

.copy-btn:hover {
    background: #D35400;  
}

.save-btn {
    right: 5px;
    background: #2C3E50;
    color: #fff;
}

.save-btn:hover {
    background: #22303F; 
}

.typing-indicator { 
    top: 10px;
    left: 20px;
    color: #2C3E50;
    font-style: italic;
}

.hidden {
    display: none;
}

 

textarea {
}

textarea:focus {
}

.mic-btn, .upload-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mic-btn {
    background: #2C3E50;
    color: #fff;
}

.mic-btn:hover {
    background: #22303F;
}

.upload-btn {
    background: #E67E22;
    color: #fff;
}

.upload-btn:hover {
    background: #D35400;
}

.send-btn {
    background: #E67E22;
    color: #fff;
    position: absolute;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 100px;
    z-index: 111;
    top: 35px;
    right: 10px;
}

.send-btn:hover {
    background: #D35400;
}

/* History & Saved List */
.history-list {
    list-style: none;
}

.history-list li {
    padding: 12px;
    margin: 5px 0;
    background: #ECF0F1;
    border-radius: 8px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Settings */
.settings-option {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-option label {
    color: #2C3E50;
}

/* Profile */
.avatar {
    width: 50px;
    height: 50px;
    background: #E67E22;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 10px auto;
}

/* Scrollbar Styling */
.chat-box::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: #2C3E50;
    border-radius: 4px;
}

.chat-box::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
    background: #ECF0F1;
}

/* Dark Mode */
body.dark-mode {
    background: #1A2526; /* Dark Teal */
}

body.dark-mode .app-container {
    background: #22303F;
}

body.dark-mode .main-content,
body.dark-mode .chat-box,
body.dark-mode .content-section {
    background: #2C3E50;
}

body.dark-mode .bot-message,
body.dark-mode .history-list li {
    background: #34495E;
    color: #fff;
}

body.dark-mode .user-message {
    background: #D35400;
}

body.dark-mode .input-area,
body.dark-mode .mode-selection {
    background: #22303F;
}

body.dark-mode .mode-selection select {
    background: #22303F;
    color: #fff;
}

body.dark-mode .search-bar {
    background: #2C3E50;
    color: #fff;
}
.response-wrapper {height: calc(100vh - 185px);overflow-y: auto;padding: 0;margin-top: 15px;padding-left: 15px;padding-right: 15px;}

.searchbox-wrapper textarea {
    position: fixed;
    width: calc(100% - 280px);
    right: 15px;
    z-index: 1;
    background: #fff;
    box-shadow: 0 0 30px #00000012;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    bottom: 15px;
    z-index: 99;
    display: flex;
    border-radius: 15px; 
    border: 1px solid #e4e4e4;
    padding-right: 100px;
    outline: none;
    margin: 0 auto;
}

 
.searchbox-wrapper .input-area {
    position: relative;
    width: 100%;
}




.searchbox-wrapper textarea:focus, .searchbox-wrapper textarea:visited {
    /* box-shadow: 0 0 30px #00000012; */
    /* border: 0; */
    /* border-top: 1px solid #e67e22; */
}
.message.bot-message.question-ai span {
    background: #fff2e7;
    padding: 3px 12px;
    border-radius: 15px;
    display: inline-block;
    color: #e67e22;
    font-weight: 500;
}

.message.bot-message {line-height: 30px;}

 

.message.bot-message.question-ai {
    text-align: right;
    margin: 0;
    padding: 0;
    margin-bottom: 15px;
}


a.mobile-ai:before {
    content: "\f095";
    font-family: var(--fa-style-family,"Font Awesome 6 Free");
    font-weight: var(--fa-style,900);
    margin-right: 7px;
}

a.mobile-ai {}

 
a.email-ai:before {
    content: "\f0e0";
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style, 900);
    margin-right: 7px;
}

a.email-ai {}


p.response-ai:before {
    content: '';
}

a.location-ai:before {
    content: "\f3c5";
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style, 900);
    margin-right: 7px;
}

a.website-ai:before {
    content: "\f0ac";
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style, 900);
    margin-right: 7px;
}

 
a.location-ai {
    text-decoration: none; 
}

 

p.response-ai a {margin: 0px 3px;border-radius: 5px;padding: 0px 7px;background: #eaf4ff;text-decoration: none;border: 1px solid #d6e6f8;display: inline-block;line-height: 24px;!i;!;font-size: 14px;}

   

.header-wrapper {
    position: fixed;
    width: calc(100% - 250px);
    top: 0;
    right: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 0 0 30px #00000012;
    display: flex;
    justify-content: space-between;
    padding: 15px;
}




@media (max-width:767px){
    aside.sidebar {
    display: none;
}

.main-content {
    padding-left: 0;
    padding-bottom: 60px;
}

.mode-selection {
    display: none;
}

.header-wrapper {
    width: 100%;
}

.searchbox-wrapper textarea {
    width: 100%;
    padding-left: 30px;
    padding-right: 60px;
    bottom: 0;
    right: 0;
    border-radius: 15px 15px  0 0;
    border: 0;
    box-shadow: none;
}
    .send-btn{
        
position: fixed;
        
bottom: 10px;
        
top: unset;
        
right: 15px;
    }
	
	.response-wrapper {
    height: auto;
    padding-left: 0;
    padding-right: 0;
}

body {overflow-x: scroll;width: 100%;}

p.response-ai a {
    margin: 0;
}.searchbox-wrapper {
    position: fixed;
    bottom: 0;
    overflow: hidden;
    height: 65px;
    width: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #6a6a6a3b;
}

textarea {
    width: 100%;
    min-height: 50px;
    max-height: 150px;
    resize: none;
    overflow-y: auto;
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    line-height: 1.4;
    background: #fdfdfd;
    color: #333;
    -webkit-overflow-scrolling: touch; /* For smooth scroll on iOS */
}

}
