/* Junto custom styles - works with Tailwind CDN */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #FAFAF7; color: #1A1A16; min-height: 100dvh; line-height: 1.5; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 9999px; font-weight: 600; transition: all 0.15s; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: #2D5016; color: white; }
.btn-primary:hover { background: #3d6b20; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: #EBF2E4; color: #2D5016; }
.btn-ghost { background: transparent; color: #1A1A16; border: 2px solid #E8E8E2; }
.btn-ghost:hover { border-color: #d1d1c8; }
.btn-danger { background: #C0392B; color: white; }
.btn-full { width: 100%; }

.card { background: white; border-radius: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); padding: 1.25rem; cursor: pointer; transition: all 0.15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card-category { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; color: #5A5A52; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.card-title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.5rem; }
.card-note { font-size: 0.875rem; color: #5A5A52; font-style: italic; margin-bottom: 1rem; padding-left: 0.75rem; border-left: 2px solid #EBF2E4; }
.card-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: #888880; margin-bottom: 1rem; }

.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #888880; text-decoration: none; font-size: 0.75rem; font-weight: 500; padding: 0.5rem; border-radius: 0.5rem; transition: color 0.15s; }
.nav-item.active, .nav-item:hover { color: #2D5016; }
.nav-item__icon { font-size: 1.25rem; line-height: 1; }

.msg { max-width: 78%; display: flex; flex-direction: column; gap: 2px; }
.msg-mine { align-self: flex-end; align-items: flex-end; }
.msg-theirs { align-self: flex-start; }
.msg-system { align-self: center; max-width: 90%; }
.msg__body { padding: 0.5rem 1rem; border-radius: 1rem; font-size: 0.875rem; line-height: 1.45; }
.msg-mine .msg__body { background: #2D5016; color: white; border-bottom-right-radius: 4px; }
.msg-theirs .msg__body { background: white; border: 1px solid #E8E8E2; border-bottom-left-radius: 4px; }
.msg-system .msg__body { background: #EBF2E4; color: #2D5016; font-size: 0.75rem; text-align: center; border-radius: 9999px; }
.msg-time { font-size: 10px; color: #888880; }

.toast { background: #1A1A16; color: white; padding: 0.75rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; white-space: nowrap; animation: toast-in 0.25s ease, toast-out 0.25s ease 2.75s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
