/* Custom CSS Variables */
:root {
  --primary-color: #f7bc00;
  --primary-hover: #e6a800;
  --primary-light: #f9c74f;
  --primary-dark: #d4a500;
  --secondary-color: #ff9f43;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --error-color: #ef4444;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-text: #991b1b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --border-radius: 0.75rem;
  --border-radius-sm: 0.5rem;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --error-bg: #2d1517;
  --error-border: #7f1d1d;
  --error-text: #fca5a5;
  --gray-50: #1a1a1a;
  --gray-100: #2d2d2d;
  --gray-200: #404040;
  --gray-300: #525252;
  --gray-400: #737373;
  --gray-500: #a3a3a3;
  --gray-600: #d4d4d4;
  --gray-700: #e5e5e5;
  --gray-800: #f5f5f5;
  --gray-900: #fafafa;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 14px;
}

[data-theme="dark"] body {
  background-color: var(--gray-50);
  color: var(--gray-800);
}

/* Error Card Styling */
.error-card {
  color: var(--error-text);
}

/* Enhanced Error Card Variants */
.error-card.network-error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(to right, #fef2f2, transparent);
}

.error-card.server-error {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(to right, #fffbeb, transparent);
}

.error-card.rate-limit-error {
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(to right, #faf5ff, transparent);
}

.error-card.general-error {
  border-left: 4px solid #6b7280;
  background: linear-gradient(to right, #f9fafb, transparent);
}

/* Retry Button Styling */
.retry-button {
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.retry-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.retry-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Retry Info Styling */
.retry-info {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark theme adjustments for error cards */
[data-theme="dark"] .error-card.network-error {
  background: linear-gradient(to right, rgba(239, 68, 68, 0.1), transparent);
  border-left-color: #ef4444;
}

[data-theme="dark"] .error-card.server-error {
  background: linear-gradient(to right, rgba(245, 158, 11, 0.1), transparent);
  border-left-color: #f59e0b;
}

[data-theme="dark"] .error-card.rate-limit-error {
  background: linear-gradient(to right, rgba(139, 92, 246, 0.1), transparent);
  border-left-color: #8b5cf6;
}

[data-theme="dark"] .error-card.general-error {
  background: linear-gradient(to right, rgba(107, 114, 128, 0.1), transparent);
  border-left-color: #6b7280;
}

/* Header Styling Enhancement */
.header-container {
  background-color: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-container:after {
  content: "";
  width: 100%;
  height: 3px;
  position: absolute;
  box-sizing: border-box;
  backdrop-filter: blur(50px);
  background-color: rgba(125, 125, 125, 0.05);
}

/* Company Logo Styling */
.company-logo {
  height: 35px;
  display: flex;
  align-items: center;
}

.company-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

/* Remove old Annie header styles */
.annie-header,
.annie-logo,
.annie-info,
.annie-name,
.annie-title {
  display: none;
}

/* Welcome Section Refinement */
.welcome-section {
  background: transparent;
  padding: 40px 20px;
  margin: 0;
  text-align: center;
}

.welcome-avatar-container {
  display: flex;
  justify-content: center;
}

.welcome-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(247, 188, 0, 0.2);
  border: 3px solid white;
}

[data-theme="dark"] .welcome-avatar {
  border-color: var(--gray-100);
}

.welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-avatar i {
  font-size: 32px;
  color: white;
}

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 4px;
  line-height: 1.4;
}

.welcome-subtitle:last-of-type {
  margin-bottom: 0;
}

[data-theme="dark"] .welcome-title {
  color: var(--gray-900);
}

[data-theme="dark"] .welcome-subtitle {
  color: var(--gray-600);
}

.start-claim-container {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* Start Claim Button Refinement */
.start-claim-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: #000;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 8px rgba(247, 188, 0, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.start-claim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(247, 188, 0, 0.4);
  background: linear-gradient(
    135deg,
    var(--primary-hover),
    var(--primary-color)
  );
}

.start-claim-btn:active {
  transform: translateY(0);
}

/* Input Area Refinement */
.input-container {
  background: white;
  padding: 15px 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  border: solid 5px #0000001c;
  border-bottom: none;
  border-top-right-radius: 30px;
  border-top-left-radius: 30px;
}

[data-theme="dark"] .input-container {
  background: var(--gray-50);
  border-color: var(--gray-100);
}

/* Textarea Improvements */
#queryInput {
  width: 100%;
  background: transparent;
  resize: none;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-800);
  min-height: 48px;
  max-height: 120px;
  font-weight: 400;
}

#queryInput:focus {
  outline: none;
}

#queryInput::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

[data-theme="dark"] #queryInput {
  color: var(--gray-800);
}

[data-theme="dark"] #queryInput::placeholder {
  color: var(--gray-500);
}

/* Send Button */
.send-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(247, 188, 0, 0.3);
  font-weight: 600;
}

.send-button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(247, 188, 0, 0.4);
  background: linear-gradient(
    135deg,
    var(--primary-hover),
    var(--primary-color)
  );
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: var(--gray-300);
  color: var(--gray-500);
  box-shadow: none;
}

.send-button:active {
  transform: scale(0.95);
}

.send-button i {
  font-size: 14px;
}

/* Attach Button */
.attach-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 600;
}

.attach-button:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-700);
  transform: scale(1.05);
}

.attach-button:active {
  transform: scale(0.95);
}

.attach-button i {
  font-size: 14px;
}

[data-theme="dark"] .attach-button {
  background: var(--gray-200);
  border-color: var(--gray-300);
  color: var(--gray-700);
}

[data-theme="dark"] .attach-button:hover {
  background: var(--gray-300);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

/* Attachments Preview */
.attachments-preview {
  margin-bottom: 1rem;
}

.attachments-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.attachment-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  color: var(--gray-700);
  max-width: 200px;
}

.attachment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.attachment-size {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.attachment-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--error-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.attachment-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

[data-theme="dark"] .attachments-container {
  border-color: var(--gray-100);
}

[data-theme="dark"] .attachment-item {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-800);
}

[data-theme="dark"] .attachment-size {
  color: var(--gray-600);
}

/* Hidden utility class */
.hidden {
  display: none !important;
}

/* Header Button Improvements */
.header-btn {
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--gray-400);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.header-btn-text {
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--gray-600);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

.header-btn-text:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

[data-theme="dark"] .header-btn {
  color: var(--gray-500);
}

[data-theme="dark"] .header-btn:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

[data-theme="dark"] .header-btn-text {
  color: var(--gray-600);
}

[data-theme="dark"] .header-btn-text:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

/* Quick Questions Refinement */
.quick-question {
  transition: all 0.2s ease;
  white-space: nowrap;
  padding: 6px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  box-shadow: none;
}

.quick-question:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: #000;
}

[data-theme="dark"] .quick-question {
  background: var(--gray-200);
  border-color: var(--gray-300);
  color: var(--gray-700);
}

[data-theme="dark"] .quick-question:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: #000;
}

/* Chat Message Refinement */
.message-bot {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.message-user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(247, 188, 0, 0.2);
  border: 2px solid white;
}

[data-theme="dark"] .message-avatar {
  border-color: var(--gray-100);
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-avatar i {
  font-size: 14px;
  color: white;
}

.message-bot .message-content {
  color: var(--gray-800);
  padding: 7px 18px;
  border-radius: 18px;
  max-width: 70%;
  box-shadow: none;
  position: relative;
  flex: 1;
}

.message-user .message-content {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: #000;
  padding: 14px 18px;
  border-radius: 18px;
  max-width: 70%;
  box-shadow: none;
  font-weight: 500;
  position: relative;
}

/* Message Attachments */
.message-attachments {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message-attachment {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  /* background: rgba(0, 0, 0, 0.1); */
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

.message-attachment i {
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.7);
  min-width: 20px;
}

.attachment-info {
  flex: 1;
  min-width: 0;
}

.message-attachment .attachment-name {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-attachment .attachment-size {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 0.125rem;
}

/* Dark theme for message attachments */

[data-theme="dark"] .message-attachment i {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .message-attachment .attachment-name {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .message-attachment .attachment-size {
  color: rgba(255, 255, 255, 0.6);
}

/* Remove old conflicting styles */
.logo-container {
  display: none;
}

/* Toast Notifications Enhancement */
.toast {
  background: white;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--gray-200);
}

[data-theme="dark"] .toast {
  background: var(--gray-200);
  color: var(--gray-800);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}

.toast.success {
  border-left-color: var(--success-color);
}

.toast.error {
  border-left-color: var(--error-color);
}

.toast.warning {
  border-left-color: var(--warning-color);
}

/* Dark Theme UI Components */
[data-theme="dark"] .bg-white {
  background-color: var(--gray-100) !important;
}

[data-theme="dark"] .bg-gray-50 {
  background-color: var(--gray-50) !important;
}

[data-theme="dark"] .bg-gray-100 {
  background-color: var(--gray-200) !important;
}

[data-theme="dark"] .text-gray-900 {
  color: var(--gray-900) !important;
}

[data-theme="dark"] .text-gray-800 {
  color: var(--gray-800) !important;
}

[data-theme="dark"] .text-gray-700 {
  color: var(--gray-700) !important;
}

[data-theme="dark"] .text-gray-600 {
  color: var(--gray-600) !important;
}

[data-theme="dark"] .text-gray-500 {
  color: var(--gray-500) !important;
}

[data-theme="dark"] .text-gray-400 {
  color: var(--gray-400) !important;
}

[data-theme="dark"] .border-gray-200 {
  border-color: var(--gray-300) !important;
}

[data-theme="dark"] .border-gray-300 {
  border-color: var(--gray-400) !important;
}

/* Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Typing Animation Enhancement */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

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

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

@keyframes typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}
.message-content h2:first-child,
.message-content h3:first-child {
  margin-top: 0;
}

.message-content h1 {
  font-size: 18px;
}
.message-content h2 {
  font-size: 16px;
}
.message-content h3 {
  font-size: 14px;
}

.message-content p {
  margin-bottom: 12px;
  line-height: 1.6;
}

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

.message-content ul,
.message-content ol {
  margin-left: 20px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.message-content li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.message-content code {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Consolas", monospace;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .message-content code {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.message-content pre {
  background: rgba(0, 0, 0, 0.04);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .message-content pre {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.message-content blockquote {
  border-left: 3px solid var(--primary-color);
  padding-left: 16px;
  margin: 12px 0;
  font-style: italic;
  color: var(--gray-600);
  background: rgba(247, 188, 0, 0.05);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
}

[data-theme="dark"] .message-content blockquote {
  color: var(--gray-500);
  background: rgba(247, 188, 0, 0.1);
}

/* Loading States Enhancement */
.loading-skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-300) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius-sm);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .message-content {
    max-width: 85% !important;
  }

  .logo-container {
    width: 36px;
    height: 36px;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
  }

  .message-avatar i {
    font-size: 12px;
  }

  .quick-question {
    font-size: 11px;
    padding: 5px 10px;
  }

  .toast {
    min-width: 280px;
    margin: 0 16px;
  }

  .input-container {
    padding: 16px 20px;
  }
}

@media (max-width: 640px) {
  .message-content {
    max-width: 90% !important;
  }

  .px-6 {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-container .px-6 {
    padding: 16px 20px;
  }
}

/* Focus States Enhancement */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(247, 188, 0, 0.3);
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .message-bot .message-content {
    border: 2px solid var(--gray-400);
  }

  .message-user .message-content {
    border: 2px solid var(--primary-color);
  }

  .quick-question {
    border: 2px solid var(--gray-400);
  }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  .message-bot .message-content {
    border: 2px solid var(--gray-400);
  }

  .message-user .message-content {
    border: 2px solid var(--primary-color);
  }

  .quick-question {
    border: 2px solid var(--gray-400);
  }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  .message-bot .message-content {
    border: 2px solid var(--gray-400);
  }

  .message-user .message-content {
    border: 2px solid var(--primary-color);
  }

  .quick-question {
    border: 2px solid var(--gray-400);
  }
}

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

/* ========== Claims Flow Button Styles ========== */

/* Button container */
.claims-buttons {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

[data-theme="dark"] .claims-buttons {
  border-top-color: var(--gray-300);
}

/* Base button style */
.claims-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
}

.claims-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.claims-btn:active:not(:disabled) {
  transform: translateY(0);
}

.claims-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.claims-btn i {
  font-size: 0.875rem;
}

/* Primary button (Yes) */
.claims-btn-primary {
  background-color: var(--primary-color);
  color: var(--gray-900);
  border-color: var(--primary-color);
}

.claims-btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

[data-theme="dark"] .claims-btn-primary {
  background-color: var(--primary-color);
  color: var(--gray-900);
}

/* Secondary button (No) */
.claims-btn-secondary {
  background-color: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.claims-btn-secondary:hover:not(:disabled) {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

[data-theme="dark"] .claims-btn-secondary {
  background-color: var(--gray-100);
  color: var(--gray-800);
  border-color: var(--gray-300);
}

[data-theme="dark"] .claims-btn-secondary:hover:not(:disabled) {
  background-color: var(--gray-200);
}

/* Success button (Confirm/Fixed) */
.claims-btn-success {
  background-color: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.claims-btn-success:hover:not(:disabled) {
  background-color: #059669;
  border-color: #059669;
}

/* Warning button (Edit) */
.claims-btn-warning {
  background-color: var(--warning-color);
  color: white;
  border-color: var(--warning-color);
}

.claims-btn-warning:hover:not(:disabled) {
  background-color: #d97706;
  border-color: #d97706;
}

.claims-btn-info {
  background-color: var(--info-color);
  color: white;
  border-color: var(--info-color);
}

.claims-btn-info:hover:not(:disabled) {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Danger button (Cancel) */
.claims-btn-danger {
  background-color: var(--error-color);
  color: white;
  border-color: var(--error-color);
}

.claims-btn-danger:hover:not(:disabled) {
  background-color: #dc2626;
  border-color: #dc2626;
}

.message-content ol {
  list-style-type: decimal;
  margin-left: 20px;
  padding-left: 20px;
}


/* Responsive button layout */
@media (max-width: 640px) {
  .claims-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    min-width: 100px;
  }

  .claims-buttons.flex {
    flex-direction: column;
  }

  .claims-btn.flex-1 {
    width: 100%;
  }
}

/* Button animation on selection */
.claims-btn.ring-2 {
  animation: pulse-ring 0.3s ease-out;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* High contrast mode for buttons */
@media (prefers-contrast: high) {
  .claims-btn {
    border-width: 3px;
    font-weight: 600;
  }
}

/* ========== End Claims Flow Styles ========== */
