/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.app-header {
  border-bottom: 1px solid var(--pico-muted-border-color);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.card {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(16, 24, 40, 0.18);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.input {
  width: 100%;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.error {
  color: var(--pico-del-color);
  margin-top: 0.5rem;
}

.helper {
  color: var(--pico-muted-color);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.5rem;
}

.notice {
  background: #fff7e0;
  border: 1px solid #f1d48a;
  color: #7a4f00;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.list-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 160ms ease, background 160ms ease;
}

.list-item:hover {
  border-color: rgba(90, 156, 255, 0.45);
  background: rgba(90, 156, 255, 0.05);
}

.muted {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.habit-link {
  text-decoration: none;
  color: inherit;
}

.habit-link:hover {
  text-decoration: underline;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--pico-border-radius);
  padding: 1rem;
  border: 1px solid var(--pico-muted-border-color);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-label {
  color: var(--pico-muted-color);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-title .actions {
  margin-top: 0;
}

.card-title a[role="button"],
.card-title button {
  margin: 0;
}

.soft-panel {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(90, 156, 255, 0.15);
  color: #8ab4ff;
}

.badge.success {
  background: rgba(57, 181, 99, 0.18);
  color: #7bffb0;
}

.badge.warning {
  background: rgba(241, 212, 138, 0.18);
  color: #ffd77a;
}

.hero {
  display: grid;
  grid-gap: 1.5rem;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(90, 156, 255, 0.2);
  background: linear-gradient(135deg, rgba(90, 156, 255, 0.15), rgba(90, 156, 255, 0.02));
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.25rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.subtle {
  color: rgba(200, 210, 230, 0.7);
  font-size: 0.9rem;
}

.blog-cover {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 1rem;
}

.blog-article .blog-content {
  margin-top: 1.5rem;
  line-height: 1.7;
}

.blog-article .blog-content h2,
.blog-article .blog-content h3 {
  margin-top: 1.5rem;
}

.blog-editor textarea {
  min-height: 220px;
}

.chat-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--pico-muted-border-color);
  background: rgba(255, 255, 255, 0.02);
  max-height: 420px;
  overflow-y: auto;
}

.chat-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.chat-message.user {
  align-self: flex-end;
  background: rgba(90, 156, 255, 0.2);
  border-color: rgba(90, 156, 255, 0.4);
}

.chat-message.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.chat-input {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input textarea {
  resize: vertical;
  min-height: 60px;
}

@media (max-width: 720px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .list {
    grid-template-columns: 1fr;
  }
}

.heatmap {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.heatmap-row {
  display: grid;
  grid-gap: 0.3rem;
  gap: 0.3rem;
}

.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #2b2f3a;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.heatmap-cell:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.heatmap-cell.intensity-0 {
  background: #2b2f3a;
}

.heatmap-cell.intensity-1 {
  background: #274a38;
}

.heatmap-cell.intensity-2 {
  background: #2f7a4a;
}

.heatmap-cell.intensity-3 {
  background: #39b563;
}

/* Micro-interactions */
button,
a[role="button"] {
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button:hover,
a[role="button"]:hover {
  transform: translateY(-1px);
}

button:active,
a[role="button"]:active {
  transform: translateY(0);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(90, 156, 255, 0.2);
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(90, 156, 255, 0.8);
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

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

