/* DaySync - Shared Styles (based on mychat) */

/* Universal box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Design System Variables */
:root {
  /* Colors */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --primary-dark: 221.2 83.2% 45%;
  --secondary: 210 40% 98%;
  --secondary-foreground: 222.2 84% 4.9%;
  --muted: 210 40% 98%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 98%;
  --accent-foreground: 222.2 84% 4.9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  --radius: 0.5rem;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(221.2 83.2% 53.3%), hsl(221.2 83.2% 45%));

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-elevated: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 221.2 83.2% 53.3%;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Sizing */
.min-h-screen {
  min-height: 100vh;
}

.w-full {
  width: 100%;
}

.w-3\/4 {
  width: 75%;
}

.w-auto {
  width: auto;
}

.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; } /* 56px */
.h-20 { height: 5rem; } /* 80px */

/* Spacing */
.p-4 { padding: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Colors */
.bg-background {
  background-color: hsl(var(--background));
}

.bg-card\/50 {
  background-color: hsl(var(--card) / 0.5);
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-muted-foreground\/50 {
  color: hsl(var(--muted-foreground) / 0.5);
}

.text-primary {
  color: hsl(var(--primary));
}

.text-white {
  color: white;
}

.text-destructive {
  color: hsl(var(--destructive));
}

.text-green-600 {
  color: #16a34a;
}

.text-red-600 {
  color: #dc2626;
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Borders */
.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-border {
  border-color: hsl(var(--border));
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Position */
.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-40 {
  z-index: 40;
}

/* Logo styling */
.logo-img {
  padding: 0.25rem;
  background: white;
  border-radius: 0.375rem;
}

.dark .logo-img {
  background: white;
}

/* Logo theme switching */
.logo-dark {
  display: none;
}

.dark .logo-light {
  display: none;
}

.dark .logo-dark {
  display: inline-block;
}

/* Header */
header {
  flex-shrink: 0;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--card) / 0.5);
  backdrop-filter: blur(4px);
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* Chat input */
#chat-form {
  flex-shrink: 0;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--card) / 0.5);
  backdrop-filter: blur(4px);
  padding: 1rem;
}

/* Backdrop */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Overflow */
.overflow-y-auto {
  overflow-y: auto;
}

/* Max Width */
.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-6xl {
  max-width: 72rem;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  height: 2.5rem;
  padding: 0.5rem 1rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background-color: hsl(var(--primary-dark));
  box-shadow: var(--shadow-elevated);
}

.btn-outline {
  height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.btn-outline:hover:not(:disabled) {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-sm {
  height: 2.25rem;
  border-radius: 0.375rem;
  padding: 0 0.75rem;
}

.input {
  display: flex;
  min-height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

.input.resize-none {
  resize: none;
}

.input:hover {
  border-color: hsl(var(--border));
  box-shadow: 0 0 0 1px hsl(var(--border) / 0.5);
}

.input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Dark mode input styling */
.dark .input {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.dark .input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Card Components */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-content {
  padding: 1.5rem;
}

/* Message Components */
.message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.message.user {
  flex-direction: row-reverse;
}

.message.user .message-content {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.message-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: hsl(var(--primary));
  color: white;
}

.message.user .message-avatar {
  background-color: hsl(var(--primary));
}

.message.assistant .message-avatar {
  background: var(--gradient-primary);
}

.message-content {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.6;
}

.message.assistant .message-content {
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.loading-indicator span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(var(--muted-foreground));
  animation: pulse 1.5s ease-in-out infinite;
}

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

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

/* Animations */
@keyframes pulse {
  0%, 70%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  35% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Utility Classes */
.hidden {
  display: none;
}

.block {
  display: block;
}

.cursor-pointer {
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .card-header,
  .card-content {
    padding: 1rem;
  }
  
  .message-content {
    max-width: 90%;
  }
  
  .btn {
    min-height: 44px;
  }
  
  .input {
    min-height: 44px;
  }
  
  /* Mobile chat input positioning */
  #chat-form {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 0.75rem;
    border-radius: 0;
    z-index: 50;
    /* Add safe area support for iPhone */
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
  
  /* Adjust messages container to account for fixed input */
  #messages-container {
    padding-bottom: 6rem; /* Space for fixed input + safe area */
  }
  
  /* Ensure input container takes full width on mobile */
  .w-3\/4 {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Improve mobile scrolling */
  #messages-container {
    -webkit-overflow-scrolling: touch;
  }
}

/* iPhone specific adjustments */
@media (max-width: 480px) {
  #chat-form {
    padding: 0.5rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  }
  
  #messages-container {
    padding-bottom: 5.5rem;
  }
  
  .message-content {
    max-width: 95%;
  }
}

/* Dark mode specific adjustments */
.dark .message-content {
  background-color: hsl(var(--card));
  border-color: hsl(var(--border));
}

.dark .card {
  background-color: hsl(var(--card));
  border-color: hsl(var(--border));
}

/* Markdown content styling */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.message-content p {
  margin-bottom: 0.75rem;
}

.message-content ul,
.message-content ol {
  margin-left: 1rem;
  margin-bottom: 0.75rem;
}

.message-content li {
  margin-bottom: 0.25rem;
}

.message-content code {
  background-color: hsl(var(--muted));
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
}

.message-content pre {
  background-color: hsl(var(--muted));
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.message-content pre code {
  background: none;
  padding: 0;
}

.message-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-color: hsl(var(--primary) / 0.5);
  transition: all 0.2s ease;
}

.message-content a:hover {
  color: hsl(var(--primary-dark));
  text-decoration-color: hsl(var(--primary-dark));
}

/* Message duration styling */
.message-duration {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
  text-align: right;
  font-style: italic;
}

/* Tool badge styling */
.tool-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Tool call accordion styling (CSS-only, no JavaScript) */
.tool-call-accordion {
  margin: 0.75rem 0;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  background-color: hsl(var(--muted) / 0.3);
  overflow: hidden;
}

/* Hide the checkbox */
.tool-call-accordion .accordion-toggle {
  display: none;
}

/* Label acts as the clickable header */
.tool-call-accordion .accordion-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.tool-call-accordion .accordion-label:hover {
  background-color: hsl(var(--muted) / 0.5);
}

.tool-call-accordion .accordion-label .tool-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.tool-call-accordion .accordion-label .tool-name {
  flex: 1;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
}

.tool-call-accordion .accordion-label .chevron-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
}

/* Rotate chevron when expanded */
.tool-call-accordion .accordion-toggle:checked + .accordion-label .chevron-icon {
  transform: rotate(180deg);
}

/* Content section - hidden by default */
.tool-call-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}

/* Show content when checkbox is checked */
.tool-call-accordion .accordion-toggle:checked ~ .accordion-content {
  max-height: 500px;
  border-top-color: hsl(var(--border));
}

.tool-call-accordion .accordion-content code {
  display: block;
  padding: 0.75rem;
  background-color: hsl(var(--background));
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Dark mode adjustments */
.dark .tool-call-accordion {
  background-color: hsl(var(--muted) / 0.2);
}

.dark .tool-call-accordion .accordion-content code {
  background-color: hsl(var(--background));
}

/* Tools Modal Styling */
.tools-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

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

.tools-modal {
  background-color: hsl(var(--background));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

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

.tools-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.tools-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.tools-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: var(--transition-smooth);
  border-radius: 0.375rem;
}

.tools-modal-close:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.tools-modal-content {
  overflow-y: auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tool-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.tool-card:hover {
  box-shadow: var(--shadow-elevated);
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-2px);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tool-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.tool-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.tool-card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.tool-card-params {
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.tool-card-params strong {
  display: block;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.tool-card-params ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tool-card-params li {
  margin: 0;
}

.tool-card-params code {
  display: inline-block;
  background-color: hsl(var(--muted));
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--primary));
  font-weight: 500;
}

/* Dark mode adjustments for modal */
.dark .tools-modal {
  background-color: hsl(var(--background));
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.dark .tool-card {
  background-color: hsl(var(--card));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .tool-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Status indicator hover effect */
#status-indicator {
  transition: var(--transition-smooth);
}

#status-indicator:hover {
  background-color: hsl(var(--muted) / 0.7);
  transform: scale(1.02);
}

/* Model Info Display */
#model-info-display {
  transition: var(--transition-smooth);
  border: 1px solid hsl(var(--border));
}

#model-info-display:hover {
  background-color: hsl(var(--muted) / 0.7);
  transform: scale(1.02);
}

#llm-provider {
  font-size: 0.75rem;
  line-height: 1;
  margin-bottom: 2px;
}

#llm-model {
  font-size: 0.65rem;
  line-height: 1;
}

/* User Info Display */
#user-info-display {
  transition: var(--transition-smooth);
  border: 1px solid hsl(var(--border));
}

#user-info-display:hover {
  background-color: hsl(var(--muted) / 0.7);
  transform: scale(1.02);
}

#user-name {
  font-size: 0.75rem;
  line-height: 1;
  margin-bottom: 2px;
}

#user-email {
  font-size: 0.65rem;
  line-height: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .tools-modal {
    max-height: 90vh;
    margin: 1rem;
  }
  
  .tools-modal-content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .tools-modal-header {
    padding: 1rem;
  }
  
  #model-info-display {
    max-width: 180px;
  }
  
  #llm-provider,
  #llm-model {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  #user-info-display {
    max-width: 150px;
  }
  
  #user-name,
  #user-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

