* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 15%, #16213e 35%, #0f172a 55%, #1e293b 75%, #334155 90%, #475569 100%);
  z-index: -3;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 15% 85%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 85% 15%, rgba(255, 119, 198, 0.35) 0%, transparent 65%),
              radial-gradient(ellipse at 45% 45%, rgba(120, 219, 255, 0.25) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(147, 51, 234, 0.2) 0%, transparent 50%);
  z-index: -2;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
}

.header {
  display: none;
}

.chat-container {
  flex: 1;
  padding: 30px 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.chat-container > .welcome-message {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px 28px 0 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding: 32px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.95);
  animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 
              0 2px 10px rgba(0, 0, 0, 0.1),
              0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15),
              inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  z-index: 3;
}

.chat-container > .welcome-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 20%, rgba(120, 219, 255, 0.4) 50%, rgba(255, 255, 255, 0.6) 80%, transparent 100%);
}

.chat-container > .welcome-message::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 25%, transparent 50%);
  border-radius: 28px 28px 0 0;
  pointer-events: none;
}

.chat-area {
  width: 100%;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(35px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: none;
  border-radius: 0 0 28px 28px;
  padding: 0;
  min-height: 650px;
  height: 75vh;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25), 
              0 5px 20px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              inset 1px 0 0 rgba(255, 255, 255, 0.05),
              inset -1px 0 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 35px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent 100%);
  z-index: 1;
}

.chat-area::after {
  content: '';
  position: absolute;
  top: 0;
  right: 35px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent 100%);
  z-index: 1;
}

.chat-content {
  flex: 1;
  overflow-y: auto;
  padding: 35px 65px 130px 65px;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2;
}

.chat-content::-webkit-scrollbar {
  width: 8px;
}

.chat-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.chat-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.input-container {
  position: fixed;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 720px;
  z-index: 10;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(40px) saturate(180%);
  border-radius: 28px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
              0 4px 16px rgba(0, 0, 0, 0.1),
              inset 0 2px 0 rgba(255, 255, 255, 0.4),
              inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.input-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  border-radius: 26px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25),
              0 0 60px rgba(255, 255, 255, 0.4),
              0 0 120px rgba(120, 219, 255, 0.2),
              inset 0 2px 0 rgba(255, 255, 255, 0.5),
              inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px) scale(1.02);
}

.input-wrapper:focus-within::before {
  opacity: 1;
}

.welcome-avatar {
  font-size: 28px;
  margin-right: 20px;
  z-index: 1;
  position: relative;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.welcome-text {
  z-index: 1;
  position: relative;
}

.welcome-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-messages {
  width: 100%;
}

.message {
  display: flex;
  margin-bottom: 28px;
  animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 75%;
  padding: 20px 26px;
  border-radius: 24px;
  font-size: 15px;
  line-height: 1.8;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.message-content:hover {
  transform: translateY(-2px);
}

.message.user .message-content {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(35px) saturate(150%);
  color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom-right-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.message.ai .message-content {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(35px) saturate(150%);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-left-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.message.ai .message-content p {
  margin: 16px 0;
}

.message.ai .message-content p:first-child {
  margin-top: 0;
}

.message.ai .message-content p:last-child {
  margin-bottom: 0;
}

.message.ai .message-content strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.ai .message-content em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

.typing-indicator {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(35px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  border-bottom-left-radius: 8px;
  padding: 20px 26px;
  max-width: 75%;
  animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.typing-dots {
  display: flex;
  gap: 6px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 1);
  border-radius: 50%;
  animation: typing 1.6s infinite ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.7; }
  30% { transform: translateY(-12px); opacity: 1; }
}

#messageInput {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  resize: none;
  max-height: 130px;
  overflow-y: auto;
  line-height: 1.6;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  transition: all 0.3s ease;
  font-weight: 400;
}

#messageInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

#messageInput::-webkit-scrollbar {
  width: 6px;
}

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

#sendButton {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  margin-left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.1),
              inset 0 2px 0 rgba(255, 255, 255, 0.3),
              inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

#sendButton:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
              0 0 30px rgba(255, 255, 255, 0.3),
              0 0 60px rgba(120, 219, 255, 0.2),
              inset 0 2px 0 rgba(255, 255, 255, 0.4),
              inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

#sendButton:active {
  transform: scale(0.96);
}

#sendButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.feedback-block {
  margin: 12px 0 28px 0;
  animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.feedback-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  backdrop-filter: blur(25px) saturate(150%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 16px;
  padding: 14px 18px;
  max-width: 75%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
              0 1px 6px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.feedback-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  border-radius: 16px;
  pointer-events: none;
}

.feedback-content:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}

.feedback-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin-right: 16px;
  z-index: 1;
  position: relative;
}

.feedback-buttons {
  display: flex;
  gap: 8px;
  z-index: 1;
  position: relative;
  align-items: center;
}

.feedback-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feedback-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 0 20px rgba(255, 255, 255, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feedback-btn:active {
  transform: scale(0.95);
}

.feedback-btn:disabled {
  cursor: not-allowed;
  transform: none;
}

.feedback-btn.thumbs-up:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2),
              0 0 20px rgba(34, 197, 94, 0.1);
}

.feedback-btn.thumbs-down:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2),
              0 0 20px rgba(239, 68, 68, 0.1);
}

.improve-btn {
  background: rgba(255, 193, 7, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 8px;
  padding: 8px 14px;
  color: #ffc107;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.improve-btn:hover {
  background: rgba(255, 193, 7, 0.3);
  border-color: rgba(255, 193, 7, 0.6);
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2),
              0 0 20px rgba(255, 193, 7, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.improve-btn:active {
  transform: scale(0.95);
}

.admin-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px) saturate(120%);
  animation: fadeIn 0.3s ease-out;
}

.admin-modal-content {
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(40px) saturate(150%);
  margin: 3% auto;
  padding: 0;
  width: 90%;
  max-width: 750px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
              0 10px 30px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: slideInDown 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.admin-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  border-radius: 20px;
  pointer-events: none;
}

.admin-modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.admin-modal-header h3 {
  color: rgba(255, 255, 255, 0.98);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
  padding: 4px;
  border-radius: 8px;
}

.admin-close:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.admin-modal-body {
  padding: 28px;
  position: relative;
  z-index: 1;
}

.admin-modal-body label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.admin-modal-body input, 
.admin-modal-body textarea {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-modal-body input:focus, 
.admin-modal-body textarea:focus {
  outline: none;
  border-color: rgba(79, 195, 247, 0.6);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 25px rgba(79, 195, 247, 0.2),
              inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.admin-modal-body input::placeholder,
.admin-modal-body textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.admin-modal-body textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.readonly-field {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  max-height: 140px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.readonly-field::-webkit-scrollbar {
  width: 6px;
}

.readonly-field::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.admin-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  justify-content: flex-end;
}

.admin-modal-actions button {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.admin-modal-actions button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.admin-modal-actions button:hover::before {
  left: 100%;
}

.admin-modal-actions button:first-child {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3),
              0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-modal-actions button:first-child:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4),
              0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-modal-actions button:last-child {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-modal-actions button:last-child:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#adminPasswordSection button {
  background: linear-gradient(135deg, #4fc3f7 0%, #0ea5e9 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.3),
              0 2px 8px rgba(0, 0, 0, 0.1);
}

#adminPasswordSection button:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(79, 195, 247, 0.4),
              0 4px 12px rgba(0, 0, 0, 0.15);
}

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .container {
      padding: 0 15px;
  }

  .chat-container {
      padding: 20px 15px 40px;
  }

  .chat-container > .welcome-message {
      padding: 28px;
      max-width: 100%;
      border-radius: 24px 24px 0 0;
      border-bottom: 2px solid rgba(255, 255, 255, 0.4);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 
                  0 2px 10px rgba(0, 0, 0, 0.1),
                  0 2px 8px rgba(0, 0, 0, 0.2),
                  inset 0 1px 0 rgba(255, 255, 255, 0.15),
                  inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  }

  .chat-area {
      max-width: 100%;
      min-height: 550px;
      height: 70vh;
      border-radius: 0 0 24px 24px;
      border-top: none;
  }

  .chat-area::before {
      left: 25px;
  }

  .chat-area::after {
      right: 25px;
  }

  .chat-content {
      padding: 25px 45px 110px 45px;
  }

  .input-container {
      bottom: 25px;
      width: 95%;
      max-width: 100%;
  }

  .input-wrapper {
      border-radius: 24px;
      padding: 10px;
  }

  .welcome-text h3 {
      font-size: 18px;
  }

  .welcome-text p {
      font-size: 14px;
  }

  .message-content {
      max-width: 85%;
      padding: 18px 22px;
      border-radius: 20px;
  }

  .message.user .message-content {
      border-bottom-right-radius: 6px;
  }

  .message.ai .message-content {
      border-bottom-left-radius: 6px;
  }

  .typing-indicator {
      border-radius: 20px;
      border-bottom-left-radius: 6px;
  }

  #messageInput {
      padding: 16px 20px;
      border-radius: 16px;
  }

  #sendButton {
      width: 44px;
      height: 44px;
      margin-left: 10px;
  }

  .feedback-content {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      padding: 16px;
      max-width: 85%;
  }

  .feedback-text {
      margin-right: 0;
      margin-bottom: 4px;
  }

  .feedback-buttons {
      align-self: flex-end;
  }

  .admin-modal-content {
      margin: 5% auto;
      width: 95%;
      max-width: 100%;
  }

  .admin-modal-header {
      padding: 20px 24px 16px;
  }

  .admin-modal-body {
      padding: 24px 20px;
  }

  .admin-modal-actions {
      flex-direction: column;
      gap: 12px;
  }

  .admin-modal-actions button {
      width: 100%;
  }
}

.warning-notice {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  backdrop-filter: blur(25px) saturate(150%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: 2px;
  width: fit-content;
  max-width: 60%;
  animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1),
              0 1px 6px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.warning-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  border-radius: 16px;
  pointer-events: none;
}
.warning-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.warning-icon {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.warning-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
}
.warning-text strong {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
}

.container                       { max-width: 1600px; }
.chat-area                       { max-width: 2000px; }
.chat-container>.welcome-message { max-width: 2000px; }
.input-container                 { max-width: 1300px; }

body,
.message-content,
#messageInput,
.feedback-text,
.readonly-field,
.admin-modal-body input,
.admin-modal-body textarea {
    font-size: 12px;
    line-height: 1.6; 
}

/* hide the “Confidence: xx %” badge */
.message.confidence { display:none !important; }

.processing-indicator span { color:#f5f5f5; }   /* make “Connecting to Verse AI...” white */
