body {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0ea5e9 100%);
  background-attachment: fixed;
  overflow: hidden;
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-input {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Typing Indicator Animation */
.dot-flashing {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 5px;
  background-color: #fff;
  color: #fff;
  animation: dot-flashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}
.dot-flashing::before, .dot-flashing::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
}
.dot-flashing::before {
  left: -10px;
  width: 6px;
  height: 6px;
  border-radius: 5px;
  background-color: #fff;
  color: #fff;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 0s;
}
.dot-flashing::after {
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 5px;
  background-color: #fff;
  color: #fff;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dot-flashing {
  0% { background-color: #fff; }
  50%, 100% { background-color: rgba(255, 255, 255, 0.2); }
}

.chat-content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  margin-top: 5px;
  margin-bottom: 5px;
}
.chat-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.secure-hide {
  display: none !important;
}

.toast-show {
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
}

.loading-visible {
    opacity: 1;
    pointer-events: auto;
}
.loading-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.chat-link {
    color: #60a5fa; /* blue-400 */
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.chat-link:hover {
    color: #93c5fd; /* blue-300 */
}

.modal-enter {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.modal-content-enter {
    transform: scale(1) !important;
}