:root {
  --primary-color: #0F699D;
  --accent-color: rgb(217, 237, 247);
}

body {
  font-family: "Lato", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f3f3f3;
  width: 100%;
  height: 99vh;
  overflow: hidden !important;
}
body .wide {
  width: 100%;
}

.btn-info {
  background-color: var(--accent-color) !important;
  color: var(--primary-color);
  font-size: 12px;
  padding: 2px 5px !important;
  margin: 3px;
  border: none;
}
.btn-info i {
  margin-right: 3px;
  font-size: 11px;
}

.btn-info:hover {
  background-color: lightgrey !important;
  color: var(--primary-color) !important;
  border: none;
}

.btn-danger:hover {
  background-color: white !important;
  color: var(--primary-color) !important;
  border: none;
}

.btn-danger {
  background-color: var(--accent-color) !important;
  color: #888888;
  font-size: 12px;
  padding: 2px 5px !important;
  border: none;
  margin: 3px;
}
.btn-danger i {
  margin-right: 3px;
  font-size: 11px;
}

/* Main container for left and right sections */
.main-container {
  display: flex;
  justify-content: space-between;
  background-color: #f5f5f5;
  height: 100vh;
}
.main-container #top {
  top: 0;
  width: 75%;
  height: 100px;
}
.main-container #bottom {
  bottom: 0;
  display: none;
}
.main-container #top,
.main-container #bottom {
  padding: 10px;
  text-align: center;
  position: fixed;
  top: 64px;
  z-index: 1001;
  background-color: var(--accent-color);
  width: 100%;
}
.main-container #left-section {
  width: 30%;
  margin-top: 165px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Enable vertical scrolling */
}
.main-container #left-section #xxinput-wrapper #searchBox {
  color: white;
  background-color: var(--primary-color);
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 0 5px 5px 0;
  margin-right: 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-right: 1px solid white;
  border-radius: 5px 0 0 5px;
}
.main-container #left-section #xxinput-wrapper #searchInput {
  font-size: 16px;
}
.main-container #left-section #xxinput-wrapper #searchReset {
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  padding: 7px;
}
.main-container #left-section #xxinput-wrapper #searchError {
  margin-bottom: 15px;
}
.main-container #left-section #xxinput-wrapper {
  /* Styling the search container */
}
.main-container #left-section #xxinput-wrapper .search-container {
  position: relative;
  width: 100%;
  background: white;
  border-radius: 5px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  /*     border: 2px solid #0F699D; */
}
.main-container #left-section #xxinput-wrapper .search-container .fas {
  color: black;
}
.main-container #left-section #xxinput-wrapper {
  /* Search icon */
}
.main-container #left-section #xxinput-wrapper .search-icon {
  font-size: 16px;
  margin-right: 8px;
  color: gray;
}
.main-container #left-section #xxinput-wrapper {
  /* Search input */
}
.main-container #left-section #xxinput-wrapper #searchInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
}
.main-container #left-section #top {
  text-align: left;
  display: flex;
  align-items: flex-end;
}
.main-container #left-section #top h3 {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.main-container #left-section #bottom {
  border: 3px solid green;
}
.main-container #left-section #summaryListContainer {
  overflow-y: auto;
}
.main-container #left-section #summaryList .ms-first-line .added-time {
  width: 35%;
  font-size: 12px;
  color: #333;
  text-align: right;
  /* Light gray for added time */
}
.main-container #left-section #summaryList .message-preview {
  font-size: 16px;
  color: #333333;
  margin: 0;
  font-weight: 300;
  inline-size: 75%;
  overflow-wrap: break-word;
}
.main-container #left-section #summaryList li:hover {
  background-color: #f0f0f0;
}
.main-container #left-section #summaryList li strong {
  display: block;
  font-weight: bold;
  font-size: 16px;
  color: #2a2e43;
  /* Dark navy color */
  margin-bottom: 5px;
}
.main-container #left-section #summaryList li span .message-bubble {
  padding: 0 10px;
  border-radius: 20px 20px 0px 20px;
  margin: 5px 0;
  width: 75%;
  word-wrap: break-word;
  border: 1px solid #e0e0e0;
}
.main-container #left-section #summaryList li .summary-right {
  width: 25%;
  padding: 5px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}
.main-container #left-section .summary-right div {
  height: 45%;
  font-size: 14px;
}
.main-container #left-section #summaryList li .summary-left {
  /* width:25px; */
  padding: 5px;
  flex: 1;
}
.main-container #left-section .summary-image img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.main-container #left-section .badge {
  background-color: white !important;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 12px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}
.main-container #left-section p {
  margin: 0px;
}
.main-container #left-section .fa-calendar {
  margin-right: 10px;
}
.main-container #right-section {
  margin-top: 165px;
  flex: 1;
  overflow-y: auto;
  /* Enable vertical scrolling */
}
.main-container #right-section #top {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3%;
  width: 70%;
}
.main-container #right-section #top #insideBack {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 3px 0;
}
.main-container #right-section #top #insideBack #backtoMessage {
  display: none;
  width: 15%;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border: none;
}
.main-container #right-section #top #insideBack #contactBack {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  color: black;
  padding: 0 10px;
}
.main-container #right-section #top #insideBack #contactBack #namenumber {
  font-weight: 600;
}
.main-container #right-section #top #insideBack #contactBack #namenumber span {
  color: #444;
  font-weight: 500;
}
.main-container #right-section #top #insideBack #contactBack #displayImages {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid black;
}
.main-container #right-section #top #topsend {
  /*  min-height: 50px; */
}
.main-container #right-section #top #topsend #input-wrapper {
  background-color: white;
  height: 40px;
  /*    border: 1px solid #ccc; */
  border-radius: 5px;
  margin: 10px 0 10px 0;
  display: flex;
  justify-content: space-between;
}
.main-container #right-section #top #topsend #input-wrapper .fa-paperclip {
  color: black;
  margin-top: 10px;
}
.main-container #right-section #top #topsend #input-wrapper #messageInput {
  width: 85%;
  padding: 7px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
}
.main-container #right-section #top #topsend #input-wrapper #sendMessageBtn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 9px 20px;
  cursor: pointer;
}
.main-container #right-section #detailList {
  font-weight: 200;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 100vh;
  max-width: 100%;
  box-sizing: border-box;
}
.main-container #right-section #detailList .message-details {
  padding: 2% 3% height;
}
.main-container #right-section #detailList #messageContent {
  height: calc(100% - 180px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5%;
}
.main-container #right-section #detailList #messageContent .senderF {
  justify-content: end;
}
.main-container #right-section #detailList #messageContent .receiverF {
  justify-content: start;
}
.main-container #right-section #detailList #messageContent .receiverF #received {
  display: none;
}
.main-container #right-section #detailList #messageContent #teamName {
  color: #888888;
  text-align: right;
  font-size: 12px;
  margin-bottom: -10px;
}
.main-container #right-section #detailList #messageContent #fullMessage {
  display: flex;
  align-items: center;
  margin: 10px 0;
}
.main-container #right-section #detailList #messageContent #fullMessage #leftside {
  font-size: 10px;
  color: #858080;
  padding-left: 10px;
  opacity: 0;
}
.main-container #right-section #detailList #messageContent #fullMessage #rightside {
  text-align: right;
  color: #858080;
  padding-right: 10px;
}
.main-container #right-section #detailList #messageContent #fullMessage #rightside #timetip {
  font-size: 10px;
  opacity: 0;
}
.main-container #right-section #detailList #messageContent #fullMessage #rightsideError {
  text-align: left;
}
.main-container #right-section #detailList #messageContent #fullMessage:hover #leftside {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
.main-container #right-section #detailList #messageContent #fullMessage:hover #rightside #timetip {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
.main-container #right-section #detailList #messageContent #fullMessage .sender {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
  text-align: left;
  font-weight: 300;
  border-radius: 18px;
}
.main-container #right-section #detailList #messageContent #fullMessage .receiver {
  background-color: lightgrey;
  color: black;
  align-self: flex-start;
  font-weight: 300;
  text-align: left;
  justify-content: start;
  border-radius: 18px;
}
.main-container #right-section #detailList #messageContent #fullMessage .receiver #detailUrl {
  color: var(--primary-color);
  /* Light Blue */
  text-decoration: underline;
}
.main-container #right-section #detailList #messageContent #fullMessage .receiver #detailUrl:hover {
  color: #FFFFFF;
  /* White on hover */
}
.main-container #right-section #detailList .tooltip {
  display: block;
  position: absolute;
  width: 50%;
  bottom: 0;
  right: 0;
  background-color: white;
  text-align: right;
  font-size: 12px;
}
.main-container #right-section #detailList .message-bubble {
  padding: 0 4px;
  margin: 5px 0;
  max-width: 60%;
  min-width: 100px;
  word-wrap: break-word;
  position: relative;
  /* Ensure the tooltip is positioned relative to the bubble */
  display: inline-block;
}
.main-container #right-section #detailList .bubble-bottom-right:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 12px solid lightgrey;
  border-right: 6px solid transparent;
  border-top: 6px solid lightgrey;
  border-bottom: 10px solid transparent;
  left: 10px;
  bottom: -11px;
}
.main-container #right-section #detailList .bubble-bottom-left:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-right: 12px solid var(--primary-color);
  border-left: 6px solid transparent;
  border-top: 6px solid var(--primary-color);
  border-bottom: 10px solid transparent;
  right: 8px;
  bottom: -11px;
}
.main-container #right-section #detailList {
  /* CSS for the tooltip */
}
.main-container #right-section #detailList .message-bubble .tooltip {
  visibility: hidden;
  /* Hide the tooltip by default */
  width: 100px;
  /* Set the width of the tooltip */
  height: 15px;
  /* Set the height of the tooltip */
  background-color: #555;
  /* Background color of the tooltip */
  color: #fff;
  /* Text color of the tooltip */
  text-align: center;
  /* Center the text */
  border-radius: 5px;
  /* Rounded corners */
  padding: 5px 0;
  /* Padding inside the tooltip */
  position: absolute;
  /* Position the tooltip absolutely */
  z-index: 1;
  /* Ensure the tooltip is above other elements */
  bottom: 80%;
  /* Position the tooltip above the bubble */
  left: 75%;
  /* Center the tooltip horizontally */
  margin-left: -50px;
  /* Adjust the horizontal position */
  opacity: 0;
  /* Make the tooltip invisible */
  transition: opacity 0.3s;
  /* Smooth transition for visibility */
}
.main-container #right-section #detailList {
  /* CSS for the tooltip arrow */
}
.main-container #right-section #detailList .message-bubble .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  /* Position the arrow at the bottom of the tooltip */
  right: 50%;
  /* Center the arrow horizontally */
  margin-left: -5px;
  /* Adjust the horizontal position */
  border-width: 5px;
  /* Size of the arrow */
  border-style: solid;
  border-color: #555 transparent transparent transparent;
  /* Arrow color */
}
.main-container #right-section #detailList {
  /* Show the tooltip when hovering over the message bubble */
}
.main-container #right-section #detailList .message-bubble:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
.main-container #right-section #detailList #messageContent > #sender > p > a {
  color: darkgrey !important;
}

.inside-container {
  display: flex;
}

.message-summary {
  width: 44%;
  /* Summary takes up 30% of the width */
  border-right: 1px solid #e0e0e0;
  background-color: #f3f3f3;
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 20px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 44%;
  -webkit-overflow-scrolling: touch;
  /* Ensures smooth scrolling */
}

#uphone,
#lastUpdated {
  font-size: 10px;
  color: #666;
  margin-bottom: 10px;
  text-align: right;
}

#summaryList {
  list-style-type: none;
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

#summaryList .ms-first-line p {
  line-height: 0px;
}
#summaryList .ms-first-line .ms-from-number {
  margin: 0 0 5px 0;
  font-weight: 500;
  font-size: 16px;
  color: black;
  flex: 1;
  line-height: 1.5;
}

.timestamp {
  font-size: 12px;
  margin: 20px 0 20px;
  display: block;
  text-align: center;
}

.receiver .timestamp {
  padding: 5px;
}

#ms-unread {
  margin: 0 95%;
  height: 20px;
  width: 20px;
}

#count {
  position: relative;
  right: 5px;
  border: 2px solid var(--primary-color);
  width: 100%;
  text-align: center;
  background-color: white;
  border-radius: 50%;
  color: #0f699d;
}

#detailHeader {
  border-bottom: 1px solid #e0e0e0;
}

#left-details {
  width: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
  width: 100%;
}

.message-header {
  margin: 0 0 0 10px;
}

h4 {
  color: #0f699d;
  font-weight: 300;
  font-size: 13px;
  line-height: 0.3em;
}

.message-input {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
  font-size: 16px;
}

.inside-container {
  display: flex;
}

.message-summary {
  width: 44%;
  /* Summary takes up 30% of the width */
  border-right: 1px solid #e0e0e0;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 20px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 44%;
  -webkit-overflow-scrolling: touch;
  /* Ensures smooth scrolling */
}

#bottom {
  background-color: var(--primary-color);
  bottom: 0px;
  width: 100%;
  color: white;
  text-align: center;
  z-index: 1;
}

#bottom #greyspace {
  background-color: #f5f5f5;
}

#bottom #input-wrapper {
  background-color: white;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin: 2%;
  display: flex;
  justify-content: space-between;
}

#bottom #input-wrapper #messageInput {
  width: 85%;
  padding: 7px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
}

#bottom #input-wrapper #sendMessageBtn {
  background-color: #0f699d;
  color: white;
  border: none;
  padding: 9px 20px;
  cursor: pointer;
}

#bottom #input-wrapper #sendMessageBtn i {
  color: black;
  font-size: 16px;
}

#paperclip {
  padding-right: 15px;
}

#mobilepaperclip {
  color: #0f699d;
  font-size: 12px;
}


#thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thumbnail {
  position: relative;
  width: 50px;
  height: 50px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail button {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
}

#nameComp {
  font-size: 12px;
}

#namePhone {
  font-size: 14px;
}

#detailUrl {
  color: #ADD8E6;
  /* Light Blue */
  text-decoration: underline;
}
#detailUrl:hover {
  color: #FFFFFF;
  /* White on hover */
}

#backarea {
  border: 2px solid green;
}

#socket {
  font-size: 10px;
}

#info-section {
  position: fixed;
  width: 100%;
  top: 0px;
  z-index: 1000;
  background-color: white;
  margin-bottom: 20px;
}
#info-section a {
  font-size: 16px;
  font-weight: 600px;
}
#info-section #team {
  font-size: 12px;
}
#info-section #notification-section {
  background-color: var(--accent-color);
  padding: 0 0 0 10px;
  border-radius: 13px;
  margin-bottom: 10px;
  font-size: 16px;
}
#info-section #notification-section #enableNote {
  background-color: transparent;
  color: var(--primary-color);
  border: none;
  padding: 4px 10px;
  border-radius: 20px;
}
#info-section #notification-section #enableNote:hover {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
}
#info-section #notification-section #phone-tabs {
  position: fixed;
  top: 40px;
  width: 100%;
  z-index: 1000;
}
#info-section #notification-section #phone-tabs .tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
}
#info-section #notification-section #phone-tabs {
  /*
    .tab {

      padding: 10px 20px;
      cursor: pointer;
      border: 1px solid $border-color;
      border-bottom: none;
      margin-right: 5px;
      background-color: $tab-bg;
      position: relative;
      display: flex;
      align-items: center;

      &.active {
        background-color: $active-bg;
        font-weight: bold;
      }


    }
  */
}

#special {
  background-color: lightblue;
  padding: 10px 0;
}

@keyframes blinkingText {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
#notified {
  font-size: 10px;
}

/* Search Container */
/* Clear button */
#clear-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: gray;
  cursor: pointer;
  pointer-events: auto;
  /* Ensure it is clickable */
}

#summaryList .dmessage-container {
  border: 1px solid white;
}
#summaryList .card {
  border-radius: 13px;
}
#summaryList .card #company-tag {
  color: #333;
}
#summaryList .card #name-tag {
  font-size: 16px;
}

/* New Message box with Delete */
.message-summary {
  width: 100% !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.dmessage-container #message-inside {
  display: flex !important;
  justify-content: space-around;
  width: 100% !important;
}

#summaryList li .summary-left {
  flex: 1;
}

/* Message container */
.dmessage-container {
  margin: 10px auto;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out;
}
.dmessage-container i {
  color: #888888;
}
.dmessage-container i:hover {
  color: var(--primary-color);
}

#message-inside {
  background-color: white;
  display: flex;
  padding: 5px;
}

.dmessage-content {
  width: 100%;
  padding: 15px;
  margin: 15px 0 15px 15px;
  text-align: left;
  transition: margin-left 0.3s ease-in-out;
  display: flex;
}
.dmessage-content .active {
  border: 3px solid green;
}
.dmessage-content .active .card-body {
  background-color: var(--accent-color) !important;
}

/* Delete button (hidden initially) */
.delete-button {
  width: 80px;
  height: 100%;
  background: red;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -80px;
  top: 0;
  bottom: 0;
  transition: right 0.3s ease-in-out;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
}

/* When delete button is revealed */
.dmessage-container.show-delete .message-content {
  margin-left: -80px;
}

.dmessage-container.show-delete .delete-button {
  right: 0;
}

.dmessage-content #message_content {
  display: flex !important;
  border: 5px solid green;
}

/* Message container */
.cmessage-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 5px auto;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out;
  /* Message content */
}
.cmessage-container .cmessage-content {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  transition: margin-left 0.3s ease-in-out;
  cursor: pointer;
}
.cmessage-container .cmessage-content p {
  margin: 5px;
}
.cmessage-container .cmessage-content #smsImage {
  border: 4px solid purple;
}
.cmessage-container .cmessage-content #smsImage img {
  width: 250px;
}

/* Delete button (hidden initially) */
.cdelete-button {
  width: 80px;
  height: 100%;
  background: red;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -80px;
  top: 0;
  bottom: 0;
  transition: right 0.3s ease-in-out;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
}

/* When delete button is revealed */
.cmessage-container.cshow-delete .cmessage-content {
  margin-left: 0px;
}

.cmessage-container.cshow-delete .cdelete-button {
  right: 0;
}

@media screen and (max-width: 768px) {
  .message-bubble {
    border-radius: 20px;
  }
  .cmessage-container {
    font-size: 18px;
    font-weight: 400;
  }
}
/* Show clear button when typing */
#searchInput:focus ~ .clear-icon {
  display: inline;
}

/* Search box focus style */
#searchInput:focus {
  outline: none;
}

.activeHighlight {
  background-color: var(--accent-color) !important;
  color: black;
}

#context-menu,
#context-menu2 {
  display: none;
  position: absolute;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
}

#context-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#context-menu ul li {
  padding: 5px 10px;
  cursor: pointer;
}

#context-menu ul li:hover {
  background-color: #ddd;
}

/* Top static section */
.top-bar {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: start;
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.top-bar #left-bar {
  width: 35%;
  background-color: yellow;
  text-align: left;
  padding-left: 10px;
}
.top-bar #left-bar #top {
  position: fixed;
}
.top-bar #right-bar {
  flex: 1;
  border: rgb(149, 24, 120);
}
.top-bar #right-bar #top {
  width: 100%;
  background-color: #f5f5f5;
  color: #0f699d;
  font-weight: 300;
  padding: 1%;
  text-align: left;
  width: 100%;
}
.top-bar #right-bar #top #gotonumber {
  display: flex;
  font-weight: 600;
  justify-content: space-between;
  align-items: center;
  border: 2px solid pink;
}

.added-time {
  font-size: 12px;
}

#search-section {
  width: 29%;
}

/* Left-hand side */
.left-section {
  width: 35%;
  height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  /* Allow vertical scrolling */
  padding: 10px;
}

/* Add content spacing */
.content {
  padding: 10px;
}

#lastone {
  background-color: green;
}

.mobile-dropdown {
  display: none;
}

.badge {
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 10px;
  margin-left: 10px;
}

.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
}
.tab-content.active {
  display: block;
}

/* Modal */
#note-text {
  word-wrap: break;
}

.greenCalendar {
  background-color: lightgreen;
  border: 1px solid green;
  padding: 5px;
  border-radius: 5px;
}

.orangeCalendar {
  color: orange;
  border: 1px solid orange;
  padding: 5px;
  border-radius: 5px;
}

.nav-link {
  background-color: lightgray;
  color: black;
  margin-right: 5px;
  transition: all 0.3s ease;
  border-radius: 13px 13px 0 0 !important;
  opacity: 0.5;
}
.nav-link:hover {
  color: var(--primary-color);
  opacity: 1;
}
.nav-link.active {
  color: black;
  border-color: var(--primary-color) !important;
  background-color: var(--accent-color) !important;
  opacity: 1;
}

.badge {
  border: 1px solid white;
  background-color: white !important;
  color: var(--primary-color);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 50%;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

#paperclipCol {
  display: flex;
  align-items: center;
}

#appoint {
  display: block;
  padding: 0;
}
#appoint button {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: white;
  padding: 2px 15px;
  border-radius: 13px;
}

#mycheck {
  margin-left: 20px !important;
}

#displaynotes {
  margin: 0;
  padding: 0 15px;
  text-align: left;
}
#displaynotes li {
  margin-bottom: 5px;
}

.custom-context-menu {
  display: block;
  position: absolute;
  z-index: 1019;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 10px rgba(31, 31, 31, 0.4);
  padding: 10px;
  border-radius: 13px;
  margin-top: 25px;
}

.custom-context-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-context-menu ul li {
  padding: 5px 10px;
  cursor: pointer;
}

.custom-context-menu ul li:hover {
  background-color: #eee;
}

#shortheader {
  background-color: var(--primary-color);
  color: white;
  border-radius: 13px;
  text-align: center;
  padding: 1px;
  font-size: 14px;
  margin-top: 10px;
}

#short-links hr {
  border-color: var(--primary-color);
}

#planinfo {
  font-size: 12px;
  color: navy;
}

#noinfo {
  color: red;
  font-size: 14px;
}

#noCredits {
  background-color: white;
  color: red;
  border-radius: 5px;
  padding: 7px;
  margin-bottom: 12px;
}
#noCredits a {
  color: var(--primary-color);
}

/* Custom styles extending Bootstrap */
h2 {
  color: #0f699d;
}

.form-label {
  font-weight: 600;
  color: #12132b;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-color);
}

textarea {
  resize: none;
  height: 100px;
}

#filechar {
  display: flex;
  gap: 20px;
  font-size: 12px;
  margin-top: 5px;
}
#filechar #fileName {
  font-style: italic;
}
#filechar #charCount {
  text-align: right;
  display: block;
}

#progress-container {
  width: 100%;
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 20px;
  background-color: #4caf50;
  text-align: center;
  line-height: 20px;
  color: white;
  border-radius: 5px;
}

/*   Template dropdown box  */
.custom-context-menu {
  display: none;
  position: absolute;
  z-index: 1001;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 5px;
}

.custom-context-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-context-menu ul li {
  padding: 5px 10px;
  cursor: pointer;
}

.custom-context-menu ul li:hover {
  background-color: #eee;
}

.modal-content {
  border-radius: 13px;
}

/* Contact Modals */
.modal-body form {
  border: none;
}

.form-check {
  font-weight: bold;
  padding-left: 0;
  margin-bottom: 20px;
}

/*
.form-check-input {
    margin-left: 1em;
}
    */
label,
.form-check label {
  font-weight: bold;
}

/* Sweet Alerts */
.swal2-confirm.swal2-styled {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* Lists */
#listChoices {
  border: 1px solid var(--primary-color);
  border-radius: 13px;
}

.list-item {
  display: inline-block;
  padding: 0.5em 1em;
  margin: 0.2em;
  background-color: var(--primary-color);
  color: white;
  border-radius: 6px;
  position: relative;
  font-size: 12px;
}

.list-item .remove-item {
  margin-left: 0.5em;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* Custom CSS to position the modal on the right 50% of the page */
.modal-dialog-right {
  position: fixed;
  top: 10%;
  left: 40%;
  transform: translateY(-50%);
  width: 60%;
  /* Adjust the width as needed */
  margin: 0;
}

.modal-body i {
  color: #888;
  font-size: 14px;
  padding-right: 10px;
}

.contact-modal {
  font-family: Arial, sans-serif;
  padding: 20px;
}

.contact-modal h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.contact-modal .section-title {
  font-size: 16px;
  font-weight: bold;
  color: #555;
  margin-top: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.contact-modal .contact-details div {
  margin-bottom: 8px;
}

.contact-modal .contact-details div i {
  margin-right: 8px;
  color: var(--primary-color);
}

.contact-modal .contact-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-modal .contact-email {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-modal .contact-email:hover {
  text-decoration: underline;
}

.contact-modal .contact-phone {
  font-weight: bold;
}

.contact-modal .muted-text {
  color: #666;
  font-style: italic;
}

.contact-modal .notes {
  margin-top: 15px;
}

.contact-modal .divider {
  border-top: 1px solid #ddd;
  margin: 10px 0;
}

#contactInfoModalLabel {
  width: 100%;
}

#namesection {
  width: 100%;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 10px;
}

#namesection #inside-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

#contactId,
#previous-notes {
  display: none;
}

#shareContact {
  margin-left: 1rem !important;
}

/* Modal Close Button Fixes */
#createContactModal .modal-content,
#contactInfoModal .modal-content {
  min-width: 600px;
}

/* Modal Close Button Fixes */
#createContactModal .modal-header .close,
#contactInfoModal .modal-header .close {
  color: white !important;
  opacity: 1 !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

#createContactModal .modal-header .close:hover,
#contactInfoModal .modal-header .close:hover {
  color: #ffffff !important;
  opacity: 0.8 !important;
}

#createContactModal .modal-header .btn-close,
#contactInfoModal .modal-header .btn-close {
  filter: invert(1) !important;
  opacity: 1 !important;
  border: none !important;
}

#createContactModal .modal-header .btn-close:hover,
#contactInfoModal .modal-header .btn-close:hover {
  opacity: 0.8 !important;
}

/* Ensure modal header has the right background */
#createContactModal .modal-header,
#contactInfoModal .modal-header {
  background-color: var(--primary-color) !important;
  border: none !important;
  color: white !important;
}

.tab-ellipsis {
  z-index: 100;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}
.tab-ellipsis:hover {
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.tab-content-area {
  pointer-events: auto;
}

.nav-link {
  z-index: 9;
  position: relative;
}

.tab-options-menu {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.tab-options-menu .tab-option {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.tab-options-menu .tab-option:hover {
  background-color: #f5f5f5;
}
.tab-options-menu .tab-option:last-child {
  border-bottom: none;
}

.dulldown {
  filter: opacity(0.5) !important;
  filter: grayscale(50%);
}

#playButton {
  border: none !important;
  background-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}

/* Custom Styling to match screenshot */
.modal-header {
  background-color: #e3707b; /* The pinkish-red header */
  color: white;
  border-bottom: none;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

.contact-avatar {
  width: 70px;
  height: 70px;
  background-color: #dee2e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.favorite-star {
  color: #ffc107;
}

.owner-info {
  font-size: 0.85rem;
  color: #333;
}

.section-title {
  font-weight: bold;
  color: #444;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 5px;
  margin-top: 1.5rem;
}

.contact-detail-row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-icon {
  width: 30px;
  color: #e3707b;
  text-align: center;
  margin-right: 15px;
}

.empty-state {
  color: #6c757d;
  padding: 10px 0;
}

.btn-edit {
  background-color: #e3707b;
  color: white;
  border: none;
  padding: 5px 20px;
}

.btn-edit:hover {
  background-color: #d15f6a;
  color: white;
}

/* --- BOOTSTRAP TAB RESET --- */
#contactInfoModal {
  overflow-y: auto !important;
}
#contactInfoModal .modal-content {
  display: flex !important;
  flex-direction: column;
}
#contactInfoModal .tab-content {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #fff;
}
#contactInfoModal .tab-content .tab-pane {
  display: none !important;
  visibility: hidden;
}
#contactInfoModal .tab-content .tab-pane.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#contactInfoModal .tab-content .tab-pane.fade {
  transition: opacity 0.15s linear;
}
#contactInfoModal .tab-content .tab-pane.show {
  opacity: 1 !important;
}
#contactInfoModal .nav-tabs .nav-link {
  cursor: pointer !important;
  pointer-events: auto !important;
}
#contactInfoModal .nav-tabs .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: bold !important;
  border-bottom: 3px solid var(--primary-color) !important;
  background-color: #fff !important;
}

/* Fix for nested modal-body if that occurs */
.modal-body .modal-body {
  padding: 0 !important;
}

.tab-row-fixed {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

#filterMultiSelect {
  min-width: 200px;
  max-width: 300px;
  height: 40px;
  margin-right: 10px;
  background: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-size: 16px;
  color: var(--primary-color);
}

#filterMultiSelect:focus {
  outline: 2px solid var(--accent-color);
}

#filterMultiSelect option {
  padding: 5px;
  font-size: 15px;
}

#filterDropdown option {
  margin: 10px 0;
}

.custom-dropdown {
  position: relative;
  width: 200px;
  user-select: none;
}

.dropdown-selected {
  border: 1px solid #ccc;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-caret {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}

.dropdown-selected.open .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-list {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
}

.dropdown-item.selected {
  background: var(--primary-color);
  border: 3px solid white;
  color: black;
  border-radius: 20px;
}

.dropdown-item:hover {
  background: #f0f0f0;
}

/*# sourceMappingURL=smsMessaging.css.map */
