/* === Dr. Promptshake v7.3.0 — Components === */

/* === Buttons === */

.btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-med);
  margin-top: 12px;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-cream {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-med);
  margin-top: 12px;
}

.btn-cream:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-secondary {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-med);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.ai-btn {
  padding: 10px 24px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-med);
}

.ai-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.logout-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition-med);
  font-weight: 300;
}

.logout-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.history-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

/* === Inputs === */

.input-group { margin-bottom: 24px; }

.input-group input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--transition-med);
  font-weight: 300;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.input-group input::placeholder { color: var(--text-secondary); }

/* === Tabs === */

.nav-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  background: var(--bg-secondary);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 11px 20px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-med);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  user-select: none;
}

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

.tab.active {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 500;
}

/* === Dropdown === */

.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 170px;
  box-shadow: var(--shadow);
  z-index: 1000;
  overflow: hidden;
  animation: fadeIn 0.15s ease-out;
}

.dropdown-menu.show { display: block; }

.dropdown-item {
  padding: 14px 20px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
  font-weight: 300;
}

.dropdown-item:hover { background: var(--bg-tertiary); }
.dropdown-item:not(:last-child) { border-bottom: 1px solid var(--border); }

/* === Toast === */

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 14px 22px;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  z-index: 10100;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s var(--ease-out);
  backdrop-filter: blur(12px);
}

.toast.error { border-color: #e5533d; color: #e5533d; }
.toast.ok { border-color: var(--accent); color: var(--accent); }

/* === Thinking Indicator === */

.thinking-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.thinking-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: thinkBounce 1.4s ease-in-out infinite;
}

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

/* === Note Card (day view entries) === */

.note-card {
  padding: 16px 24px;
  margin: 0 7px;
  cursor: pointer;
  transition: all var(--transition-med);
  border-radius: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.note-card:last-child {
  border-bottom: none;
}

.note-card:hover {
  background: var(--bg-tertiary);
}

.note-card .note-time {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 400;
}

.note-card .note-content {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 300;
}

.note-card.ai .note-time { color: var(--accent); }
.note-card.ai { border-left: 2px solid var(--accent); }

/* === Empty State === */

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 300;
  opacity: 0.7;
}
