/* Enhanced ChatGPT Styles with new features */
/* Keep all existing styles and add new ones for enhanced features */

/* Notification System Styles */
.chatgpt-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chatgpt-notification.show {
    transform: translateX(0);
}

.chatgpt-notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.chatgpt-notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.chatgpt-notification-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.chatgpt-notification-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Enhanced Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Chat Topic Tags */
.chat-topic {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

/* Enhanced Message Animations */
.user-message, .ai-message {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-message:hover, .ai-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced Action Menu */
.action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 120px;
    overflow: hidden;
    display: none;
}

.action-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.action-menu li {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    transition: background-color 0.2s;
}

.action-menu li:hover {
    background-color: #f3f4f6;
}

.action-menu li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Dark mode adjustments for action menu */
.dark-mode .action-menu {
    background: #1f2937;
    border-color: #374151;
}

.dark-mode .action-menu li {
    color: #d1d5db;
}

.dark-mode .action-menu li:hover {
    background-color: #374151;
}

/* Enhanced Loading States */
.warp-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 40px auto;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: warp-spin 1s linear infinite;
}

.ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #10b981;
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #f59e0b;
    animation-duration: 0.6s;
}

.ring:nth-child(4) {
    width: 20px;
    height: 20px;
    top: 30px;
    left: 30px;
    border-top-color: #ef4444;
    animation-duration: 0.4s;
    animation-direction: reverse;
}

.core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #3b82f6, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: core-pulse 2s ease-in-out infinite;
}

@keyframes warp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes core-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Enhanced Welcome Text */
.welcome-text {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: #6b7280;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.welcome-text.show {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Search Input */
#sidebar-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#sidebar-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark-mode #sidebar-search-input {
    background: #374151;
    border-color: #4b5563;
    color: white;
}

.dark-mode #sidebar-search-input:focus {
    border-color: #3b82f6;
}

/* Enhanced Message List */
.message-list-item {
    display: block;
    padding: 12px;
    margin: 4px 0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.message-list-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.message-list-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.message-content p {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .chatgpt-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .action-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 200px;
    }
}

/* Enhanced Progress Indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

/* Enhanced Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online { background: #10b981; }
.status-away { background: #f59e0b; }
.status-busy { background: #ef4444; }
.status-offline { background: #6b7280; }

/* Enhanced Tooltip System */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Animation Library */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --accent: #3b82f6;
    }
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

.chat-container {
    contain: layout style paint;
}

.message-list {
    will-change: transform;
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .action-menu {
        border-width: 2px;
    }
    
    .message-list-item {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ChatGPT-like Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-tertiary: #ececf1;
  --text-primary: #2d333a;
  --text-secondary: #6e7681;
  --border-light: #e5e5e5;
  --border-medium: #d1d5db;
  --accent-primary: #10a37f;
  --accent-hover: #0d8f6b;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --success-color: #10b981;
  --user-message-bg: #2f2f2f;
  --scrollbar-size: 6px;
  --mask-size-start: 20px;
  --mask-size-end: 20px;
}

.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-tertiary: #ececf1;
  --text-primary: #2d333a;
  --text-secondary: #6e7681;
  --border-light: #e5e5e5;
  --border-medium: #d1d5db;
  --user-message-bg: #2f2f2f;
}

body:not(.light-mode) {
  --bg-primary: #343541;
  --bg-secondary: #40414f;
  --bg-tertiary: #565869;
  --text-primary: #ececec;
  --text-secondary: #b4b4b4;
  --border-light: #4a4a4a;
  --border-medium: #565656;
  --user-message-bg: #2f2f2f;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}

.app-container {
    overflow-y: scroll;
    background: #000000;
  height: 100vh;
  position: relative;
}

  .background-gradient {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
           background: radial-gradient(120% 100% at center top, rgba(237, 166, 114, 0.58), rgba(47, 142, 236, 0.3) 50%, rgba(47, 142, 236, 0) 90%);
        
        }

/* Login Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(120% 100% at center top, rgba(237, 166, 114, 0.58), rgba(47, 142, 236, 0.3) 50%, rgba(47, 142, 236, 0) 90%);
  font-family: Arial, sans-serif;
}

.login-form {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(25px);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  border: 2px solid rgb(249 249 249 / 20%);
}

.login-form h2 {
  color: rgb(255, 255, 255);
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: rgb(255, 255, 255);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: rgb(255, 255, 255);
  box-sizing: border-box;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.login-btn {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.error {
  color: #ff6b6b;
  text-align: center;
  margin-top: 1rem;
}

.logout-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header Styles - Transparent */
#gpt-header {
  display: flex;
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  background: transparent;
  color: rgb(255, 255, 255);
  align-items: center;
  justify-content: flex-start;
  z-index: 10;
  padding: 0 20px;
}

/* Sidebar Button */
.sidebar-button {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 12px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  padding: 12px;
  transition: background-color 0.2s ease-in;
}

.sidebar-button:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Sidebar Styles - New Design */
#sidebar {
  position: fixed;
  top: 10px;
  right: -420px;
  margin: 10px;
  height: calc(100% - 20px);
  width: 400px;
  align-items: flex-end;
  border-radius: 24px;
  transition: right 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

#sidebar::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(25px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  z-index: -1;
  opacity: 1;
  animation: auto ease 0s 1 normal none running none;
}

#sidebar.active {
  right: 0;
}

#sidebar::-webkit-scrollbar {
  width: var(--scrollbar-size);
}

#sidebar::-webkit-scrollbar-track {
  background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

#gpt-sidebar {
  flex: 1 1 0%;
  min-height: 0px;
  opacity: 1;
  transform: translate(0px, 0px);
  animation: auto ease 0s 1 normal none running none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  color: rgb(255, 255, 255);
  height: 100%;
  padding: 16px;
}

#sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  color: rgb(255, 255, 255);
  cursor: pointer;
  padding: 8px;
}

#sidebar-actions {
  margin-bottom: 16px;
  width: 100%;
}

#sidebar-actions a,
#sidebar-actions button {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 4px 0;
  color: rgb(255, 255, 255);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

#sidebar-actions a:hover,
#sidebar-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
}

#sidebar-actions svg {
  margin-right: 12px;
  flex-shrink: 0;
}

#sidebar-search-input {
  width: 100%;
  padding: 12px 16px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgb(255, 255, 255);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

#sidebar-search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

#sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#sidebar-history {
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-block: 20px;
  mask-image: linear-gradient(transparent, black), linear-gradient(black, black), linear-gradient(black, transparent), linear-gradient(black, black);
  mask-size: calc(100% - var(--scrollbar-size)) var(--mask-size-start), calc(100% - var(--scrollbar-size)) calc(100% - var(--mask-size-start) - var(--mask-size-end)), calc(100% - var(--scrollbar-size)) var(--mask-size-end), var(--scrollbar-size) 100%;
  mask-position: 0 0, 0 var(--mask-size-start), 0 100%, 100% 0;
  mask-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  flex-grow: 1;
}

.sidebar-history-empty {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 32px 16px;
  font-size: 14px;
}

/* Message List Items */
.message-list {
  width: 100%;
}

.message-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 0 6px;
  height: 36px;
  min-height: 36px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
  position: relative;
  gap: 8px;
}

.message-list-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.message-list-item.active {
  background-color: rgba(255, 255, 255, 0.05);
}

.message-content {
  flex-grow: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-content p {
  margin: 0;
  font-size: 14px;
}

.message-actions {
  position: relative;
  flex-shrink: 0;
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
  color: rgb(175, 175, 175);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.message-list-item:hover .action-icon,
.message-list-item.active .action-icon {
  opacity: 1;
}

.action-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #333;
  border: 1px solid #555;
  border-radius: 4px;
  z-index: 10;
  min-width: 150px;
  color: rgb(255, 255, 255);
  font-size: 14px;
}

.action-menu ul {
  list-style: none;
  padding: 5px 0;
  margin: 0;
}

.action-menu li {
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-menu li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.action-menu li svg {
  fill: rgb(175, 175, 175);
}

/* Volume Slider Styles */
.slider {
  --slider-width: 100%;
  --slider-height: 6px;
  --slider-bg: rgb(82, 82, 82);
  --slider-border-radius: 999px;
  --level-color: #fff;
  --level-transition-duration: .1s;
  --icon-margin: 15px;
  --icon-color: var(--slider-bg);
  --icon-size: 25px;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 16px 0;
  width: 100%;
}

.slider .volume {
  display: inline-block;
  vertical-align: top;
  margin-right: var(--icon-margin);
  color: var(--icon-color);
  width: var(--icon-size);
  height: auto;
}

.slider .level {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--slider-width);
  height: var(--slider-height);
  background: var(--slider-bg);
  overflow: hidden;
  border-radius: var(--slider-border-radius);
  -webkit-transition: height var(--level-transition-duration);
  -o-transition: height var(--level-transition-duration);
  transition: height var(--level-transition-duration);
  cursor: inherit;
}

.slider .level::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  -webkit-box-shadow: -200px 0 0 200px var(--level-color);
  box-shadow: -200px 0 0 200px var(--level-color);
}

.slider:hover .level {
  height: calc(var(--slider-height) * 2);
}

/* Background Music Switch */
.checkbox-wrapper-35 .switch {
  display: none;
}

.checkbox-wrapper-35 .switch + label {
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  color: #78768d;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 15px;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 16px 0;
}

.checkbox-wrapper-35 .switch + label::before,
.checkbox-wrapper-35 .switch + label::after {
  content: '';
  display: block;
}

.checkbox-wrapper-35 .switch + label::before {
  background-color: #05012c;
  border-radius: 500px;
  height: 15px;
  margin-right: 8px;
  -webkit-transition: background-color 0.125s ease-out;
  transition: background-color 0.125s ease-out;
  width: 25px;
}

.checkbox-wrapper-35 .switch + label::after {
  background-color: #fff;
  border-radius: 13px;
  box-shadow: 0 3px 1px 0 rgba(37, 34, 71, 0.05), 0 2px 2px 0 rgba(37, 34, 71, 0.1), 0 3px 3px 0 rgba(37, 34, 71, 0.05);
  height: 13px;
  left: 1px;
  position: absolute;
  top: 1px;
  -webkit-transition: -webkit-transform 0.125s ease-out;
  transition: -webkit-transform 0.125s ease-out;
  transition: transform 0.125s ease-out;
  transition: transform 0.125s ease-out, -webkit-transform 0.125s ease-out;
  width: 13px;
}

.checkbox-wrapper-35 .switch + label .switch-x-text {
  display: block;
  margin-right: .3em;
}

.checkbox-wrapper-35 .switch + label .switch-x-toggletext {
  display: block;
  font-weight: bold;
  height: 15px;
  overflow: hidden;
  position: relative;
  width: 25px;
}

.checkbox-wrapper-35 .switch + label .switch-x-unchecked,
.checkbox-wrapper-35 .switch + label .switch-x-checked {
  left: 0;
  position: absolute;
  top: 0;
  -webkit-transition: opacity 0.125s ease-out, -webkit-transform 0.125s ease-out;
  transition: opacity 0.125s ease-out, -webkit-transform 0.125s ease-out;
  transition: transform 0.125s ease-out, opacity 0.125s ease-out;
  transition: transform 0.125s ease-out, opacity 0.125s ease-out, -webkit-transform 0.125s ease-out;
}

.checkbox-wrapper-35 .switch + label .switch-x-unchecked {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
}

.checkbox-wrapper-35 .switch + label .switch-x-checked {
  opacity: 0;
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0);
}

.checkbox-wrapper-35 .switch + label .switch-x-hiddenlabel {
  position: absolute;
  visibility: hidden;
}

.checkbox-wrapper-35 .switch:checked + label::before {
  background-color: #ffb500;
}

.checkbox-wrapper-35 .switch:checked + label::after {
  -webkit-transform: translate3d(10px, 0, 0);
  transform: translate3d(10px, 0, 0);
}

.checkbox-wrapper-35 .switch:checked + label .switch-x-unchecked {
  opacity: 0;
  -webkit-transform: translate3d(0, -100%, 0);
  transform: translate3d(0, -100%, 0);
}

.checkbox-wrapper-35 .switch:checked + label .switch-x-checked {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
}

/* Warp Loader Animation */
.warp-loader {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 50px auto;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(251 251 251 / 15%) 30%, transparent 70%);
  animation: pulse 2.2s ease-out infinite;
  opacity: 0;
  box-shadow: 0 0 12px #ffffff66, 0 0 24px #feffff33;
  border: 2px solid rgb(249 249 249 / 20%);
}

.ring:nth-child(1) { animation-delay: 0s; }
.ring:nth-child(2) { animation-delay: 0.01s; }
.ring:nth-child(3) { animation-delay: 0.05s; }
.ring:nth-child(4) { animation-delay: 0.12s; }

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, #fefefe, #fdffff);
  box-shadow: 0 0 25px #ffffff, 0 0 60px #ffffff88, 0 0 100px #fdffff33;
  animation: corePulse 1.6s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Welcome Text */
.welcome-text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.welcome-text.show {
  opacity: 1;
}

/* Ping Animation */
.ping {
  --uib-size: 50px;
  --uib-speed: 1s;
  --uib-color: #f7f7f9;
  position: relative;
  height: var(--uib-size);
  width: var(--uib-size);
  margin: 20px auto;
}

.ping::before,
.ping::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: var(--uib-color);
  animation: pulse7132 var(--uib-speed) linear infinite;
  transform: scale(0);
  opacity: 0;
}

.ping::after {
  animation-delay: calc(var(--uib-speed) / -2);
}

@keyframes pulse7132 {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Chat Container */
.chat-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 24px 16px 120px;
  min-height: calc(100vh - 60px);
  position: relative;
}

.default-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  text-align: center;
}

/* User Messages */
.user-message {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  color: rgb(255, 255, 255);
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 15px 15px 10px;
  overflow: hidden;
  transition: background-color 0.2s ease-in;
  margin: 16px 0;
  margin-left: auto;
  max-width: 80%;
}

/* AI Messages */
.ai-message {
  color: rgba(255, 255, 255, 0.9);
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%;
}

/* Typing Container */
.typing-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.typing-content {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.typing-textarea {
  flex-grow: 1;
  position: relative;
}

.typing-textarea textarea {
  width: 100%;
  max-height: 200px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  color: rgb(255, 255, 255);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.typing-textarea textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.typing-textarea textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hide send button */
#send-btn {
  display: none;
}

.typing-controls {
  display: flex;
  gap: 8px;
}

.typing-controls .action-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgb(255, 255, 255);
}

.typing-controls .action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Theme Button */
#theme-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgb(255, 255, 255);
}

#theme-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .chat-container {
    padding: 16px 12px 100px;
  }
  
  .typing-container {
    padding: 12px;
  }
  
  #sidebar {
    width: 90%;
    right: -95%;
  }
}