/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9; /* Background color of the chat app */
    overflow-y: auto; /* Prevent scrolling of body */
}

.header {
    background: linear-gradient(to bottom, #B0E0E6, #70BFB2); /* Gradient background for header */
    padding: 8px;
    text-align: center;
    height: 10%; /* Set header height to 10% of the screen */
}

.header h1 {
    color: #FF4500; /* Sunrise color for title */
    font-size: 1.8em;
}

.read-progress-bar {
    background: linear-gradient(90deg, #006eeb 71.37%, #00d6ec 89.24%, #5dedbf 112.71%);
    position: fixed;
    top: 0;
    overflow: hidden;
    width: 0%;
    height: 3px;
    z-index: 1;
}

.navigator>ul.tabs {
margin:0;
}
.navigator>ul.tabs>li.tab {
list-style: none;
}
.navigator>.tabs>.tab a:link { text-decoration: none; }
.tabs {
    display: flex;
    justify-content: space-around; /* Evenly distribute buttons */
    background: linear-gradient(to bottom, #A8D5BA, #7BAC8D); /* Gradient for tab background */
    padding: 10px 0;
    height: 10%; /* Set tabs height to 20% of the screen */
}

.tab {
    background: none; /* No background */
    border: 1px solid transparent; /* No visible border initially */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer changes on hover */
    font-size: 1.3em;
    padding: 5px; /* Padding around the tab */
    color: white; /* Default text color for inactive tabs */
    transition: background-color 0.3s, border-color 0.3s;
    margin: 5px; /* Add margin to each tab */
}

.tab.active {
    background-color: #E6E6FA; /* Light violet background for active tab */
    color: #FF4500; /* Sunrise color for active tab text */
    border-color: transparent; /* No border when active */
}

.tab:not(.active) {
    background-color: #D2E6D2; /* Softer background for inactive tabs */
    border-color: #FFD700; /* Yellow border for inactive tabs */
}

.main {
    display: flex;
    flex-direction: column;
    height: 80%; /* Remaining height for chat and other sections */
}

#app {
	width: 100%;
}
#voice {
	display: block;
}

.section {
    display: none; /* Hide all sections by default */
    padding: 0; /* Remove padding, handled by child elements */
    width: 98%; /* Ensure full width for the sections */
}

.active-section {
    display: block; /* Show the active section */
    overflow-y: auto;
}

#chat {
    padding: 5px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow scrolling */
}

.timestamp {
    text-align: center;
    font-size: 14px;
    color: #888; /* Color for timestamps */
    margin: 10px 0; /* Space above and below */
}

.my-message, .partner-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; /* Space between messages */
    height: auto; /* Let height adjust naturally */
}
.partner {
    float: left;
    display: flex;
    justify-content: flex-start; /* Partner on the left */
}
.partner-message > .message {
    background-color: #FFE6E6; /* Distinct color for partner messages */
}

.my {
    display: flex;
    flex-direction: row-reverse;
/*  justify-content: flex-end; /* My Ava on the right */
}
.my > .avatar {min-width: 60px;}
.my-message {
    align-items: flex-end; /* Align items at the top */
}
.my-message > .message {
    background-color: #71C4D2; /* Light sea color for My Ava's messages */
}

.avatar {
    width: 50px; /* Decreased width for avatar */
    height: 50px; /* Decreased height for avatar */
    border-radius: 50%; /* Round avatars */
    background-color: #d4d4d4; /* Default color for avatars */
    margin: 0 5px; /* Space between avatar and message content */
    position: relative; /* For visualization of the online indicator */
}

.online {
    position: relative;
    top: -10px;
}

.online::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -2%;
    right: 0;
    height: 100%;
    width: 100%;
    border: 3px solid #FFD700; /* Yellow color for online status */
    border-radius: 50%; /* Keep circle shape */
    animation: pulse 1s infinite; /* Pulsating animation */
    z-index: -1; /* Move the ring behind the avatar */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.partner-avatar {
    /* Placeholder for partner avatar */
    background-image: url('../img/default-partner-avatar.gif'); /* Replace with default image */
    background-size: cover;
}

.my-avatar {
    /* Placeholder for my avatar */
    background-image: url('../img/my-avatar.gif'); /* Replace with default image */
    background-size: cover;
}

.message-content {
    border-radius: 8px;
    padding: 10px;
    max-width: 80%; /* Limit message width */
    overflow-wrap: break-word; /* Allow long messages to wrap */
}

.message-image {
    width: 100%; /* Responsive image within message */
    border-radius: 8px;
}

.note-section {
    border: 2px solid red; /* Red border for the note section */
    padding: 8px 2px;
    margin: 5px 0;
    max-height: 20%; /* Maximum height for note section */
}

.note-title {
    font-weight: bold;
}

.note-content {
    padding: 0 8px;
}
ul.note-content {margin-block-start: 3px; margin-block-end: 5px;}

.input-area {
    display: flex; /* Align items in a row */
    justify-content: center;
    align-items: center;
    padding: 5px;
    background-color: #e0d1ff; /* Pastel purple */
}

.composer-wrapper{
display: inline-flex;
}
.SymbolMenu-main {
  height: calc(var(--symbol-menu-height) - var(--symbol-menu-footer-height));
  max-height: calc(100vh - var(--symbol-menu-footer-height));
}
.Composer .composer-action-buttons-container {
  width: auto;
  position: relative;
}
.Transition {
  position: relative;
  width: 100%;
  height: 100%;
}
.EmojiPicker {
  --emoji-size: 2.25rem;
  --color-primary: var(--color-text);
  height: 100%;
}
.Transition_slide {
  width: 100%;
  height: 100%;
  animation-fill-mode: forwards !important;
}
.symbol-set {
display:none;
  margin-bottom: .75rem;
  position: relative;
//  display: flex;
  flex-direction: column;
}
.symbol-set-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(var(--color-text-secondary-rgb), 0.75);
}
.symbol-set-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}
.symbol-set-container {
  display: grid !important;
  justify-content: space-between;
  grid-template-columns: repeat(auto-fill, var(--emoji-size, 4.5rem));
  row-gap: .25rem;
  column-gap: var(--symbol-set-gap-size, 0.625rem);
  text-align: initial;
}
.opacity-transition {
  opacity: 1;
  transition: opacity .15s ease;
    transition-duration: 0.15s;
}
.symbol-set-container > .EmojiButton, .symbol-set-container > .StickerButton {
  margin: 0;
}
.EmojiButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: .3125rem;
  border-radius: var(--border-radius-messages-small);
  cursor: var(--custom-cursor, pointer);
  font-size: 1.875rem;
  line-height: 2.25rem;
  background-color: rgba(0,0,0,0);
  transition: background-color .15s ease;
}

.SymbolMenu-footer {
  height: var(--symbol-menu-footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -0.5px var(--color-borders-alternate);
  position: relative;
}
.SymbolMenu .bubble:not(.open) {
  transform: scale(0.85) !important;
}
.Menu .bubble.left {
  left: var(--offset-x);
}
.Menu .bubble.bottom {
  bottom: var(--offset-y);
}
.SymbolMenu .bubble {
  --offset-y: 4rem;
  border-radius: 1.25rem;
  width: calc(var(--symbol-menu-width) + var(--scrollbar-width));
  padding: 0;
  overflow: hidden;
  transition-duration: 200ms !important;
}
.AttachMenu--menu {
  position: relative;
  top: -3.5rem;
}
.message-input-wrapper {
  --action-button-size: var(--base-height, 3.5rem);
  --action-button-compact-fix: -1rem;
  display: flex;
}
.message-input-wrapper .composer-action-button:not(.faded):not(.activated) {
  color: var(--color-composer-button);
}
.message-input-wrapper .composer-action-button {
  flex-shrink: 0;
  background: none !important;
  width: var(--action-button-size);
  height: var(--action-button-size);
  margin: 0;
    margin-left: 0px;
  padding: 0;
  align-self: flex-end;
}
#message-input-text .form-control {
  margin-bottom: 0;
  line-height: 1.3125;
  padding: calc((var(--base-height, 3.5rem) - var(--composer-text-size, 1rem)*1.3125)/2) 0;
  white-space: pre-wrap;
  height: auto;
	background-color: #fff;
}
#message-input-text:not(:only-child) .form-control {
  padding: 2px;
}
#message-input-text .form-control, #story-input-text .form-control, #caption-input-text .form-control {
  padding: calc((var(--base-height, 3.5rem) - var(--composer-text-size, 1rem)*1.375)/2) .875rem;
  overflow: hidden;
  height: auto;
  line-height: 1.375;
  font-family: var(--font-family);
  unicode-bidi: plaintext;
  text-align: initial;
  font-size: var(--composer-text-size, 1rem);
  background: rgba(0,0,0,0) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  caret-color: var(--color-text);
}
.form-control[dir] {
  text-align: initial;
}
.allow-selection {
  -webkit-user-select: text;
  user-select: text;
}
.form-control {
  --border-width: 1px;
  display: block;
  width: 100%;
  height: 3rem;
  padding: calc(.75rem - var(--border-width)) calc(1.1875rem - var(--border-width)) .6875rem;
  border: var(--border-width) solid var(--color-borders-input);
  border-radius: var(--border-radius-default);
  color: var(--color-text);
  background-color: var(--color-background);
  outline: none;
  transition: border-color .15s ease;
  word-break: break-word;
  -webkit-appearance: none;
  font-size: 1rem;
  line-height: 1.25rem;
}
.message-input-wrapper .input-scroller {
  --_scroller-right-gap: calc((var(--action-button-size) + var(--action-button-compact-fix) - 0.125rem));
  margin-right: calc(-1*var(--_scroller-right-gap));
  padding-right: var(--_scroller-right-gap);
}
.input-scroller {
background-color: #fdfdfd;
  min-height: 1em;
  max-height: 10em;
  overflow: hidden;
  transition: height 100ms ease;
    transition-duration: 100ms;
}
.custom-scroll, .custom-scroll-x {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0) rgba(0,0,0,0);
  transition: scrollbar-color .3s ease;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}
#editable-message-text {
	min-width: 200px;
	background-color: #eee;
}

.Button.round {
  width: 3.5rem;
  border-radius: 50%;
}
.Button.secondary {
  background-color: var(--color-background);
  color: rgba(var(--color-text-secondary-rgb), 0.75);
  --ripple-color: rgba(0, 0, 0, 0.08);
}
.Button {
  outline: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.5rem;
  border: 0;
  border-radius: var(--border-radius-default);
  background-color: rgba(0,0,0,0);
  background-size: cover;
  padding: .625rem;
  color: #fff;
  line-height: 1.2;
  cursor: var(--custom-cursor, pointer);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: background-color .15s,color .15s;
  text-decoration: none !important;
  text-transform: uppercase;
  --premium-gradient: linear-gradient(88.39deg, #6C93FF -2.56%, #976FFF 51.27%, #DF69D1 107.39%);
}
button, select {
  text-transform: none;
}
button, input {
  overflow: visible;
}
input, button, select, optgroup, textarea {
  margin: 0;
    margin-left: 0px;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
.Button.round .icon {
  font-size: 1.5rem;
}
 .Button.secondary:not(.disabled):not(:disabled):hover {
    background-color: var(--color-primary);
    color: #fff;
  }

.icon {
  font-family: "icons" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon {
  font-family: "icons" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon {
  font-family: "icons" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon {
  font-family: "icons" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.insert-button {
    font-size: 1.2em;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 2px; /* Space between buttons */
    height: 1.3em;
}

.input-area input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-right: 5px; /* Space between input and button */
}

.input-area button {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-area button:hover {
    background-color: #f2b2e1; /* Darker lilac on hover */
}

.message-input {
    flex: 1; /* Take available space */
    overflow-wrap: break-word;
    max-width: 50%;
}
input.message-input {
    font-size: 1.3em;
}
/* Responsive styles */
@media (min-width: 768px) {
    .main {
        flex-direction: row; /* Side by side layout on larger screens */
    }
    
    .tab {
        font-size: 14px; /* Smaller font size for desktop layout */
        padding: 5px 10px; /* Smaller padding for desktop layout */
    }

    .insert-button {
        font-size: 1.2em; /* Smaller buttons on desktop */
        height: 1.5em; /* Smaller height for desktop buttons */
    }
    .message-input {
	min-width: 50%;
	max-width: 75%;
    }

}
