/* SayClaw Portal - Common Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;900&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg-page: #E4EBE7;
  --bg-sidebar: #F2F6F4;
  --bg-card: #FFFFFF;
  --bg-input: #EDF3EF;
  --border: #C8D5CE;
  --border-light: #D6E0DA;
  --border-focus: #6EE7B7;
  --brand: #059669;
  --brand-light: #10B981;
  --brand-bg: #D1FAE5;
  --brand-bg-hover: #A7F3D0;
  --text-primary: #1F2D26;
  --text-secondary: #5E7268;
  --text-muted: #8FA498;
  --text-disabled: #B0BFB8;
}

body {
  font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  margin: 0;
}

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; z-index: 50;
}
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
}
.page-container {
  max-width: 960px;
  padding: 48px;
}

/* Nav */
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: #6B7F74; text-decoration: none;
  transition: all 0.15s ease; position: relative;
}
.nav-item:hover { color: #2D3B34; background: #EDF3EF; }
.nav-item.active { color: #047857; background: #D1FAE5; font-weight: 700; }
.nav-item.active::before {
  content: ''; position: absolute; left: -1px; top: 50%;
  transform: translateY(-50%); width: 4px; height: 24px;
  border-radius: 0 4px 4px 0; background: #059669;
}
.nav-section {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #9BAFA3;
  padding: 0 14px; margin-bottom: 8px;
}

/* Status */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-wip { background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.status-pending { background: #C4D1CB; }

/* Card */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: #6EE7B7;
  box-shadow: 0 6px 24px rgba(16,185,129,0.10), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.15s ease; text-decoration: none;
}
.btn-primary {
  background: var(--brand); color: white;
  box-shadow: 0 2px 8px rgba(5,150,105,0.25);
}
.btn-primary:hover { background: #047857; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--brand);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--brand); background: var(--brand-bg); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { background: var(--bg-input); color: var(--text-primary); }

/* Input */
.input-field {
  width: 100%; padding: 12px 16px;
  background: var(--bg-input); border: 2px solid var(--border-light);
  border-radius: 12px; font-size: 14px; font-weight: 500;
  color: var(--text-primary); outline: none;
  transition: border-color 0.15s ease;
}
.input-field:focus { border-color: var(--brand); }
.input-field::placeholder { color: var(--text-muted); }

.input-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 6px;
}

/* Divider */
.divider {
  height: 2px;
  background: linear-gradient(90deg, rgba(5,150,105,0.2) 0%, transparent 100%);
  border-radius: 1px;
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease forwards; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0.25); }
}
.animate-pulse-green { animation: pulse-green 2s infinite; }
