/* SpecDesk Interface Styles - Black, Gold, and Silver Theme */
:root {
  /* Black, Gold, and Silver Color Palette */
  --primary: #000000; /* Pure black */
  --primary-dark: #0a0a0a;
  --secondary: #1a1a1a; /* Dark gray/black */
  --accent: #d4af37; /* Rich gold */
  --success: #27ae60;
  --warning: #d4af37; /* Gold for warnings */
  --error: #e74c3c;
  
  /* Metallic Colors */
  --metallic-silver: #c0c0c0; /* Metallic silver */
  --metallic-silver-light: #e8e8e8; /* Light silver */
  --metallic-silver-dark: #808080; /* Dark silver */
  --metallic-gold: #d4af37; /* Rich gold */
  --metallic-gold-light: #f4d03f; /* Light gold */
  --metallic-gold-dark: #b8941f; /* Dark gold */
  --pure-black: #000000; /* Pure black */
  --black-dark: #0a0a0a; /* Very dark black */
  --black-light: #1a1a1a; /* Slightly lighter black */
  
  /* SpecDesk Category Color System - Updated to Black/Gold/Silver */
  --spec-black: #000000;       /* Specifications - Black */
  --spec-black-light: #1a1a1a;
  --spec-black-dark: #0a0a0a;
  
  --research-silver: #c0c0c0;         /* Research & Analysis - Silver */
  --research-silver-light: #e8e8e8;
  --research-silver-dark: #808080;
  
  --doc-gold: #d4af37;           /* Document Management - Gold */
  --doc-gold-light: #f4d03f;
  --doc-gold-dark: #b8941f;
  
  --template-gold: #d4af37;         /* Templates - Gold */
  --template-gold-light: #f4d03f;
  --template-gold-dark: #b8941f;
  
  --tech-silver: #c0c0c0;         /* Technical Questions - Silver */
  --tech-silver-light: #e8e8e8;
  --tech-silver-dark: #808080;
  
  --guidance-black: #1a1a1a;        /* Guidance & Best Practices - Black */
  --guidance-black-light: #2a2a2a;
  --guidance-black-dark: #000000;
  
  /* Background Colors - Black Theme */
  --bg-primary: #000000;        /* Pure black background */
  --bg-secondary: #1a1a1a;      /* Dark gray/black */
  --bg-tertiary: #0a0a0a;       /* Very dark black */
  --bg-sidebar: #000000;        /* Black sidebar */
  --bg-header: #000000;         /* Black header */
  
  --text-primary: #e8e8e8;      /* Light text on black */
  --text-secondary: #c0c0c0;    /* Silver text */
  --text-muted: #808080;        /* Muted silver text */
  --text-gold: #d4af37;         /* Gold text for accents */
  
  --border: #2a2a2a;            /* Dark border */
  --border-light: #404040;      /* Lighter border */
  --border-gold: #d4af37;       /* Gold border */
  --border-silver: #c0c0c0;     /* Silver border */
  
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-gold: 0 4px 12px rgba(212, 175, 55, 0.3);
  --shadow-silver: 0 4px 12px rgba(192, 192, 192, 0.2);
}

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

html, body {
  min-height: 100%;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  background-image: 
    /* Metallic texture pattern - Silver and Gold */
    radial-gradient(circle at 20% 80%, rgba(192, 192, 192, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(192, 192, 192, 0.03) 0%, transparent 50%),
    /* Subtle metallic grid - Silver */
    linear-gradient(90deg, rgba(192, 192, 192, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(192, 192, 192, 0.03) 1px, transparent 1px),
    /* Black base */
    linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 20px 20px, 20px 20px, 100% 100%;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.5rem 1.5rem;
  min-height: 100px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--text-secondary);
}

.menu-toggle:hover {
  background: var(--bg-tertiary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.specdesk-logo {
  height: 80px;
  width: auto;
  margin-right: 12px;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.logo-blocks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 48px;
  justify-content: flex-start;
  margin-right: 12px;
}

.block-row {
  display: flex;
  gap: 3px;
  justify-content: flex-start;
}

.block-item {
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  width: 12px;
  height: 12px;
}

.block-item.empty {
  background: transparent;
}

.metallic { 
  background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 15%, #d4d4d4 35%, #c0c0c0 50%, #a8a8a8 65%, #9e9e9e 85%, #c0c0c0 100%);
  background-size: 12px 12px;
  background-image: 
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,0.15) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.05) 75%);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
}

.metallic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  border-radius: inherit;
}

.row-1, .row-2, .row-3, .row-4 {
  width: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: 'Saravak', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--metallic-silver);
  letter-spacing: 0.05em;
  margin-bottom: 1px;
}

.brand-subtitle {
  color: var(--metallic-gold);
  font-family: 'Saravak', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.header-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--bg-tertiary);
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
}

.create-tool-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
}

.create-tool-btn:hover {
  background: var(--primary-dark);
}

.app-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
  border-right: 1px solid var(--border-gold);
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5), -2px 0 20px rgba(212, 175, 55, 0.1);
}

.sidebar-section {
  flex: 1;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-icon {
  font-size: 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  color: var(--metallic-gold);
  border-left: 3px solid var(--metallic-gold);
}

.progress-tracker {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--steel-blue) 0%, var(--light-steel) 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  border: 2px solid var(--metallic-gold);
  position: relative;
  overflow: hidden;
}

.progress-tracker::before {
  content: '⚡';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  opacity: 0.7;
}

.progress-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.progress-title {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.time-saved {
  margin-bottom: 0.5rem;
}

.time-amount {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.time-unit {
  font-size: 0.8rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-message {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  line-height: 1.3;
}

.achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.achievement-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(10px);
}

.achievement-badge.new {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: var(--bg-primary);
  width: 100%;
}

.content-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, 
    rgba(255, 59, 48, 0.05) 0%, 
    rgba(255, 149, 0, 0.05) 25%, 
    rgba(255, 204, 0, 0.05) 50%, 
    rgba(90, 200, 250, 0.05) 75%, 
    rgba(0, 122, 255, 0.05) 100%);
  flex-shrink: 0;
}

.hero-section {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.search-container {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--bg-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.search-btn:hover {
  background: var(--primary-dark);
}

.quick-actions {
  padding: 0 2rem 2rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.actions-section {
  margin-bottom: 2rem;
}

.actions-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.actions-section h3::before {
  content: "ℹ️";
  font-size: 1rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid var(--border-gold);
  border-radius: 0.75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.1);
  color: var(--text-primary);
}

.action-btn .btn-title {
  color: var(--metallic-silver);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.action-btn .btn-category {
  color: var(--metallic-gold);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.action-btn .btn-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.action-btn:hover {
  border-color: var(--metallic-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.btn-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.btn-content {
  flex: 1;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.filter-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.all-tools {
  margin-bottom: 2rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  box-shadow: var(--shadow);
}

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

.tool-card.hot {
  border-color: var(--metallic-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, #1a1a1a 100%);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tool-icon {
  font-size: 1.5rem;
}

.tool-badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.hot {
  background: var(--accent);
  color: white;
}

.badge.favorite {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tool-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tool-section-header {
  grid-column: 1 / -1;
  margin: 2rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.tool-section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tool-section-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chat-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  height: calc(100vh - 60px);
  min-height: 800px;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  max-width: none;
}

.chat-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.back-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.25rem;
}

.back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chat-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.reload-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.reload-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.settings-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.settings-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loading-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-style: italic;
}

.message {
  display: flex;
  gap: 0.75rem;
  max-width: 80%;
}

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

.message.bot {
  align-self: flex-start;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

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

.message.bot .avatar {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.bubble {
  background: var(--bg-tertiary);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  word-wrap: break-word;
}

.message.user .bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.message.bot .bubble {
  border-bottom-left-radius: 0.25rem;
}

.bubble h1, .bubble h2, .bubble h3, .bubble h4 {
  margin: 0.5rem 0;
  color: var(--text-primary);
  font-weight: 600;
}

.bubble h1 { font-size: 1.25rem; }
.bubble h2 { font-size: 1.125rem; }
.bubble h3 { font-size: 1rem; }
.bubble h4 { font-size: 0.875rem; }

.bubble strong {
  font-weight: 600;
  color: var(--text-primary);
}

.bubble em {
  font-style: italic;
}

.bubble ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.bubble li {
  margin: 0.25rem 0;
  line-height: 1.4;
}

.composer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
}

.composer-input-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.composer textarea {
  width: 100%;
  min-height: 60px;
  max-height: 200px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  box-sizing: border-box;
}

.composer textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.composer-buttons {
  display: flex;
  gap: 0.5rem;
}

.attach-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.attach-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.composer button[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

.composer button[type="submit"]:hover:not(:disabled) {
  background: var(--primary-dark);
}

.composer button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Auth Dialog */
#auth-dialog {
  border: 1px solid var(--border-gold);
  border-radius: 0.75rem;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  max-width: 500px;
  width: 90%;
}

.auth-form {
  padding: 2rem;
}

.auth-form h3 {
  color: var(--metallic-gold);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.auth-form label {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--metallic-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.auth-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  min-height: 1.5rem;
  text-align: center;
}

.auth-form menu {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0;
}

.auth-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.auth-form #login-btn,
.auth-form #signup-btn {
  background: var(--metallic-gold);
  color: #000;
}

.auth-form #login-btn:hover,
.auth-form #signup-btn:hover {
  background: var(--metallic-gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.auth-form #show-signup,
.auth-form #show-login {
  background: transparent;
  color: var(--metallic-silver);
  border: 1px solid var(--border);
}

.auth-form #show-signup:hover,
.auth-form #show-login:hover {
  background: var(--bg-tertiary);
  border-color: var(--metallic-gold);
}

.auth-form #close-auth,
.auth-form #close-auth-signup {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.auth-form #close-auth:hover,
.auth-form #close-auth-signup:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

#settings-dialog {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.settings {
  padding: 2rem;
  min-width: 400px;
}

.settings h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.settings label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.settings input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.settings input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.settings menu {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.settings button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.settings #save-settings {
  background: var(--primary);
  color: white;
}

.settings #save-settings:hover {
  background: var(--primary-dark);
}

.settings #close-settings {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.settings #close-settings:hover {
  background: var(--border);
}

#calculator-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90vw;
  background: var(--bg-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.calculator-modal {
  display: flex;
  flex-direction: column;
}

.calculator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--steel-blue) 0%, var(--light-steel) 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.calculator-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.calculator-body {
  padding: 1.5rem;
}

.calculator-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.disclaimer {
  padding: 0.75rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #856404;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: fixed;
    top: 64px;
    left: -100%;
    height: calc(100vh - 64px);
    z-index: 50;
    transition: left 0.3s ease;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .content-header {
    padding: 1rem;
  }
  
  .chat-container {
    margin: 0.5rem;
    height: 500px;
  }
  
  .header-right {
    gap: 0.5rem;
  }
  
  .create-tool-btn {
    display: none;
  }
}
