@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap);
@import './dwimwidget.css';

.preference-editor-overlay {
  align-items: center;
  background: #00000080;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1100;
}

.preference-editor {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px #00000026;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-width: 90vw;
  width: 900px;
}

.editor-header {
  align-items: center;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.editor-header h3 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.add-item-button {
  background: #2196f3;
  border: 1px solid #2196f3;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  padding: 8px 16px;
  transition: all .2s ease;
}

.add-item-button:hover {
  background: #1976d2;
  border-color: #1976d2;
}

.editor-content {
  flex: 1 1;
  overflow-y: auto;
  padding: 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  border-bottom: 2px solid #eee;
  color: #666;
  font-size: .9rem;
  font-weight: 500;
  padding: 12px;
  text-align: left;
}

td {
  border-bottom: 1px solid #eee;
  padding: 8px 12px;
}

input[type=text] {
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: .9rem;
  padding: 6px 8px;
  width: 100%;
}

input[type=text]:focus {
  border-color: #2196f3;
  box-shadow: 0 0 0 2px #2196f31a;
  outline: none;
}

input[type=checkbox] {
  cursor: pointer;
  height: 16px;
  width: 16px;
}

.move-buttons {
  display: flex;
  gap: 4px;
}

.move-buttons button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #666;
  cursor: pointer;
  font-size: .8rem;
  padding: 2px 6px;
}

.move-buttons button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.delete-button {
  background: none;
  border: none;
  border-radius: 3px;
  color: #f44336;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 2px 8px;
}

.delete-button:hover {
  background: #ffebee;
}

.editor-footer {
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px;
}

.cancel-button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
}

.cancel-button, .save-button {
  cursor: pointer;
  font-size: .9rem;
  padding: 8px 16px;
}

.save-button {
  background: #4caf50;
  border: 1px solid #4caf50;
  border-radius: 4px;
  color: #fff;
}

.save-button:hover {
  background: #43a047;
  border-color: #43a047;
}

.prompt-widget {
  position: relative;
  width: 100%;
}

.prompt-button {
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  display: flex;
  font-size: .9rem;
  justify-content: space-between;
  padding: 8px 12px;
  transition: all .2s ease;
  width: 100%;
}

.prompt-button:hover {
  background: #f9f9f9;
  border-color: #bbb;
}

.prompt-button.open {
  border-color: #2196f3;
  box-shadow: 0 0 0 2px #2196f31a;
}

.arrow {
  color: #666;
  font-size: .8rem;
  transition: transform .2s ease;
}

.prompt-button.open .arrow {
  transform: rotate(180deg);
}

.prompt-menu {
  animation: slideDown .2s ease;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px #0000001a;
  left: 0;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: .9rem;
  padding: 8px 12px;
  text-align: left;
  transition: background .2s ease;
  width: 100%;
}

.menu-item:hover {
  background: #f5f5f5;
}

.menu-item.selected {
  background: #e3f2fd;
  color: #1976d2;
}

.prompt-menu::-webkit-scrollbar {
  width: 8px;
}

.prompt-menu::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.prompt-menu::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.prompt-menu::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

.preference-group {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px #0000001a;
  margin-bottom: 24px;
  padding: 20px;
}

.preference-group-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.preference-group-header h3 {
  color: #333;
  font-size: 1.2rem;
  margin: 0;
}

.preference-group-actions {
  display: flex;
  gap: 8px;
}

.preference-group-actions button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  font-size: .9rem;
  padding: 6px 12px;
  transition: all .2s ease;
}

.edit-button:hover {
  background: #f0f0f0;
  border-color: #ccc;
  color: #333;
}

.reset-button {
  border-color: #ffcdd2;
  color: #d32f2f;
}

.reset-button:hover {
  background: #ffebee;
  border-color: #ef9a9a;
}

.preference-menus {
  grid-gap: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.preference-menus.tone-indicators {
  margin: 0 auto;
  max-width: 800px;
}

.preference-menus.tone-indicators .preference-menu {
  margin-bottom: 16px;
}

.preference-menus.tone-indicators .left-column,
.preference-menus.tone-indicators .right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preference-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preference-menu label {
  color: #666;
  font-size: .9rem;
  font-weight: 500;
}

.preference-editor {
  animation: fadeIn .2s ease-out;
}

.preferences-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px #00000026;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-width: 90vw;
  position: relative;
  width: 900px;
}

.preferences-header {
  align-items: center;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
}

.preferences-header h2 {
  color: #333;
  font-size: 1.5rem;
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  font-size: 24px;
  padding: 4px 8px;
}

.close-button:hover {
  background: #f5f5f5;
  color: #333;
}

.preferences-tabs {
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 4px;
  padding: 0 24px;
}

.tab-button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: .9rem;
  padding: 12px 20px;
  position: relative;
  transition: all .2s ease;
}

.tab-button:hover {
  color: #333;
}

.tab-button.active {
  color: #2196f3;
  font-weight: 500;
}

.tab-button.active:after {
  background: #2196f3;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.preferences-content {
  flex: 1 1;
  overflow-y: auto;
  padding: 24px;
}

.preferences-footer {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 16px 24px;
}

.preferences-note {
  color: #666;
  font-size: .9rem;
  font-style: italic;
  margin: 0;
}

.quick-presets {
  grid-gap: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 16px 0;
}

.quick-description {
  color: #666;
  grid-column: 1/-1;
  margin: 0 0 16px;
}

.preset-button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  padding: 16px;
  text-align: left;
  transition: all .2s ease;
}

.preset-button:hover {
  border-color: #2196f3;
  box-shadow: 0 2px 8px #2196f31a;
}

.preset-header {
  margin-bottom: 8px;
}

.preset-label {
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
}

.preset-description {
  color: #666;
  font-size: .9rem;
  line-height: 1.4;
  margin: 0;
}

.preferences-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preferences-panel {
  animation: slideIn .2s ease-out;
}

.user-popup-menu {
  display: inline-block;
  position: relative;
  z-index: 100;
}

.burger-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  height: 16px;
  justify-content: space-between;
  width: 20px;
}

.burger-icon span {
  background-color: #333;
  display: block;
  height: 2px;
  transition: all .3s ease;
}

.menu-items {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px #0000001a;
  list-style: none;
  margin: 4px 0;
  min-width: 150px;
  padding: 8px 0;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 101;
}

.menu-items li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-items button {
  align-items: center;
  background: none;
  border: none;
  color: #000000de;
  cursor: pointer;
  display: flex;
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 12px 24px;
  text-align: left;
  transition: background-color .2s ease;
  width: 100%;
}

.menu-items button:hover {
  background-color: #00000029;
}

.menu-items button:focus {
  background-color: #0000003d;
}

.menu-items button:active {
  background-color: #00000052;
}

.preferences-overlay {
  align-items: center;
  animation: fadeIn .2s ease;
  background: #00000080;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1100;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.navbar {
  background-color: #1976d2;
  box-shadow: 0 2px 4px -1px #0003, 0 4px 5px 0 #00000024, 0 1px 10px 0 #0000001f;
  font-family: Roboto, sans-serif;
  height: 64px;
  justify-content: space-between;
  left: 0;
  padding: 0 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.nav-section, .navbar {
  align-items: center;
  display: flex;
}

.nav-section {
  gap: 24px;
  height: 100%;
}

.logo {
  font-size: 20px;
  letter-spacing: .15px;
}

.logo, .nav-item {
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-item {
  font-size: 16px;
  letter-spacing: .1px;
  margin: 0 12px;
  padding: 8px 0;
  position: relative;
}

.clickable {
  color: #fff;
  cursor: pointer;
  transition: opacity .2s ease;
}

.nav-section a {
  text-decoration: none;
}

.clickable:hover {
  opacity: .87;
}

.current {
  color: #000;
  cursor: default;
}

.current:after {
  background-color: #000;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}

.user-section {
  align-items: center;
  display: flex;
  height: 100%;
}

.user-handle {
  color: #ffffffde;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1px;
  margin-right: 16px;
}

.login-dialog {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 5px 15px #0000004d;
  margin: 80px auto;
  padding: 25px;
  width: 350px;
}

.login-dialog h2 {
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 25px;
  text-align: center;
}

.login-dialog form {
  display: flex;
  flex-direction: column;
}

/* Form row styling for the login form */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-row label {
  width: 100px;
  text-align: right;
  margin-right: 15px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.form-row input {
  width: 180px;
  margin-bottom: 0;
}

.login-dialog label {
  font-weight: 700;
}

.login-dialog input {
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  padding: 10px;
}

.login-dialog .error {
  color: red;
  margin-bottom: 15px;
  text-align: center;
}

.login-dialog .links {
  display: flex;
  justify-content: space-between;
}

.login-dialog button {
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 10px;
  transition: background-color .3s ease;
}

.login-dialog button:hover {
  background-color: #0056b3;
}

.login-dialog .links button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
}

.login-dialog .links button:hover {
  color: #0056b3;
}

.register-page {
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 5px 15px #0000004d;
  margin: 80px auto;
  padding: 25px;
  width: 400px;
}

.register-page h2 {
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 25px;
  text-align: center;
}

.register-page form {
  display: flex;
  flex-direction: column;
}

.register-page label {
  font-weight: 700;
  margin-bottom: 8px;
}

.register-page input, .register-page textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 20px;
  padding: 10px;
}

.register-page .error {
  color: red;
  margin-bottom: 15px;
  text-align: center;
}

.register-page button {
  background-color: #28a745;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 12px;
  transition: background-color .3s ease;
}

.register-page button:hover {
  background-color: #218838;
}

.DWIMButton_dwimContainer__d\+ZnR {
  background: #fff;
  display: flex;
  flex: none;
  justify-content: center;
  padding: 16px;
}

.DWIMButton_dwimWidget__wksr- {
  background-color: #fff;
  border: 6px solid #424242;
  display: flex;
  max-width: 1200px;
  padding: 8px;
  width: 100%;
}

.DWIMButton_dwimInput__g\+9Z1 {
  border: 1px solid #ccc;
  flex-grow: 1;
  font-family: monospace;
  margin: 8px;
  padding: 8px;
  resize: none;
}

.DWIMButton_dwimButton__0BtLB {
  background-color: #1976d2;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  margin: 8px;
  padding: 0 16px;
  text-transform: uppercase;
}

.DWIMButton_dwimButton__0BtLB:hover {
  background-color: #1565c0;
}

.DWIMButton_noticeContainer__K-2pw {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: 64px;
  transform: translateX(-50%);
  z-index: 1000;
}

.DWIMButton_noticeMessage__ayI6g {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 5px -1px #0003, 0 6px 10px 0 #00000024, 0 1px 18px 0 #0000001f;
  color: #000000de;
  cursor: pointer;
  margin: 8px 0;
  max-width: 600px;
  min-width: 300px;
  padding: 16px 24px;
  pointer-events: auto;
  transition: transform .2s ease-out;
}

.DWIMButton_noticeMessage__ayI6g:hover {
  transform: scale(1.02);
}

.home-container {
  display: flex;
  flex-direction: column;
  font-family: Roboto, sans-serif;
  height: 100vh;
  width: 100%;
}

.messages-area {
  background: #f5f5f5;
}

:global(.dwim-container) {
  background: #fff;
  display: flex;
  flex: none;
  justify-content: center;
  padding: 8px 5px;
}

:global(.dwim-widget) {
  background-color: #fff;
  border: 2px solid #424242;
  display: flex;
  max-width: 1200px;
  padding: 2px;
  width: 100%;
  height: 2.2em; /* Compact height */
}

:global(.dwim-input) {
  background: #fff;
  border: 1px solid #ccc;
  color: #000000de;
  flex-grow: 1;
  font-family: monospace;
  font-size: 0.9em;
  margin: 0;
  padding: 2px 4px;
  height: 100%;
}

:global(.dwim-input:focus) {
  border-color: #1976d2;
  outline: none;
}

:global(.dwim-input:disabled) {
  background: #fafafa;
  border-color: #eee;
  color: #00000061;
}

:global(.dwim-button) {
  background-color: #1976d2;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
  min-width: 60px;
  padding: 2px 8px;
  text-transform: uppercase;
  transition: background-color .2s;
  height: 100%;
  font-size: 0.9em;
}

:global(.dwim-button:hover) {
  background-color: #1565c0;
}

:global(.dwim-button:disabled) {
  background-color: #0000001f;
  color: #00000061;
  cursor: default;
}

:global(.notice-container) {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: 64px;
  transform: translateX(-50%);
  z-index: 1000;
}

:global(.notice-message) {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 5px -1px #0003, 0 6px 10px 0 #00000024, 0 1px 18px 0 #0000001f;
  color: #000000de;
  cursor: pointer;
  margin: 8px 0;
  max-width: 600px;
  min-width: 300px;
  padding: 16px 24px;
  pointer-events: auto;
  transition: transform .2s ease-out;
}

:global(.notice-message:hover) {
  transform: scale(1.02);
}

.playlist-page {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
}

.playlist-page h2 {
  color: #333;
  margin-bottom: 20px;
}

.playlist-page :global(.dwim-widget) {
  border-radius: 8px;
  box-shadow: 0 2px 4px #0000001a;
  box-sizing: border-box;
  margin: 20px auto;
  max-width: 800px;
  padding: 20px;
  width: 100%;
}

.playlist-page :global(.dwim-input) {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  padding: 12px;
  width: 100%;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.bubble-window, body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.bubble-window {
  width: 100%;
}

.messages-area {
  background: #fff;
  flex: 1 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
  scroll-behavior: smooth;
}

.message {
  border-bottom: 2px solid #000;
  box-sizing: border-box;
  cursor: pointer;
  padding: 10px 20px;
  position: relative;
  width: 100%;
}

.message.selected {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Selection styling moved to message-selection.css */

.message-content {
  position: relative;
  white-space: pre-wrap;
  z-index: 1;
  padding-left: 32px !important;  /* Indent all content */
}

.message-handle {
  font-weight: 700;
  display: inline-block;
  min-width: 32px;  /* Width for "88:" */
  text-align: left;
  margin-left: -32px;  /* Pull back to left edge */
}


.message-background {
  align-items: stretch;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.message-background>div {
  align-items: stretch;
  display: flex;
  flex: 1 1;
}

.message-background svg {
  flex: 1 1;
}

/* Removed .message-frame CSS that was causing horizontal bar issue */

.message[data-type=S] {
  background-color: #f5f5f5;
  border-left: 4px solid #666;
  margin: 10px 0;
}

.message[data-type=S] .message-handle {
  color: #666;
  /* Special handling for system messages with short handles (like numbers) */
  display: inline-block;
  min-width: 3em;
  text-align: left;
  vertical-align: top;
  margin-right: 0.5em;
}

.message[data-type=S] .message-content {
  font-style: italic;
  /* Make sure the message content wraps properly with indentation */
  display: inline-block;
  width: calc(100% - 4em);
  vertical-align: top;
}

.dwim-container {
  background: #fff;
  box-shadow: 0 -2px 10px #0000001a;
  flex-shrink: 0;
  padding: 2px;
}

.dwim-widget {
  background-color: initial;
  display: flex;
  gap: 4px;
  z-index: 1;
}

.dwim-input {
  background: #ffffff80;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  border-right: none;
  flex: 1 1;
  font-size: 14px;
  margin: 0;
  min-width: 0;
  padding: 2px 4px;
}

.dwim-button {
  background-color: #007bff;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  transition: background-color .3s ease;
  white-space: nowrap;
}

.dwim-button:hover {
  background-color: #0056b3;
}

/* Platform-specific message styling */
.message.platform-local .message-content {
  color: black;
  background-color: white;
}

.message.platform-bluesky .message-content {
  color: black;
  background-color: #E6F3FF; /* Very light blue */
  padding: 5px 8px;
  border-radius: 3px;
}

.message.platform-mastodon .message-content {
  color: black;
  background-color: #f5f5f5; /* Very light gray */
  padding: 5px 8px;
  border-radius: 3px;
}

.message.platform-twitter .message-content {
  color: white;
  background-color: black;
  padding: 5px 8px;
  border-radius: 3px;
}

.message.platform-reddit .message-content {
  color: white;
  background-color: #8B0000; /* Dark red */
  padding: 5px 8px;
  border-radius: 3px;
}

.message.platform-facebook .message-content {
  color: #1877F2; /* Facebook blue */
  background-color: white;
  padding: 5px 8px;
  border-radius: 3px;
}

/* Ensure text remains readable on dark backgrounds */
.message.platform-mastodon .message-handle,
.message.platform-twitter .message-handle,
.message.platform-reddit .message-handle {
  font-weight: bold;
  opacity: 0.95;
}

/* Tooltip styling */
.message-handle {
  position: relative;
  cursor: help;
  display: inline-block;
}

.message-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  bottom: 100%;
  left: 0;
  margin-bottom: 5px;
}

.message-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(0, 0, 0, 0.9);
}

.tooltip-row {
  margin-bottom: 4px;
  font-weight: normal;
}

.tooltip-row:last-child {
  margin-bottom: 0;
}

.tooltip-row strong {
  margin-right: 5px;
  font-weight: bold;
}
