
body.ribbit-dark #dm-gif-picker {
  background: #000 !important;
  border: 1px solid #333 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8) !important;
}


body.ribbit-dark #dm-gif-search {
  background: #111 !important;
  color: white !important;
  border: 1px solid #333 !important;
}

body.ribbit-dark #dm-gif-search::placeholder {
  color: rgba(255,255,255,0.6) !important;
}

body.ribbit-dark #dm-gif-results img {
  border: 1px solid #222 !important;
}

body.ribbit-dark #dm-gif-results img:hover {
  outline: 2px solid #7db7ff !important;  
}
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

.mobile-bottom-nav {
  display: none !important;
}
@media (max-width: 480px) {
  #ribbitLogo {
    display: block !important;
    margin: 8px auto !important;
  }

  .banner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: #121212;
    justify-content: space-around;
    align-items: center;
    z-index: 5000;
  }

  .mobile-bottom-nav a {
    font-size: 12px;
    color: #6ab0ff;
    text-decoration: none;
  }

  .container {
    padding-bottom: 80px !important;
  }
}


@media (min-width: 481px) {
  body {
    visibility: hidden;
  }
}




html,
body,
* {
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
@media (max-width: 480px) {
  #ribbitLogo {
    display: block !important;
    margin: 8px auto !important;
  }

  .banner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  border-radius: 10px;
}

html[data-theme="ribbit"],
body[data-theme="ribbit"],
body[data-theme="ribbit"] * {
  scrollbar-color: #4CAF50 #d9f7c6;
}

html[data-theme="ribbit"]::-webkit-scrollbar-track,
body[data-theme="ribbit"]::-webkit-scrollbar-track,
body[data-theme="ribbit"] *::-webkit-scrollbar-track {
  background: #d9f7c6;
}

html[data-theme="ribbit"]::-webkit-scrollbar-thumb,
body[data-theme="ribbit"]::-webkit-scrollbar-thumb,
body[data-theme="ribbit"] *::-webkit-scrollbar-thumb {
  background: #4CAF50;
}

html[data-theme="ribbit"]::-webkit-scrollbar-thumb:hover,
body[data-theme="ribbit"]::-webkit-scrollbar-thumb:hover,
body[data-theme="ribbit"] *::-webkit-scrollbar-thumb:hover {
  background: #2e7d32;
}

html[data-theme="classic"],
body[data-theme="classic"],
body[data-theme="classic"] * {
  scrollbar-color: #1e6bd6 #dbe9ff;
}

html[data-theme="classic"]::-webkit-scrollbar-track,
body[data-theme="classic"]::-webkit-scrollbar-track,
body[data-theme="classic"] *::-webkit-scrollbar-track {
  background: #dbe9ff;
}

html[data-theme="classic"]::-webkit-scrollbar-thumb,
body[data-theme="classic"]::-webkit-scrollbar-thumb,
body[data-theme="classic"] *::-webkit-scrollbar-thumb {
  background: #1e6bd6;
}

html[data-theme="classic"]::-webkit-scrollbar-thumb:hover,
body[data-theme="classic"]::-webkit-scrollbar-thumb:hover,
body[data-theme="classic"] *::-webkit-scrollbar-thumb:hover {
  background: #0b2a4a;
}

html[data-theme="pink"],
body[data-theme="pink"],
body[data-theme="pink"] * {
  scrollbar-color: #b03060 #f7d6f2;
}

html[data-theme="pink"]::-webkit-scrollbar-track,
body[data-theme="pink"]::-webkit-scrollbar-track,
body[data-theme="pink"] *::-webkit-scrollbar-track {
  background: #f7d6f2;
}

html[data-theme="pink"]::-webkit-scrollbar-thumb,
body[data-theme="pink"]::-webkit-scrollbar-thumb,
body[data-theme="pink"] *::-webkit-scrollbar-thumb {
  background: #b03060;
}

html[data-theme="pink"]::-webkit-scrollbar-thumb:hover,
body[data-theme="pink"]::-webkit-scrollbar-thumb:hover,
body[data-theme="pink"] *::-webkit-scrollbar-thumb:hover {
  background: #7a1f40;
}

html[data-theme="ribbit-dark"],
body[data-theme="ribbit-dark"],
body[data-theme="ribbit-dark"] * {
  scrollbar-color: green #1a1a1a;
}
body.ribbit-dark #dm-emoji-picker {
  background: #000 !important;
  border: 1px solid #333 !important;
}
@media (max-width: 480px) {
  #dm-emoji-btn {
    display: none !important;
  }

  #dm-emoji-picker {
    display: none !important;
  }
}
body.ribbit-dark #dm-emoji-picker button {
  color: white;
}

.chat-bubble img {
  border: none !important;
  outline: none !important;
}
html[data-theme="ribbit-dark"]::-webkit-scrollbar-track,
body[data-theme="ribbit-dark"]::-webkit-scrollbar-track,
body[data-theme="ribbit-dark"] *::-webkit-scrollbar-track {
  background: #1a1a1a;
}

html[data-theme="ribbit-dark"]::-webkit-scrollbar-thumb,
body[data-theme="ribbit-dark"]::-webkit-scrollbar-thumb,
body[data-theme="ribbit-dark"] *::-webkit-scrollbar-thumb {
  background: #7db7ff;
}

html[data-theme="ribbit-dark"]::-webkit-scrollbar-thumb:hover,
body[data-theme="ribbit-dark"]::-webkit-scrollbar-thumb:hover,
body[data-theme="ribbit-dark"] *::-webkit-scrollbar-thumb:hover {
  background: #4f8fd8;
}
@keyframes onlinePulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.1; }
  100% { opacity: 1; }
}
@media (max-width: 480px) {
  .group-box {
    display: none !important;
  }
}


.page-flex {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.container {
  width: 1000px;
  height: 850px;
}


.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.close-btn-x {
  margin-Right: 5px;
  color: white;
  border: 1px solid white;
  padding: 0px 3px;
  text-decoration: none;
}
.close-btn-x:hover {
  background: darkred;
  color: white;
}


.chat-messages {
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chat-message {
  padding: 8px;
  max-width: 70%;
  word-break: break-word;
  white-space: pre-wrap;
}


.dm-input-area {
  display: flex;
  flex-direction: column;  
  padding: 6px 10px;
  border-top: 1px solid #ccc;
  background: #fff;
}

.instant-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; 
}

.instant-box-banner {
  flex: 0 0 auto;
}

.friends-list {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-top: 6px;
}

.dm-input-wrap {
  position: relative;
  flex: 1;
}

.dm-input,
.dm-input-highlight {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: normal;
  padding: 8px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
}
@media (max-width: 480px) {
  #dm-gif-picker {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    bottom: 70px !important; 
    right: auto !important;

    width: calc(100% - 20px) !important;
    max-width: 420px !important;

    max-height: 55vh !important;
    overflow-y: auto !important;

    border-radius: 16px !important;
    padding: 12px !important;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25) !important;
    z-index: 99999 !important;
  }

  #dm-gif-search {
    font-size: 14px !important;
    padding: 10px !important;
    border-radius: 12px !important;
    outline: none !important;
  }

  #dm-gif-results {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  #dm-gif-results img {
    border-radius: 14px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }
}
@media (max-width: 480px) {
  body.ribbit-dark #dm-gif-picker {
    background: #000 !important;
    border: 1px solid #222 !important;
  }

  body.ribbit-dark #dm-gif-search {
    background: #111 !important;
    border: 1px solid #333 !important;
    color: white !important;
  }

  body.ribbit-dark #dm-gif-results img {
    border: 1px solid #222 !important;
  }
}

.dm-input,
.dm-input-highlight {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: normal;

  padding: 6px 8px;
  box-sizing: border-box;

  white-space: pre-wrap;
  word-break: break-word;

  width: 100%;
  height: 32px;

  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.dm-input-highlight {
  border: 1px solid transparent; 
  pointer-events: none;
}

.dm-input-highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dm-input {
  position: relative;
  z-index: 2;
  resize: none;
  background: transparent;
  color: transparent;      
  border: 1px solid #ccc;
  overflow-y: auto;
}

.dm-input-highlight .mention {
  color: #6ab0ff;
  font-weight: bold;
}

.dm-input-highlight .hashtag {
  color: #4CAF50;
  font-weight: bold;
}

body.ribbit-dark .dm-input {
  caret-color: white;
  border-color: #444;
}

body.ribbit-dark .dm-input-highlight .mention {
  color: #7db7ff;
}

body.ribbit-dark .dm-input-highlight .hashtag {
  color: #9be27a;
}
body.ribbit-dark .dm-input-highlight {
  color: white !important;
}

.chat-text .mention {
  color: #6ab0ff;
  text-decoration: underline;
  cursor: pointer;
}

.chat-text .mention:hover {
  color: #0b2a4a;
}

.chat-text .hashtag {
  color: #4CAF50;
  text-decoration: underline;
  cursor: pointer;
}

.chat-text .hashtag:hover {
  color: #1b5e20;
}


body.ribbit-dark .chat-text .mention {
  color: blue;
}

body.ribbit-dark .chat-text .mention:hover {
  color: #6ab0ff;
}

body.ribbit-dark .chat-text .hashtag {
  color: darkgreen;
}

body.ribbit-dark .chat-text .hashtag:hover {
  color: #b6f59d;
}

body.ribbit-dark .dm-input-highlight {
  color: white;
}
.chat-box-title {
  margin-left: 10px;
}
.dm-input-area {
  align-items: stretch;
}
.chat-bubble {
  border: 1px solid #ccc !important;
  padding: 8px;
  margin: 4px 0;
  background: #fff; 
}
.main-content {
  height: 670px;
}

.dm-input-wrap {
  height: 50px;
}

.dm-input,
.dm-input-highlight {
  height: 32px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.2;
}

.dm-input-area button,
#dm-image-btn {
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.ribbit-dark .dm-input {
  color: white !important;
  caret-color: white !important;
}
.chat-messages {
  align-items: stretch !important;
}

.chat-bubble {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.chat-input-wrapper {
  display: flex;
  flex-direction: column;  
  width: 100%;
}

.dm-input {
  width: 100%;
  resize: none;
}

.chat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.dm-input-area {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border-top: 1px solid #ccc;
  background: #fff;
}

.dm-button-row {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.dm-input-wrap {
  height: 60px;   
}

.dm-input,
.dm-input-highlight {
  height: 60px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
}
body.ribbit-dark .chat-messages {
  background: #000 !important;
  border: 1px solid #2a2a2a !important;
}

body.ribbit-dark .chat-bubble {
  background: #111 !important;
  border: 1px solid #2a2a2a !important;
  color: #ffffff !important;
}

body.ribbit-dark .chat-bubble.sent {
  background: #0f1a0f !important;  
  border: 1px solid #1e3a1e !important;
}

body.ribbit-dark .chat-bubble.received {
  background: #111 !important;
  border: 1px solid #2a2a2a !important;
}
.typing-indicator {
  font-size: 12px;
  margin-top: 4px;
  color: #777;
  min-height: 16px;
  text-align: left;
}

body.ribbit-dark .typing-indicator {
  color: #7db7ff;
}
#dm-preview-area {
  margin-bottom: 80px;      
  min-height: 0;
}

.pending-preview {
  width: auto !important;
  max-width: 120px !important;
  align-self: flex-start !important;
}

.pending-preview img {
  width: 100% !important;
  max-height: 120px !important;
  object-fit: cover;
  border-radius: 10px;
}
.container {
  width: 1100px;
}
html[data-theme="ribbit"] {
  background: linear-gradient(
    180deg,
    #eaffda 0%,
    #d9f7c6 40%,
    #c8efb2 100%
  );
}

html[data-theme="classic"] {
  background: linear-gradient(
    180deg,
    #eaf3ff 0%,
    #dbe9ff 40%,
    #c6dcff 100%
  );
}

html[data-theme="pink"] {
  background: linear-gradient(
    180deg,
    #fde8f8 0%,
    #f7d6f2 40%,
    #efb9e8 100%
  );
}

html[data-theme="ribbit-dark"] {
  background: linear-gradient(
    180deg,
    #0f0f0f 0%,
    #151515 40%,
    #1a1a1a 100%
  );
}


body {
  background: transparent;
}

html, body {
  min-height: 100%;
}


html {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

.music-note {
  position: fixed;
  bottom: -40px;
  font-size: 22px;
  opacity: 0.35;
  animation: floatMusic linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes floatMusic {
  from {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  to {
    transform: translateY(-110vh) rotate(20deg);
    opacity: 0;
  }
}

@media (min-width: 481px) {
  body {
    visibility: hidden;
  }
}

html[data-theme] {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body {
  background: transparent !important;
}

html[data-theme="ribbit"] {
  background-image: linear-gradient(
    180deg,
    #eaffda 0%,
    #d9f7c6 40%,
    #c8efb2 100%
  );
}

html[data-theme="classic"] {
  background-image: linear-gradient(
    180deg,
    #eaf3ff 0%,
    #dbe9ff 40%,
    #c6dcff 100%
  );
}

html[data-theme="pink"] {
  background-image: linear-gradient(
    180deg,
    #fde8f8 0%,
    #f7d6f2 40%,
    #efb9e8 100%
  );
}

html[data-theme="ribbit-dark"] {
  background-image: linear-gradient(
    180deg,
    #0f0f0f 0%,
    #151515 40%,
    #1a1a1a 100%
  );
}

