/* Hermes Dashboard - Clean CSS v3.0 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #08090a;
  color: #f7f8f8;
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #0f1011;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #f7f8f8; margin-bottom: 32px; }
.logo-icon { color: #5e6ad2; font-size: 24px; }

.nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: 6px;
  color: #8a8f98; font-size: 14px; font-weight: 500;
  transition: all 0.2s; cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: #f7f8f8; }
.nav-item.active { background: rgba(94,106,210,0.15); color: #5e6ad2; }
.nav-icon { font-size: 18px; width: 24px; text-align: center; }

.nav-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 16px 0; }

.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; margin-top: auto; }
.user-info { display: flex; align-items: center; gap: 12px; }
.user-avatar { font-size: 32px; }
.user-name { font-weight: 600; font-size: 14px; }
.user-role { color: #8a8f98; font-size: 12px; }

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  max-width: 1400px;
}

/* Tab Content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Page Header */
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.page-subtitle { color: #8a8f98; font-size: 14px; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.stat-card {
  background: #0f1011;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.stat-icon { font-size: 32px; margin-bottom: 12px; }
.stat-value { font-size: 36px; font-weight: 700; color: #f7f8f8; }
.stat-label { color: #8a8f98; font-size: 14px; margin-top: 4px; }

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: #5e6ad2; color: white; }
.btn-primary:hover { background: #7170ff; }
.btn-secondary { background: #0f1011; color: #8a8f98; border: 1px solid rgba(255,255,255,0.08); }
.btn-secondary:hover { background: #191a1b; }

/* Actions Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.action-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: #0f1011;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; cursor: pointer;
  transition: all 0.2s; color: #f7f8f8;
}
.action-btn:hover { background: #191a1b; border-color: #5e6ad2; }
.action-icon { font-size: 24px; }

/* Activity List */
.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: #0f1011;
  border-radius: 8px;
}
.activity-icon { font-size: 20px; }
.activity-text { color: #f7f8f8; font-size: 14px; }
.activity-time { color: #8a8f98; font-size: 12px; }

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Cards */
.card {
  background: #0f1011;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
}
.card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.card-emoji { font-size: 24px; }
.card-title { flex: 1; font-weight: 600; font-size: 16px; }
.card-body { color: #8a8f98; font-size: 14px; line-height: 1.6; }
.card-meta { margin-top: 8px; font-size: 13px; }
.card-meta strong { color: #f7f8f8; }

/* Status Badges */
.status-badge {
  padding: 4px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 500;
}
.status-badge[style*="built"] { background: rgba(16,185,129,0.2) !important; color: #10b981 !important; }
.status-badge[style*="planned"] { background: rgba(245,158,11,0.2) !important; color: #f59e0b !important; }
.status-badge[style*="needs_fix"] { background: rgba(251,86,91,0.2) !important; color: #fb565b !important; }

/* Category Badge */
.category-badge {
  padding: 4px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 500;
  background: rgba(94,106,210,0.2); color: #5e6ad2;
}

/* Card Actions */
.card-actions {
  display: flex; gap: 8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 4px; border: none; cursor: pointer; }
.btn-edit { background: rgba(59,130,246,0.2); color: #3b82f6; }
.btn-delete { background: rgba(251,86,91,0.2); color: #fb565b; }

/* Chat */
.chat-container {
  background: #0f1011;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  height: calc(100vh - 200px);
  display: flex; flex-direction: column;
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.chat-message { display: flex; gap: 16px; max-width: 80%; }
.chat-message.user-message { margin-left: auto; flex-direction: row-reverse; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #191a1b; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-bubble {
  background: #191a1b; padding: 12px 16px;
  border-radius: 12px; color: #f7f8f8; line-height: 1.5;
}
.user-message .chat-bubble { background: #5e6ad2; color: white; }

.typing-indicator { animation: typing 1.4s infinite; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-input-container {
  display: flex; gap: 8px;
  padding: 16px; border-top: 1px solid rgba(255,255,255,0.05);
}
.chat-input {
  flex: 1; padding: 12px 16px;
  background: #08090a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; color: #f7f8f8;
  font-family: 'Inter', sans-serif; font-size: 14px;
}
.chat-send-btn {
  padding: 12px 20px; background: #5e6ad2;
  color: white; border: none; border-radius: 8px;
  cursor: pointer; font-size: 18px;
}
.chat-send-btn:hover { background: #7170ff; }

/* Modal */
.modal {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 1000;
  align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  background: #0f1011; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 32px;
  width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px;
}
.modal-header h2 { font-size: 20px; font-weight: 600; }
.modal-close { cursor: pointer; font-size: 24px; color: #8a8f98; }
.modal-close:hover { color: #f7f8f8; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 4px;
  color: #8a8f98; font-size: 14px; font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px;
  background: #08090a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; color: #f7f8f8;
  font-family: 'Inter', sans-serif; font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #5e6ad2;
}
.form-actions { display: flex; gap: 16px; justify-content: flex-end; margin-top: 24px; }

/* Memory */
.memory-json {
  background: #08090a; padding: 24px;
  border-radius: 8px; overflow-x: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: #8a8f98;
}
