* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
  scrollbar-width: thin;
  scrollbar-color: #c58c42 #282828;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #282828;
  border-left: 2px solid #181818;
}

::-webkit-scrollbar-thumb {
  background: #c58c42;
  border: 2px solid #282828;
}

body {
  background: #181818;
  color: #e0e0e0;
  height: 100vh;
  overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 15px 15px;
}

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  border: 6px solid #c58c42;
  box-shadow: inset 0 0 0 2px #181818;
  position: relative;
}

.chat-header {
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  background: #282828;
  border-bottom: 6px solid #c58c42;
  font-weight: bold;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  color: #c58c42;
}

.chat-header i {
  font-size: 1.5em;
  margin-right: 10px;
}

.chat-messages {
  scroll-behavior: smooth;
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  max-height: calc(100vh - 140px);
}

.message {
  display: flex;
  gap: 20px;
  margin: 10px 20px;
  position: relative;
}

.message-avatar {
  width: 60px;
  height: 60px;
  border: 4px solid #c58c42;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

.message-avatar:hover {
  transform: scale(1.1) rotate(-5deg);
}

.message-content {
  position: relative;
  flex: 1;
  max-width: 60%;
  background: #282828;
  border: 4px solid #c58c42;
  padding: 15px 20px;
  transform: rotate(-1deg);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
  color: #e0e0e0;
}

.message-content::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #282828;
  border: 4px solid #c58c42;
  border-left: 0;
  border-top: 0;
  transform: rotate(134deg) translate(-5px, -5px);
  z-index: -1;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1.1em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.message-author {
  font-weight: bold;
  cursor: pointer;
  color: #c58c42;
  text-shadow: none;
}

.message-author:hover {
  color: #e0e0e0;
  transform: scale(1.1);
}

.message-time {
  color: #888;
  font-size: 0.7em;
  font-style: italic;
}

.message-text {
  color: #e0e0e0;
  line-height: 1.4;
  font-size: 1em;
  margin-bottom: 10px;
}

.message-reactions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.reaction {
  background: #333;
  border: 3px solid #c58c42;
  padding: 3px 8px;
  font-size: 1em;
  cursor: pointer;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  color: #e0e0e0;
}

.reaction:hover {
  transform: rotate(2deg) scale(1.1);
  background: #c58c42;
  color: #181818;
}

.reaction.active {
  background: #c58c42;
  transform: rotate(2deg);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
  color: #181818;
}

.add-reaction {
  color: #e0e0e0;
  cursor: pointer;
  padding: 2px 6px;
  border: 3px solid #c58c42;
  background: #333;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}

.add-reaction:hover {
  transform: rotate(2deg) scale(1.1);
  background: #c58c42;
  color: #181818;
}

.chat-input {
  padding: 20px;
  display: flex;
  gap: 12px;
  background: #282828;
  border-top: 6px solid #c58c42;
}

.chat-input-wrapper {
  display: flex;
  width: 90%;
  gap: 12px;
}

.chat-input input {
  flex: 1;
  padding: 15px;
  background: #181818;
  border: 4px solid #c58c42;
  color: #e0e0e0;
  font-size: 1em;
  box-shadow: inset 3px 3px 0 rgba(0,0,0,0.3);
  width: 100%;
}

.chat-input input::placeholder {
  color: #888;
}

.upload-button {
  background: #181818;
  border: 4px solid #c58c42;
  color: #c58c42;
  padding: 0 20px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1em;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}

.upload-button:hover {
  background: #c58c42;
  color: #181818;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
}

.emoji-picker {
  position: absolute;
  background: #282828;
  border: 3px solid #c58c42;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  z-index: 100;
  transform: translateY(-100%);
  margin-top: -8px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

.emoji-picker button {
  background: #333;
  border: 2px solid #c58c42;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: all 0.2s;
}

.emoji-picker button:hover {
  background: #c58c42;
  transform: rotate(10deg) scale(1.1);
}

.message-image {
  max-width: 100%;
  max-height: 400px;
  border: 4px solid #c58c42;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  transition: transform 0.2s;
}

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

.image-upload-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  background: #282828;
  border: 4px solid #c58c42;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

.image-upload-preview img {
  max-height: 40px;
  border: 2px solid #c58c42;
}

.remove-image {
  color: #e0e0e0;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s;
}

.remove-image:hover {
  transform: rotate(90deg);
}

.loading-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #c58c42;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.user-list-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background: #282828;
  border: 4px solid #c58c42;
  padding: 15px;
  min-width: 250px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
  z-index: 1100;
  transition: opacity 0.2s ease;
}

.user-list-popup::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #c58c42;
}

.user-list-title {
  font-size: 0.9em;
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c58c42;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e0e0e0;
  text-shadow: 1px 1px 0 #181818;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.user-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: #333;
  border: 2px solid #c58c42;
  cursor: pointer;
}

.user-list-item:hover {
  background: #c58c42;
  color: #181818;
  transform: translateX(2px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}

.user-list-item:hover .user-list-name {
  color: #181818;
}

.user-avatar-container {
  position: relative;
}

.user-list-item img {
  width: 30px;
  height: 30px;
  border: 2px solid #c58c42;
  transition: transform 0.2s;
}

.user-list-item:hover img {
  transform: scale(1.1) rotate(-5deg);
}

.user-message-indicators {
  position: absolute;
  bottom: -5px;
  right: -5px;
  z-index: 2;
}

.user-message-indicator {
  position: absolute;
  background: #e64a19;
  border: 2px solid #181818;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border-radius: 0;
  transform: rotate(-5deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  overflow: hidden;
}

.message-sender-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-list-name {
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #e0e0e0;
}

.user-list-item .user-list-name:has(+ :contains("(offline)")) {
  color: #888;
}

.header-text {
  position: relative;
  cursor: pointer;
}

.header-notification-indicator {
  position: absolute;
  top: -10px;
  right: -25px;
  background: #e64a19;
  color: white;
  border: 3px solid #181818;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transform: rotate(5deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { transform: rotate(5deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.2); }
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.toast {
  background: #282828;
  border: 4px solid #c58c42;
  padding: 15px 20px;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
  animation: slideIn 0.3s ease-out;
  transform: translateX(0);
}

.toast.success {
  border-left: 8px solid #4CAF50;
}

.toast.error {
  border-left: 8px solid #f44336;
}

.toast.info {
  border-left: 8px solid #2196F3;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  color: #e0e0e0;
  margin-left: auto;
}

.toast-close:hover {
  transform: scale(1.2);
}

.toast-icon {
  font-size: 1.5em;
}

.toast.success .toast-icon {
  color: #4CAF50;
}

.toast.error .toast-icon {
  color: #f44336;
}

.toast.info .toast-icon {
  color: #2196F3;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: bold;
  margin-bottom: 4px;
  color: #e0e0e0;
}

.toast-message {
  font-size: 0.9em;
  color: #aaa;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(120%);
  }
}

.toast.removing {
  animation: slideOut 0.3s ease-in forwards;
}

.message-content.toast-command {
  background: #3a3222;
  border-color: #c58c42;
}

.message-content.toast-command .message-text {
  color: #e0e0e0;
  font-style: italic;
}

.message-delete-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #282828;
  border: 3px solid #c58c42;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transform: rotate(5deg);
  transition: all 0.2s;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  z-index: 1;
  color: #e0e0e0;
}

.message-delete-btn:hover {
  background: #ff4444;
  color: white;
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.emoji-modal {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #282828;
  border: 4px solid #c58c42;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  animation: modalSlideUp 0.2s ease-out;
}

.emoji-modal::-webkit-scrollbar {
  width: 12px;
}

.emoji-modal::-webkit-scrollbar-track {
  background: #181818;
  border-left: 2px solid #c58c42;
}

.emoji-modal::-webkit-scrollbar-thumb {
  background: #c58c42;
  border: 2px solid #181818;
}

.emoji-modal button {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border: 2px solid #c58c42;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s;
}

.emoji-modal button:hover {
  background: #c58c42;
  transform: scale(1.2);
  z-index: 1;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}

.emoji-modal-close {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #333;
  border: 3px solid #c58c42;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transform: rotate(5deg);
  transition: all 0.2s;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  z-index: 1001;
  color: #e0e0e0;
}

.emoji-modal-close:hover {
  background: #c58c42;
  color: #181818;
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.admin-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 20px;
}

.archive-btn {
  background: #181818;
  border: 3px solid #c58c42;
  padding: 5px 12px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8em;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 5px;
  color: #c58c42;
}

.archive-btn:hover {
  background: #c58c42;
  color: #181818;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.archive-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #282828;
  border: 6px solid #c58c42;
  padding: 20px;
  min-width: 300px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.4);
  z-index: 1000;
  color: #e0e0e0;
}

.archive-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #c58c42;
}

.archive-modal-title {
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.archive-modal-close {
  background: #181818;
  border: 3px solid #c58c42;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transform: rotate(5deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  color: #e0e0e0;
}

.archive-modal-close:hover {
  background: #c58c42;
  color: #181818;
  transform: rotate(-5deg);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.archive-controls {
  margin: 20px 0;
}

.archive-timestamp {
  background: #181818;
  border: 3px solid #c58c42;
  padding: 8px;
  width: 100%;
  margin-bottom: 10px;
  color: #e0e0e0;
}
.archive-timestamp::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.archive-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  background: #282828;
  border: 3px solid #c58c42;
  padding: 8px 12px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  border: 3px solid #c58c42;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 1px;
  background-color: #c58c42;
  transition: .4s;
}

input:checked + .slider {
  background-color: #c58c42;
}
input:checked + .slider:before {
  background-color: #181818;
  transform: translateX(26px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
}

.reply-preview {
  background: #c58c42;
  border: 4px solid #181818;
  padding: 10px 15px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  position: relative;
  color: #181818;
}

.reply-preview::before {
  content: '';
  position: absolute;
  left: 35px;
  bottom: -17px;
  width: 20px;
  height: 20px;
  background: #c58c42;
  border-right: 6px solid #181818;
  border-bottom: 6px solid #181818;
  transform: rotate(45deg);
  z-index: 1;
}

.cancel-reply-button {
  background: #181818;
  border: 3px solid #c58c42;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transform: rotate(5deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  color: #e0e0e0;
}

.cancel-reply-button:hover {
  background: #ff4444;
  color: white;
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.parent-message {
  background: rgba(0,0,0,0.2);
  border-left: 4px solid #c58c42;
  margin-bottom: 10px;
  padding: 8px;
  font-size: 0.9em;
  position: relative;
}

.parent-message::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  background: #282828;
  border-left: 4px solid #c58c42;
  border-bottom: 4px solid #c58c42;
  transform: translateY(-50%) rotate(45deg);
  left: -11px;
}

.parent-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.parent-message-author {
  font-weight: bold;
  font-size: 0.9em;
}

.parent-message-time {
  font-size: 0.8em;
  color: #888;
}

.parent-message-text {
  margin-bottom: 4px;
  opacity: 0.8;
}

.parent-message-thumbnail {
  max-width: 100px;
  max-height: 100px;
  border: 2px solid #c58c42;
  cursor: pointer;
  transition: transform 0.2s;
}

.parent-message-thumbnail:hover {
  transform: scale(1.1);
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.reply-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  margin-top: 8px;
}

.reply-btn i {
  font-size: 0.9em;
}

/* Private Chat Styling */
.private-chat-modal {
  position: fixed;
  width: 840px;
  height: 900px;
  background: #181818;
  border: 6px solid #c58c42;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  overflow: hidden;
}

.private-chat-modal.mobile {
  width: 100% !important;
  height: 70% !important;
  left: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  right: 0 !important;
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-radius: 20px 20px 0 0;
}

.private-chat-modal.maximized {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.private-chat-header {
  background: #282828;
  border-bottom: 4px solid #c58c42;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  touch-action: none;
}

.private-chat-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e0e0e0;
}

.private-chat-user img {
  width: 30px;
  height: 30px;
  border: 2px solid #c58c42;
}

.private-chat-user span {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.private-chat-modal.mobile .private-chat-user span {
  max-width: 60vw;
}

.private-chat-controls {
  display: flex;
  gap: 5px;
}

.private-chat-controls button {
  background: #181818;
  border: 2px solid #c58c42;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #e0e0e0;
}

.private-chat-controls button:hover {
  background: #c58c42;
  color: #181818;
  transform: scale(1.1);
}

.private-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 15px 15px;
}

.resize-handle {
  position: absolute;
  width: 30px;
  height: 30px;
  bottom: 0;
  right: 0;
  cursor: nwse-resize;
  touch-action: none;
  z-index: 10;
}

.resize-handle::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 30px 30px;
  border-color: transparent transparent #c58c42 transparent;
  bottom: 0;
  right: 0;
}

.private-chat-modal.mobile .resize-handle {
  display: none;
}

.private-chat-minimized {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #282828;
  border: 4px solid #c58c42;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.4);
  z-index: 1500;
  transition: transform 0.2s;
  color: #e0e0e0;
}

.private-chat-minimized:hover {
  transform: translateY(-5px);
  box-shadow: 5px 10px 0 rgba(0,0,0,0.4);
}

.private-chat-minimized img {
  width: 30px;
  height: 30px;
  border: 2px solid #c58c42;
}

.private-chat-minimized span {
  font-weight: bold;
  font-size: 0.9em;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.private-chat-minimized.unread {
  animation: bounce 1s ease infinite;
}

/* Make private-chat-modal scrollbar match main chat */
.private-chat-messages::-webkit-scrollbar {
  width: 12px;
}

.private-chat-messages::-webkit-scrollbar-track {
  background: #181818;
  border-left: 2px solid #c58c42;
}

.private-chat-messages::-webkit-scrollbar-thumb {
  background: #c58c42;
  border: 2px solid #181818;
}

/* Media queries for mobile */
@media (max-width: 768px) {
  .chat-input {
    flex-wrap: wrap;
  }
  
  .chat-input input {
    flex: 1;
    width: 100%;
  }
  
  .emoji-modal {
    grid-template-columns: repeat(10, 1fr);
    max-height: 300px;
  }
  
  .message-content {
    max-width: 80%;
  }
  
  .private-chat-modal .message-content {
    max-width: 70%;
  }
}

@media (max-width: 480px) {
  .message-content {
    max-width: 90%;
  }
  
  .message-avatar {
    width: 40px;
    height: 40px;
  }
  
  .emoji-modal {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .reaction {
    padding: 2px 6px;
    font-size: 0.9em;
  }
}