/* ==========================================================================
   NotGhosty Minimal Serenity — Atomic Design System Tokens & Base Styles
   Aesthetic: Apple / Linear / Notion Light Serenity
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-page: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F4F5;
  --border-light: #E5E7EB;
  --border-focus: #18181B;
  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-muted: #71717A;
  
  /* Status Dots & Pills */
  --color-green: #10B981;
  --color-amber: #F59E0B;
  --color-red: #EF4444;
  --color-purple: #8B5CF6;

  /* Typography & Geometry */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   ATOMS
   ========================================== */

/* Buttons */
.btn-primary {
  background-color: #18181B;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #27272A;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #18181B;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #D1D5DB;
}

/* Status Dots */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-green { background-color: var(--color-green); }
.dot-amber { background-color: var(--color-amber); }
.dot-red { background-color: var(--color-red); }
.dot-purple { background-color: var(--color-purple); }

/* Tone-on-tone Badges */
.badge-remark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
  color: #27272A;
}

.badge-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background-color: #F4F4F5;
  color: #27272A;
  transition: all 0.12s ease;
}

.badge-verified-applicant {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* Inputs */
.input-minimal {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: border-color 0.15s ease;
  outline: none;
}
.input-minimal:focus {
  border-color: var(--border-focus);
}

/* ==========================================
   MOLECULES
   ========================================== */

/* Contact Reveal Widget */
.reveal-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text-secondary);
}

.reveal-widget-unlocked {
  background-color: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #166534;
}

/* Toggle Switch Molecule */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #D1D5DB;
  transition: .2s;
  border-radius: 22px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: #18181B;
}
input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* ==========================================
   ORGANISMS
   ========================================== */

.nav-item-active {
  color: #18181B !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #18181B !important;
}

.card-serenity {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-serenity:hover {
  border-color: #D1D5DB;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.15s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Minimal Serenity — Toast System
   ========================================== */
#toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 2.5rem);
}

.toast-serenity {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
  color: var(--text-primary);
  animation: toastSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-serenity.hiding {
  opacity: 0;
  transform: translateY(8px);
}

.toast-serenity-success {
  border-left: 3px solid var(--color-green);
}

.toast-serenity-error {
  border-left: 3px solid var(--color-red);
}

.toast-serenity-info {
  border-left: 3px solid var(--text-primary);
}

.toast-serenity-warning {
  border-left: 3px solid var(--color-amber);
}

.toast-serenity-body {
  flex: 1;
  line-height: 1.45;
}

.toast-serenity-message {
  color: #3F3F46;
  font-size: 0.78rem;
  word-break: break-word;
}

.toast-serenity-close {
  background: none;
  border: none;
  color: #A1A1AA;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.toast-serenity-close:hover {
  color: var(--text-primary);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

