/* SavedIn Shared Styles — matches landing page design */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0f1c;
  --slate: #3d4663;
  --mist: #8892b0;
  --cloud: #e8ecf4;
  --snow: #f7f8fc;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --warm: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--snow);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
}

/* NAVIGATION */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  backdrop-filter: blur(20px);
  background: rgba(247, 248, 252, 0.92);
  border-bottom: 1px solid var(--cloud);
}

.app-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-user {
  font-size: 0.85rem;
  color: var(--mist);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--cloud);
}
.btn-secondary:hover {
  border-color: var(--accent-light);
  background: var(--accent-glow);
}

.btn-danger {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}
.btn-danger:hover {
  background: #fee2e2;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-ghost {
  background: transparent;
  color: var(--mist);
  padding: 0.4rem 0.75rem;
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--cloud);
}

/* INPUTS */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cloud);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input::placeholder {
  color: var(--mist);
}

/* CARDS */
.card {
  background: white;
  border: 1px solid var(--cloud);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.card:hover {
  border-color: var(--accent-light);
}

/* LABELS / TAGS */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.tag:hover { opacity: 0.8; }

.tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  opacity: 0.6;
  padding: 0;
  line-height: 1;
}
.tag-remove:hover { opacity: 1; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.toast-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--mist);
}
.empty-state h3 {
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 15, 28, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.modal-overlay.active .modal {
  transform: scale(1);
}
.modal h3 {
  margin-bottom: 1rem;
}
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* SPINNER */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cloud);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 768px) {
  .app-nav { padding: 0.75rem 1rem; }
}
