/* Enhanced Chat Styles */

/* URL Styling */
.chat-url {
  color: #17dbd8;
  text-decoration: underline;
  transition: color 0.2s ease;
  word-break: break-all;
}

.chat-url:hover {
  color: #01c69eae;
  text-decoration: underline;
}

.unsafe-url-warning {
  color: #ff4040;
  background-color: rgba(255, 64, 64, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
  font-style: italic;
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
}

/* User Mentions */
.mention-highlight {
  animation: mention-pulse 2s infinite;
  background-color: rgba(23, 219, 216, 0.1);
  border-left: 3px solid #17dbd8;
  padding-left: 5px;
}

@keyframes mention-pulse {
  0% { background-color: rgba(23, 219, 216, 0.1); }
  50% { background-color: rgba(23, 219, 216, 0.2); }
  100% { background-color: rgba(23, 219, 216, 0.1); }
}

/* Notification Area */
#notification-area {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 300px;
}

.in-app-notification {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: notification-appear 0.3s ease-out;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.notification-hiding {
  opacity: 0;
  transform: translateX(30px);
}

@keyframes notification-appear {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.notification-title {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.notification-message {
  display: block;
  font-size: 0.9em;
  word-break: break-word;
}

.mention-notification {
  border-left: 3px solid #17dbd8;
}

.trigger-notification {
  border-left: 3px solid #ff40e5;
}

.audio-notification {
  border-left: 3px solid #01c69eae;
}

/* Trigger Flash */
#trigger-flash {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background-color: rgba(255, 64, 229, 0.2);
  border: 2px solid #ff40e5;
  border-radius: 10px;
  padding: 20px 40px;
  font-size: 24px;
  font-weight: bold;
  color: #ff40e5;
  text-align: center;
  z-index: 9998;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  text-shadow: 0 0 10px #ff40e5;
  box-shadow: 0 0 20px rgba(255, 64, 229, 0.5);
}

#trigger-flash.active {
  transform: translate(-50%, -50%) scale(1);
  animation: trigger-pulse 2s;
}

@keyframes trigger-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  10% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  90% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}
