/* CuCu Note Extension Popup Styles - Reuse từ frontend */

:root {
  --background: oklch(0.9818 0.0054 95.0986);
  --foreground: oklch(0.2438 0.0269 95.7226);
  --primary: oklch(0.45 0.08 250);
  --primary-foreground: oklch(0.9818 0.0054 95.0986);
  --muted: oklch(0.9341 0.0153 90.239);
  --muted-foreground: oklch(0.5559 0.0075 97.4233);
  --border: oklch(0.8847 0.0069 97.3627);
  --input: oklch(0.7621 0.0156 98.3528);
  --ring: oklch(0.45 0.08 250);
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.5;
}

/* Button Styles (từ frontend button.tsx) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 14px;
  font-weight: 500;
  transition: all 150ms;
  cursor: pointer;
  border: none;
  padding: 8px 16px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active {
  opacity: 0.8;
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
}

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

/* Input Styles */
.input {
  display: flex;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input);
  background: var(--background);
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 150ms;
  font-family: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px var(--ring);
}

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

/* Textarea Styles */
.textarea {
  display: flex;
  width: 100%;
  min-height: 100px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input);
  background: var(--background);
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 150ms;
  font-family: inherit;
  resize: vertical;
}

.textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px var(--ring);
}

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

/* Label Styles */
.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--foreground);
}

.label-hint {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 4px;
}

/* Card/Container Styles */
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* Error Message */
.error {
  padding: 12px;
  margin-bottom: 16px;
  background: oklch(0.35 0.02 250 / 0.1);
  color: oklch(0.35 0.02 250);
  border-radius: calc(var(--radius) - 2px);
  font-size: 14px;
}

/* Source Info */
.source-info {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.source-info a {
  color: var(--primary);
  text-decoration: none;
}

.source-info a:hover {
  text-decoration: underline;
}

