*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #000000;
  color: #f5f5f5;
  min-height: 100dvh;
  overflow: hidden;
}

.chat-container {
  position: relative;
  height: 100dvh;
  background: #000000;
}

.reset-btn:not(.composer-action-btn),
.theme-toggle:not(.composer-action-btn) {
    display: none !important;
}
.card-grid-bg {
            position: absolute;
            inset: 0;
            background-color: #000000;
            background-image: 
                linear-gradient(to right, rgba(255,255,255,0.15) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255,255,255,0.15) 1px, transparent 1px);
            background-size: 24px 24px;
            border-radius: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .card.cleared {
            position: relative;
            min-height: 200px;
        }
        
        .card.cleared .card-grid-bg {
            opacity: 1;
        }
        
        .card.cleared > *:not(.card-grid-bg):not(.delete-card-btn) {
            opacity: 0;
            pointer-events: none;
        }
        
        .delete-card-btn {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.2s ease;
            z-index: 10;
        }
        
        .card:hover .delete-card-btn {
            opacity: 1;
        }
        
        .delete-card-btn:hover {
            background: rgba(239, 68, 68, 0.2);
            border-color: rgba(239, 68, 68, 0.5);
            transform: scale(1.1);
        }
        
        .delete-card-btn svg {
            width: 1rem;
            height: 1rem;
            color: #ef4444;
        }
        
        body.light-theme .card-grid-bg {
            background-color: #ffffff;
            background-image: 
                linear-gradient(to right, rgba(0,0,0,0.15) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0,0,0,0.15) 1px, transparent 1px);
        }
.glass-footer-bar {
    position: fixed;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.625rem 1.5rem;
    backdrop-filter: blur(10px);
    overflow: visible;
    background: linear-gradient(
        90deg,
        transparent 100%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.4) 80%,
        transparent 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: calc(100vw - 2rem);
    width: auto;
}

.glass-footer-bar:hover {
    backdrop-filter: blur(10px);
    background: linear-gradient(
        90deg,
        transparent 100%,
        rgba(0, 0, 0, 0.4) 20%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.4) 80%,
        transparent 100%
    );
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-brand {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.footer-brand span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline;
    max-width: 100%;
}

.status-indicator {
    display: inline;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.footer-delete-btn {
    position: absolute;
    top: -0.875rem;
    right: -0.875rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    box-shadow:
        0 4px 16px rgba(239, 68, 68, 0.3),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

.glass-footer-bar:hover .footer-delete-btn {
    opacity: 1;
}

.footer-delete-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.7);
    transform: scale(1.15);
    box-shadow:
        0 6px 24px rgba(239, 68, 68, 0.5),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
}

.footer-delete-btn svg {
    width: 0.875rem;
    height: 0.875rem;
    color: #ef4444;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
@keyframes status-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.05);
        text-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
    }
}

.status-indicator.status-down {
    animation: status-pulse 1.5s ease-in-out infinite !important;
    color: #ef4444 !important;
    text-shadow: 
        0 0 10px #ef4444,
        0 0 20px #ef4444,
        0 0 30px rgba(239, 68, 68, 0.5) !important;
}

.status-indicator.status-unknown {
    animation: status-pulse 1.5s ease-in-out infinite !important;
    color: #f59e0b !important;
    text-shadow: 
        0 0 10px #f59e0b,
        0 0 20px #f59e0b,
        0 0 30px rgba(245, 158, 11, 0.5) !important;
}

.status-indicator.status-up {
    color: #9bc761 !important;
    text-shadow: 
        0 0 10px #9bc761,
        0 0 20px #9bc761,
        0 0 30px rgba(155, 199, 97, 0.4) !important;
}

.footer-brand .status-indicator * {
    color: inherit !important;
}

.footer-brand * {
    color: #ffffff !important; 
}

.footer-divider {
    width: 1px;
    height: 1rem;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 1;
    min-width: 0;
}

.footer-link {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #d2d2d4;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-link:hover {
    color: #ffffff;
}

.community-text {
    display: none;
} 

.message-list {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4rem 1.5rem 10rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
}

.message-list::-webkit-scrollbar {
  width: 6px;
}

.message-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 1rem 0.75rem 1rem 0;
}

.message-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3f3f46 0%, #27272a 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.message-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #52525b 0%, #3f3f46 100%);
}

.message-list::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #71717a 0%, #52525b 100%);
}

.send-btn.cancel-mode {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #ef4444;
  cursor: pointer !important;
  opacity: 1 !important;
}

.send-btn.cancel-mode:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}

.send-btn.cancel-mode .orb {
  animation: pulse-red 1.5s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #737373;
}

.empty-state .orb-container {
  margin-bottom: 1rem;
}

.empty-state h2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #a3a3a3;
}

.empty-state p {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: #737373;
}

.message {
  display: flex;
  gap: 0.75rem;
  max-width: 90%;
  position: relative;
  align-items: flex-start;
}

.message.user {
  margin-left: auto;
  flex-direction: row-reverse;
  animation: slide-up-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.message.assistant {
  margin-right: auto;
  align-items: flex-start;
  animation: fade-in-up 0.3s ease-out;
}

.code-block-container {
  width: 100%;
  max-width: 100%;
  contain: layout style paint;
}

.message.assistant .bubble .markdown-content span {
  will-change: filter, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.message.assistant .bubble .markdown-content {
  font-size: 0.875rem;
  line-height: 1.6;
  padding-left: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .message.assistant .bubble .markdown-content span {
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

.code-block-content {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
}

.code-block-content pre {
  margin: 0;
  width: fit-content;
  min-width: 100%;
  max-width: max-content;
}

.code-block-content pre code {
  display: block;
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
  max-width: 100%;
}

.message .bubble {
  max-width: 100%;
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 0.1;
}

.message .bubble .markdown-content {
  max-width: 100%;
  overflow: hidden;
}

.message .bubble .markdown-content > * {
  max-width: 100%;
}

.code-block-content pre::-webkit-scrollbar {
  height: 8px;
}

.code-block-content pre::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}

.code-block-content pre::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 4px;
}

.code-block-content pre::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}

@keyframes slide-up-bounce {
  0% { transform: translateY(20px); opacity: 0; }
  60% { transform: translateY(-4px); }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in-up {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #27272a;
}

.avatar.user {
  background: #18181b;
}

.avatar.assistant {
  background: transparent;
  border: none;
}

.avatar svg {
  width: 1rem;
  height: 1rem;
}

.notification-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
  width: auto; 
  max-width: 400px; 
}

.notification {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(
    90deg,
    transparent 100%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 6px rgba(0, 0, 0, 0.2),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.25),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.05);
  animation: notification-glass-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0);
}

.notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.4) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.notification.closing {
  animation: notification-glass-out 0.35s ease forwards;
}

.notification-icon,
.notification-content,
.notification-close {
  position: relative;
  z-index: 2;
}

.notification-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 0.125rem;
}

.notification-message {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.notification-close {
  flex-shrink: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}

.notification-close:hover {
  color: #f5f5f5;
}

.notification.success .notification-icon { color: #f5f5f5; }
.notification.error .notification-icon { color: #ef4444; }
.notification.info .notification-icon { color: #6366f1; }

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  z-index: 2;
}

.notification-progress-bar {
  height: 100%;
  width: 100%;
  background: currentColor;
  opacity: 0.2;
  transform-origin: left;
}

@keyframes notification-glass-in {
  0% { 
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  100% { 
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes notification-glass-out {
  0% { 
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 200px;
  }
  100% { 
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background: #18181b;
  border-bottom: 1px solid #27272a;
  min-height: 2.5rem;
  flex-shrink: 0;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap; 
  gap: 0.5rem;
}

.code-block-header .code-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
  min-width: 0;
}

.code-block-header .code-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #737373;
  flex-shrink: 0;
}

.code-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #737373;
}

.code-status .loading-icon {
  width: 10px;
  height: 10px;
  border: 2px solid #3f3f46;
  border-top-color: #737373;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.char-count {
  font-size: 0.7rem;
  color: #525252;
  white-space: nowrap;
}

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  border: 1px solid #3f3f46;
  color: #a3a3a3;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}	

.copy-code-btn:hover {
  background: #27272a;
  border-color: #52525b;
  color: #f5f5f5;
}

.copy-code-btn svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.code-block-content {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  padding: 1rem;
  background: #0d0d0d;
  max-height: 500px;
  overflow-y: auto;
  flex: 1;
}

.code-block-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.code-block-content::-webkit-scrollbar-track {
  background: #000000;
}

.code-block-content::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 3px;
}

.code-block-content::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

.code-block-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: #18181b;
  border-top: 1px solid #27272a;
  font-size: 0.7rem;
  color: #525252;
  border-radius: 0 0 8px 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.code-block-footer .separator {
  color: #3f3f46;
}

.code-block-footer .model-name {
  color: #737373;
}

.insert-code-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #525252;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.insert-code-btn:hover {
  color: #a3a3a3;
  background: rgba(63, 63, 70, 0.3);
}

.insert-code-btn svg {
  width: 1rem;
  height: 1rem;
}

.message.assistant .bubble .markdown-content pre code .hljs-keyword { color: #c586c0; }
.message.assistant .bubble .markdown-content pre code .hljs-string { color: #ce9178; }
.message.assistant .bubble .markdown-content pre code .hljs-number { color: #b5cea8; }
.message.assistant .bubble .markdown-content pre code .hljs-comment { color: #6a9955; font-style: italic; }
.message.assistant .bubble .markdown-content pre code .hljs-function { color: #dcdcaa; }
.message.assistant .bubble .markdown-content pre code .hljs-tag { color: #569cd6; }
.message.assistant .bubble .markdown-content pre code .hljs-attr { color: #9cdcfe; }
.message.assistant .bubble .markdown-content pre code .hljs-variable { color: #4fc1ff; }

#attachedFileContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.message-content {
  display: flex;
  flex-direction: column;
}

.message.user .message-content {
  align-items: flex-end;
}

.message.assistant .message-content {
  align-items: flex-start;
}

.role-label {
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.bubble {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.message.user .bubble {
  background: #18181b;
  color: #f5f5f5;
  border-bottom-right-radius: 0.375rem;
  padding: 0.75rem 1rem;
  border: 1px solid #27272a;
}

.message.assistant .bubble {
  background: transparent;
  color: #d4d4d4;
  border-bottom-left-radius: 0.375rem;
  padding: 0.25rem 0.5rem 0.25rem 0;
}

.message.assistant .bubble .markdown-content {
  min-height: 0.2;
}

.message.assistant .bubble .markdown-content h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: #f5f5f5;
}

.message.assistant .bubble .markdown-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.875rem 0 0.5rem;
  color: #f5f5f5;
}

.message.assistant .bubble .markdown-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.75rem 0 0.375rem;
  color: #e5e5e5;
}

.message.assistant .bubble .markdown-content h4,
.message.assistant .bubble .markdown-content h5,
.message.assistant .bubble .markdown-content h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  color: #d4d4d4;
}

.message.assistant .bubble .markdown-content p {
  margin: 0.5rem 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.assistant .bubble .markdown-content strong {
  font-weight: 600;
  color: #f5f5f5;
}

.message.assistant .bubble .markdown-content em {
  font-style: italic;
  color: #e5e5e5;
}

.message.assistant .bubble .markdown-content code {
  background: rgba(39, 39, 42, 0.8);
  border: 1px solid #3f3f46;
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  color: #f5f5f5;
}

.message.assistant .bubble .markdown-content pre {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  overflow-x: auto;
}

.message.assistant .bubble .markdown-content pre::-webkit-scrollbar {
  height: 6px;
}

.message.assistant .bubble .markdown-content pre::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 3px;
  margin: 0 0.5rem;
}

.message.assistant .bubble .markdown-content pre::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3f3f46 0%, #27272a 100%);
  border-radius: 3px;
}

.message.assistant .bubble .markdown-content pre::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #52525b 0%, #3f3f46 100%);
}

.message.assistant .bubble .markdown-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #d4d4d4;
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.message.assistant .bubble .markdown-content ul,
.message.assistant .bubble .markdown-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.message.assistant .bubble .markdown-content li {
  margin: 0.25rem 0;
}

.message.assistant .bubble .markdown-content ul li {
  list-style-type: disc;
}

.message.assistant .bubble .markdown-content ol li {
  list-style-type: decimal;
}

.message.assistant .bubble .markdown-content blockquote {
  border-left: 3px solid #3f3f46;
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: #a3a3a3;
  font-style: italic;
}

.confirm-bar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 1.25rem;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(50px) saturate(200%) brightness(1.1) contrast(1.05);
  -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.1) contrast(1.05);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 1px 6px rgba(0, 0, 0, 0.2),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.25),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s, filter 0.5s;
  filter: blur(8px);
}

.confirm-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  filter: blur(0px);
}

.confirm-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.confirm-actions {
  display: flex;
  gap: 0.5rem;
}

.confirm-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.2s;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.confirm-btn.cancel {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.confirm-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.2);
}

.confirm-btn.clear {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.confirm-btn.clear:hover {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border-color: #ef4444;
  box-shadow: 0 0 20px -5px rgba(239, 68, 68, 0.4);
}

.message.assistant .bubble .markdown-content hr {
  border: none;
  border-top: 1px solid #27272a;
  margin: 1rem 0;
}

.message.assistant .bubble .markdown-content a {
  color: #6366f1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.message.assistant .bubble .markdown-content a:hover {
  border-bottom-color: #6366f1;
}

.message.assistant .bubble .markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0;
  overflow-x: auto;
  display: block;
}

.message.assistant .bubble .markdown-content table::-webkit-scrollbar {
  height: 6px;
}

.message.assistant .bubble .markdown-content table::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 3px;
  margin: 0 0.5rem;
}

.message.assistant .bubble .markdown-content table::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3f3f46 0%, #27272a 100%);
  border-radius: 3px;
}

.message.assistant .bubble .markdown-content table::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #52525b 0%, #3f3f46 100%);
}

.message.assistant .bubble .markdown-content th,
.message.assistant .bubble .markdown-content td {
  border: 1px solid #27272a;
  padding: 0.5rem;
  text-align: left;
}

.markdown-content p:first-child {
  margin-top: 0 !important;
}

.message.assistant .bubble .markdown-content th {
  background: #18181b;
  font-weight: 600;
}

.bubble p {
  font-size: 0.875rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.bubble img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.gradient_text {
  font-family: 'Inter', system-ui, sans-serif;
  margin-top: 4px;
  text-decoration: none;
  font-size: 12px;
  text-align: left;
  background: linear-gradient(
    to right,
    #000 0%,
    #fff 25%,
    #000 50%,
    #fff 75%,
    #000 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientLoop 2s linear infinite;
  display: inline-block;
}

@keyframes gradientLoop {
  0% { background-position: 100% 0%; }
  100% { background-position: -100% 0%; }
}

.status-text {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #737373;
}

.status-text.generated {
  color: #9bc761;
}

.status-text.error {
  color: #ef4444;
}

.retry-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 0.5rem;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: inherit;
}

.retry-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.retry-btn:active {
  transform: translateY(0);
}

.retry-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.timestamp {
  font-size: 0.75rem;
  color: #525252;
  margin-top: 0.25rem;
}

.composer-wrapper {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 10;
}


.composer {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  pointer-events: auto;
  overflow: visible;
  min-height: auto;
  backdrop-filter: blur(10px);
  background: linear-gradient(
      90deg,
      transparent 100%,
      rgba(255, 255, 255, 0.4) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0.4) 80%,
      transparent 100%
  );
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.25);
}


.composer-inner {
  position: relative;
  z-index: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


	

.bg-liquid-glass {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        @apply bg-muted/25;
    }

    @supports not (hanging-punctuation:first) {
        .bg-liquid-glass {
            backdrop-filter: url(#displacementFilter) blur(2px);
        }
    }

.composer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  background: linear-gradient(
      90deg,
      transparent 100%,
      rgba(255, 255, 255, 0.4) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0.4) 80%,
      transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.composer::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  background: linear-gradient(
    90deg,
    transparent 100%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.4) 80%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.composer:focus-within::after {
  opacity: 1;
}

.composer-header-actions {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.composer-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%) brightness(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.composer-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.composer-action-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
}

.composer-action-btn svg {
    width: 1rem;
    height: 1rem;
    color: #d4d4d4;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}



.input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.message-input {
  flex: 1;
  resize: none;
  background: transparent;
  border: none;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  color: #f5f5f5;
  outline: none;
  max-height: 7.5rem;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.5;
}

.message-input::placeholder {
  color: #525252;
}

.message-input::-webkit-scrollbar {
  width: 6px;
}

.message-input::-webkit-scrollbar-track {
  background: transparent;
  margin: 0.25rem 0.5rem 0.25rem 0;
}

.message-input::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3f3f46 0%, #27272a 100%);
  border-radius: 3px;
}

.message-input::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #52525b 0%, #3f3f46 100%);
}

.send-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
  position: relative;
  background: transparent;
  padding: 0;
}

.send-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

.send-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 5rem;
}

.action-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  backdrop-filter: blur(30px) saturate(180%) brightness(1.1) contrast(1.05);
  -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.1) contrast(1.05);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.06) 80%,
    rgba(255, 255, 255, 0.12) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.2),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

.action-btn:hover:not(:disabled) {
  background: rgba(63, 63, 70, 0.9);
  transform: scale(1.05);
}

.action-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.action-btn.recording,
.action-btn.active {
  background: rgba(239, 68, 68, 0.9);
  border-color: #ef4444;
  animation: pulse 1.5s ease-in-out infinite;
}

.copy-message-btn {
  background: transparent;
  border: 1px solid #3f3f46;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  color: #a3a3a3;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-top: 0.25rem;
  opacity: 0;
  white-space: nowrap;
  width: fit-content;
}

.copy-message-btn svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #a3a3a3;
  flex-shrink: 0;
}

.message:hover .copy-message-btn {
  opacity: 1;
}

.copy-message-btn:hover {
  background: #27272a;
  border-color: #52525b;
  color: #f5f5f5;
}

.copy-message-btn:hover svg {
  color: #f5f5f5;
}

.action-btn svg {
  width: 1rem;
  height: 1rem;
  color: #a3a3a3;
  transition: color 0.2s;
}

.action-btn:hover:not(:disabled) svg {
  color: #d4d4d4;
}

.action-btn.recording svg,
.action-btn.active svg {
  color: white;
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-btn:disabled:hover {
  background: rgba(39, 39, 42, 0.8);
  transform: none;
}

.custom-select {
  position: relative;
  display: inline-block;
}

.custom-select-trigger {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  color: #a3a3a3;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  user-select: none;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.15),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.15);
}

.custom-select-trigger:hover {
  background: rgba(24, 24, 27, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(24, 24, 27, 0.7);
}

.custom-select-trigger svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s;
}

.custom-select.open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: rgba(24, 24, 27, 1);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  overflow: hidden;
  max-height: min(15rem, 50vh);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.7),
    0 2px 12px rgba(0, 0, 0, 0.5),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.15);
  z-index: 100;
  min-width: 100%;
  width: max-content;
  max-width: min(90vw, 300px);
  margin-bottom: 0.5rem;
  visibility: hidden;
  transform-origin: top center;
  will-change: transform, opacity;
}

.custom-select-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.custom-select-dropdown.flipped {
  bottom: auto;
  top: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0;
  transform-origin: bottom center;
  transform: translateY(10px);
}

.custom-select.open .custom-select-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.custom-select.open .custom-select-dropdown.flipped {
  transform: translateY(0);
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(63, 63, 70, 0.8);
  border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(82, 82, 91, 0.9);
}

.custom-select-option {
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  color: #d4d4d4;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 2px solid transparent;
  background: transparent;
}

.custom-select-option:hover {
  background: rgba(63, 63, 70, 0.5);
  color: #f5f5f5;
}

.custom-select-option.selected {
  background: rgba(99, 102, 241, 0.2);
  border-left-color: #6366f1;
  color: #f5f5f5;
}

.voice-status {
  font-size: 0.75rem;
  color: #ef4444;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(239, 68, 68, 0.1);
  display: none;
  align-items: center;
  gap: 0.375rem;
}

.voice-status.active {
  display: flex;
}

.voice-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.camera-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.camera-modal.active {
  display: flex;
}

.camera-container {
  position: relative;
  max-width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid #27272a;
}

.camera-video {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  touch-action: none;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  background-color: #000;
  object-fit: cover;
}

.zoom-overlay {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid #3f3f46;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.zoom-label {
  font-size: 0.75rem;
  color: #a3a3a3;
  font-weight: 500;
  min-width: 2rem;
  text-align: center;
}

.zoom-slider {
  width: 8rem;
  height: 4px;
  background: #27272a;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.zoom-slider-track {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  transition: width 0.1s ease;
}

.zoom-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.25rem;
  height: 1.25rem;
  background: #f5f5f5;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: left 0.1s ease;
  cursor: grab;
}

.zoom-slider-thumb:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.1);
}

.camera-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.camera-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.06) 80%,
    rgba(255, 255, 255, 0.12) 100%
  );
  backdrop-filter: blur(8px);
  border: 2px solid #3f3f46;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.camera-btn:hover {
  background: rgba(63, 63, 70, 0.9);
  transform: scale(1.05);
}

.camera-btn.capture {
  background: rgba(239, 68, 68, 0.9);
  border-color: #ef4444;
}

.camera-btn.capture:hover {
  background: rgba(239, 68, 68, 1);
}

.camera-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #f5f5f5;
}

.file-input {
  display: none;
}

.attached-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(39, 39, 42, 0.8);
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #a3a3a3;
  max-width: 100%;
  overflow: hidden;
}

.attached-file svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #f5f5f5;
  flex-shrink: 0;
}

.attached-file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attached-file-size {
  font-size: 0.7rem;
  color: #737373;
  margin-left: 0.25rem;
}

.remove-file {
  margin-left: auto;
  cursor: pointer;
  color: #ef4444;
  padding: 0.125rem;
  flex-shrink: 0;
}

.remove-file:hover {
  color: #dc2626;
}

.orb {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  animation: orb-hue-rotate 8s linear infinite;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 48px 100px 0px;
}

.orb-blur-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: blur(6px);
  animation: orb-hue-rotate-blur 6s linear infinite reverse;
}

.orb-blur-container.large {
  filter: blur(20px);
}

.orb-circle {
  position: absolute;
  border-radius: 50%;
}

.orb-highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  pointer-events: none;
}

body.light-theme {
    background-color: #ffffff;
    color: #1a1a1a;
}

body.light-theme .chat-container {
    background: #ffffff;
}

body.light-theme .composer-action-btn {
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(40px) saturate(180%) brightness(0.95);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(0.95);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

body.light-theme .composer-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.light-theme .composer-action-btn:active {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .composer-action-btn svg {
    color: #262626;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.5));
}

body.light-theme .empty-state h2,
body.light-theme .empty-state p {
    color: #1a1a1a;
}

body.light-theme .message.user .bubble {
    background: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid #d4d4d4;
}

body.light-theme .message.assistant .bubble {
    color: #1a1a1a;
}

body.light-theme .message.assistant .bubble .markdown-content {
    color: #1a1a1a;
}

body.light-theme .message.assistant .bubble .markdown-content h1,
body.light-theme .message.assistant .bubble .markdown-content h2,
body.light-theme .message.assistant .bubble .markdown-content h3,
body.light-theme .message.assistant .bubble .markdown-content h4,
body.light-theme .message.assistant .bubble .markdown-content h5,
body.light-theme .message.assistant .bubble .markdown-content h6 {
    color: #000000;
}

body.light-theme .message.assistant .bubble .markdown-content strong {
    color: #000000;
}

body.light-theme .message.assistant .bubble .markdown-content em {
    color: #1a1a1a;
}

body.light-theme .message.assistant .bubble .markdown-content p {
    color: #1a1a1a;
}

body.light-theme .message.assistant .bubble .markdown-content code {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

body.light-theme .message.assistant .bubble .markdown-content pre {
    background: #f5f5f5;
    border: 1px solid #d4d4d4;
}

body.light-theme .message.assistant .bubble .markdown-content pre code {
    background: transparent;
    color: #1a1a1a;
}

body.light-theme .message.assistant .bubble .markdown-content blockquote {
    border-left-color: #d4d4d4;
    color: #525252;
}

body.light-theme .message.assistant .bubble .markdown-content a {
    color: #2563eb;
}

body.light-theme .message.assistant .bubble .markdown-content a:hover {
    border-bottom-color: #2563eb;
}

body.light-theme .message.assistant .bubble .markdown-content table th,
body.light-theme .message.assistant .bubble .markdown-content table td {
    border: 1px solid #d4d4d4;
}

body.light-theme .message.assistant .bubble .markdown-content table th {
    background: #f5f5f5;
}

body.light-theme .message-input {
    color: #1a1a1a;
}

body.light-theme .message-input::placeholder {
    color: #737373;
}

body.light-theme .composer {
    background: linear-gradient(
        90deg,
        transparent 100%,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.05) 80%,
        transparent 100%
    );
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-theme .composer::before {
    background: linear-gradient(
        90deg,
        transparent 100%,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.05) 80%,
        transparent 100%
    );
}

body.light-theme .glass-footer-bar {
    background: linear-gradient(
        90deg,
        transparent 100%,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.05) 80%,
        transparent 100%
    );
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-theme .glass-footer-bar:hover {
    background: linear-gradient(
        90deg,
        transparent 100%,
        rgba(0, 0, 0, 0.08) 20%,
        rgba(0, 0, 0, 0.12) 50%,
        rgba(0, 0, 0, 0.08) 80%,
        transparent 100%
    );
}

body.light-theme .footer-brand *,
body.light-theme .footer-link {
    color: #1a1a1a !important;
}

body.light-theme .avatar.user {
    background: #f0f0f0;
    border: 1px solid #d4d4d4;
}

body.light-theme .avatar.user svg {
    stroke: #1a1a1a;
}

body.light-theme .message-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4d4d4 0%, #a3a3a3 100%);
}

body.light-theme .code-block-header,
body.light-theme .code-block-footer {
    background: #f5f5f5;
    border-color: #d4d4d4;
    color: #1a1a1a;
}

body.light-theme .code-status,
body.light-theme .char-count,
body.light-theme .code-block-footer .timestamp,
body.light-theme .code-block-footer .model-name {
    color: #525252;
}

body.light-theme .code-block-content {
    background: #fafafa;
}

body.light-theme .copy-code-btn {
    border: 1px solid #d4d4d4;
    color: #525252;
}

body.light-theme .copy-code-btn:hover {
    background: #e5e5e5;
    border-color: #a3a3a3;
    color: #1a1a1a;
}

body.light-theme .file-download-btn {
    background: #1a1a1a;
    color: #ffffff;
}

body.light-theme .file-download-btn:hover {
    background: #000000;
}

body.light-theme .action-btn {
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.04) 30%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.06) 80%,
        rgba(0, 0, 0, 0.12) 100%
    );
    border: 0.5px solid rgba(0, 0, 0, 0.15);
}

body.light-theme .action-btn svg {
    color: #1a1a1a;
}

body.light-theme .custom-select-dropdown {
    background: linear-gradient(
        160deg,
        rgba(240, 240, 240, 0.95) 0%,
        rgba(250, 250, 250, 0.98) 30%,
        rgba(255, 255, 255, 1) 50%,
        rgba(250, 250, 250, 0.98) 80%,
        rgba(240, 240, 240, 0.95) 100%
    );
    border: 0.5px solid rgba(0, 0, 0, 0.15);
}

body.light-theme .custom-select-option {
    color: #1a1a1a;
}

body.light-theme .custom-select-trigger {
    color: #1a1a1a;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
}

body.light-theme .attached-file {
    background: rgba(240, 240, 240, 0.8);
    border: 1px solid #d4d4d4;
    color: #1a1a1a;
}

body.light-theme .status-text {
    color: #525252;
}

body.light-theme .timestamp {
    color: #737373;
}

body.light-theme .role-label {
    color: #525252;
}

body.light-theme .copy-message-btn {
    border: 1px solid #d4d4d4;
    color: #525252;
}

body.light-theme .copy-message-btn:hover {
    background: #e5e5e5;
    border-color: #a3a3a3;
    color: #1a1a1a;
}

body.light-theme .notification {
    background: rgba(255, 255, 255, 0.95);
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}
body.light-theme .footer-delete-btn {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
}

body.light-theme .footer-delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow:
        0 6px 20px rgba(239, 68, 68, 0.25),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.4);
}
body.light-theme .notification-title {
    color: #1a1a1a;
}

body.light-theme .notification-message {
    color: #1a1a1a;
}

body.light-theme .message.assistant .bubble .markdown-content pre code .hljs-keyword { 
    color: #9d174d; 
}
body.light-theme .message.assistant .bubble .markdown-content pre code .hljs-string { 
    color: #c2410c; 
}
body.light-theme .message.assistant .bubble .markdown-content pre code .hljs-number { 
    color: #15803d; 
}
body.light-theme .message.assistant .bubble .markdown-content pre code .hljs-comment { 
    color: #6b7280; 
    font-style: italic; 
}
body.light-theme .message.assistant .bubble .markdown-content pre code .hljs-function { 
    color: #0369a1; 
}
body.light-theme .message.assistant .bubble .markdown-content pre code .hljs-tag { 
    color: #7c3aed; 
}
body.light-theme .message.assistant .bubble .markdown-content pre code .hljs-attr { 
    color: #0891b2; 
}
body.light-theme .message.assistant .bubble .markdown-content pre code .hljs-variable { 
    color: #0e7490; 
}

@keyframes orb-hue-rotate {
  0% { filter: hue-rotate(0deg); }
  25% { filter: hue-rotate(45deg); }
  50% { filter: hue-rotate(90deg); }
  75% { filter: hue-rotate(45deg); }
  100% { filter: hue-rotate(0deg); }
}

@keyframes orb-hue-rotate-blur {
  0% { filter: blur(var(--blur, 6px)) hue-rotate(0deg); }
  25% { filter: blur(var(--blur, 6px)) hue-rotate(45deg); }
  50% { filter: blur(var(--blur, 6px)) hue-rotate(90deg); }
  75% { filter: blur(var(--blur, 6px)) hue-rotate(45deg); }
  100% { filter: blur(var(--blur, 6px)) hue-rotate(0deg); }
}

@keyframes orb-orbit-1 {
  0% { transform: rotate(0deg) translateX(25%) rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) translateX(30%) rotate(-90deg) scale(1.15); }
  50% { transform: rotate(180deg) translateX(25%) rotate(-180deg) scale(0.9); }
  75% { transform: rotate(270deg) translateX(30%) rotate(-270deg) scale(1.1); }
  100% { transform: rotate(360deg) translateX(25%) rotate(-360deg) scale(1); }
}

@keyframes orb-orbit-2 {
  0% { transform: rotate(90deg) translateX(20%) rotate(-90deg) scale(1); }
  25% { transform: rotate(180deg) translateX(25%) rotate(-180deg) scale(0.85); }
  50% { transform: rotate(270deg) translateX(20%) rotate(-270deg) scale(1.2); }
  75% { transform: rotate(360deg) translateX(25%) rotate(-360deg) scale(0.95); }
  100% { transform: rotate(450deg) translateX(20%) rotate(-450deg) scale(1); }
}

@keyframes orb-orbit-3 {
  0% { transform: rotate(180deg) translateX(30%) rotate(-180deg) scale(1); }
  25% { transform: rotate(270deg) translateX(35%) rotate(-270deg) scale(1.1); }
  50% { transform: rotate(360deg) translateX(30%) rotate(-360deg) scale(0.85); }
  75% { transform: rotate(450deg) translateX(35%) rotate(-450deg) scale(1.15); }
  100% { transform: rotate(540deg) translateX(30%) rotate(-540deg) scale(1); }
}

@keyframes orb-orbit-4 {
  0% { transform: rotate(270deg) translateX(15%) rotate(-270deg) scale(1); }
  25% { transform: rotate(360deg) translateX(20%) rotate(-360deg) scale(1.25); }
  50% { transform: rotate(450deg) translateX(15%) rotate(-450deg) scale(0.8); }
  75% { transform: rotate(540deg) translateX(20%) rotate(-540deg) scale(1.1); }
  100% { transform: rotate(630deg) translateX(15%) rotate(-630deg) scale(1); }
}

@keyframes orb-orbit-5 {
  0% { transform: rotate(45deg) translateX(22%) rotate(-45deg) scale(1); }
  25% { transform: rotate(135deg) translateX(28%) rotate(-135deg) scale(0.9); }
  50% { transform: rotate(225deg) translateX(22%) rotate(-225deg) scale(1.15); }
  75% { transform: rotate(315deg) translateX(28%) rotate(-315deg) scale(0.95); }
  100% { transform: rotate(405deg) translateX(22%) rotate(-405deg) scale(1); }
}

.orb-circle-1 { animation: orb-orbit-1 6s ease-in-out infinite; }
.orb-circle-2 { animation: orb-orbit-2 5s ease-in-out infinite; }
.orb-circle-3 { animation: orb-orbit-3 7s ease-in-out infinite; }
.orb-circle-4 { animation: orb-orbit-4 4s ease-in-out infinite; }
.orb-circle-5 { animation: orb-orbit-5 5.5s ease-in-out infinite; }

@keyframes orb-intro {
  0% { transform: translateY(-100px) scale(4); filter: blur(30px); opacity: 0; }
  100% { transform: translateY(0) scale(1); filter: blur(0px); opacity: 1; }
}

@keyframes composer-intro {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes text-blur-intro {
  0% { filter: blur(12px); opacity: 0; transform: translateY(10px); }
  100% { filter: blur(0px); opacity: 1; transform: translateY(0); }
}

.orb-intro { animation: orb-intro 4s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.composer-intro { animation: composer-intro 4s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards; opacity: 0; }
.text-blur-intro { animation: text-blur-intro 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.text-blur-intro-delay { animation: text-blur-intro 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }

.hidden { display: none !important; }

.file-preview {
  margin-top: 0.5rem;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #18181b;
}

.file-preview-image {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.file-preview-document {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.file-icon {
  font-size: 2rem;
  color: #6366f1;
}

.file-info {
  text-align: center;
}

.file-download-btn {
  padding: 0.375rem 0.75rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.file-download-btn:hover {
  background: #4f46e5;
}

.file-icon.pdf { color: #ef4444; }
.file-icon.docx, .file-icon.doc { color: #2b579a; }
.file-icon.xlsx, .file-icon.xls { color: #217346; }
.file-icon.pptx, .file-icon.ppt { color: #d24726; }
.file-icon.txt { color: #6b7280; }
.file-icon.zip, .file-icon.rar { color: #f59e0b; }
.file-icon.mp3, .file-icon.wav { color: #8b5cf6; }
.file-icon.mp4, .file-icon.mov { color: #ec4899; }

@media (max-width: 768px) {
    .glass-footer-bar {
        bottom: 9rem;
        padding: 0.5rem 1rem;
        gap: 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }
    
    .footer-brand span {
        font-size: 0.7rem;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .glass-footer-bar {
        bottom: 8.5rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
        max-width: calc(100vw - 1rem);
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-brand {
        width: 100%;
        text-align: center;
    }
    
    .footer-brand span {
        font-size: 0.65rem;
        text-align: center;
        display: inline;
        white-space: normal;
        line-height: 1.3;
    }
    
    .footer-links {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .footer-link {
        font-size: 0.65rem;
    }
    
    .composer-header-actions {
        bottom: 0.5rem;
        right: 0.5rem;
        gap: 0.375rem;
    }
    
    .composer-action-btn {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .composer-action-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .action-row {
        padding-right: 4.5rem;
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .custom-select {
        font-size: 0.7rem;
    }
    
    .custom-select-trigger {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .community-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .glass-footer-bar {
        bottom: 8rem;
        padding: 0.375rem 0.75rem;
        gap: 0.375rem;
    }
    
    .footer-brand span {
        font-size: 0.6rem;
    }
    
    .footer-links {
        gap: 0.375rem;
    }
    
    .footer-link {
        font-size: 0.6rem;
    }
    
    .composer-header-actions {
        bottom: 0.375rem;
        right: 0.375rem;
        gap: 0.25rem;
    }
    
    .composer-action-btn {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .composer-action-btn svg {
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .action-row {
        padding-right: 3.75rem;
    }
    
    .custom-select-trigger {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .action-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .action-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}
@media (max-width: 768px) {
    .footer-delete-btn {
        top: -2rem;
        right: 0.75rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .footer-delete-btn svg {
        width: 0.75rem;
        height: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-delete-btn {
        top: -1.75rem;
        right: 0.5rem;
        width: 1.35rem;
        height: 1.35rem;
    }
}
@media (max-width: 375px) {
    .glass-footer-bar {
        bottom: 7.5rem;
        padding: 0.25rem 0.5rem;
    }
    
    .footer-brand span {
        font-size: 0.55rem;
    }
    
    .footer-link {
        font-size: 0.55rem;
    }
    
    .composer-action-btn {
        width: 1.35rem;
        height: 1.35rem;
    }
    
    .composer-action-btn svg {
        width: 0.7rem;
        height: 0.7rem;
    }
    
    .action-row {
        padding-right: 3.25rem;
        gap: 0.25rem;
    }
    
    .custom-select-trigger {
        padding: 0.2rem 0.35rem;
        font-size: 0.6rem;
    }
}

@media (min-width: 640px) {
    .message {
        display: flex;
        gap: 0.25rem;
        max-width: 90%;
        position: relative;
        margin-bottom: 0.5rem;
    }
}  