/* Enlazze — Global Styles · Paleta Terracota */
:root {
  --terracota: #B5766A;
  --terracota-light: #D4A99F;
  --terracota-pale: #F0E4E0;
  --tierra: #2C2422;
  --tierra-muted: #6B5752;
  --tierra-hint: #8A6E69;
  --arena: #F5EEE9;
  --arena-dark: #EDE4DC;
  --lino: #E8DDD7;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font); font-size: 15px; color: var(--tierra); background: var(--arena); -webkit-font-smoothing: antialiased; }

/* Logo */
.logo-symbol { display:inline-flex; align-items:center; gap:10px; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 22px; border-radius:var(--radius-full);
  font-family:var(--font); font-size:14px; font-weight:500;
  cursor:pointer; border:none; transition:opacity 0.15s, transform 0.1s;
  text-decoration:none; width:100%;
}
.btn:active { transform:scale(0.97); }
.btn:disabled { opacity:0.5; cursor:not-allowed; }
.btn-primary { background:var(--terracota); color:var(--white); }
.btn-primary:hover { opacity:0.88; }
.btn-secondary { background:var(--white); color:var(--tierra); border:1.5px solid var(--lino); }
.btn-secondary:hover { background:var(--arena); }
.btn-ghost { background:transparent; color:var(--tierra-muted); }
.btn-ghost:hover { background:var(--arena-dark); }
.btn-lg { padding:14px 32px; font-size:15px; }
.btn-sm { padding:7px 16px; font-size:12px; width:auto; }
.btn-block { width:100%; }
.btn-icon { width:36px; height:36px; padding:0; border-radius:50%; }

/* Inputs */
.input {
  width:100%; padding:11px 14px;
  border:1.5px solid var(--lino); border-radius:var(--radius-md);
  font-family:var(--font); font-size:14px; color:var(--tierra);
  background:var(--white); outline:none; transition:border-color 0.15s;
}
.input:focus { border-color:var(--terracota); }
.input::placeholder { color:var(--tierra-hint); }
.input-label { font-size:12px; font-weight:500; color:var(--tierra-muted); margin-bottom:5px; display:block; }
.form-group { margin-bottom:16px; }

/* Cards */
.card { background:var(--white); border-radius:var(--radius-lg); border:1px solid var(--lino); padding:20px; }
.card-sm { background:var(--white); border-radius:var(--radius-md); border:1px solid var(--lino); padding:14px 16px; }

/* Badges */
.badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:var(--radius-full); font-size:11px; font-weight:500; }
.badge-success { background:#EAF2E6; color:#4A7040; }
.badge-warning { background:#F5EDDF; color:#8A6A2E; }
.badge-danger  { background:#F5E6E6; color:#8A3A3A; }
.badge-primary { background:var(--terracota-pale); color:var(--terracota); }
.badge-neutral { background:var(--lino); color:var(--tierra-muted); }

/* Stat cards */
.stat-card { background:var(--arena-dark); border-radius:var(--radius-md); padding:14px 16px; text-align:center; }
.stat-num { font-size:24px; font-weight:600; color:var(--tierra); }
.stat-label { font-size:11px; color:var(--tierra-hint); margin-top:2px; }

/* App layout */
.app-shell { display:flex; min-height:100vh; }
.sidebar {
  width:220px; flex-shrink:0; background:var(--tierra);
  display:flex; flex-direction:column; padding:28px 0;
  position:fixed; top:0; left:0; height:100vh; z-index:100;
}
.sidebar-logo { padding:0 24px 28px; border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:16px; }
.nav-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 24px; color:rgba(255,255,255,0.6);
  font-size:13px; cursor:pointer; transition:all 0.15s;
  text-decoration:none; border-left:3px solid transparent;
}
.nav-item:hover { color:var(--white); background:rgba(255,255,255,0.06); }
.nav-item.active { color:var(--white); border-left-color:var(--terracota); background:rgba(181,118,106,0.12); }
.nav-icon { width:16px; height:16px; opacity:0.7; flex-shrink:0; }
.nav-section { font-size:9px; letter-spacing:2px; color:rgba(255,255,255,0.3); padding:16px 24px 6px; text-transform:uppercase; }
.main-content { margin-left:220px; flex:1; padding:32px; min-height:100vh; }
.page-header { margin-bottom:28px; }
.page-title { font-size:22px; font-weight:600; color:var(--tierra); }
.page-subtitle { font-size:13px; color:var(--tierra-hint); margin-top:4px; }

/* Topbar */
.topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.couple-name { font-size:18px; font-weight:600; color:var(--tierra); }
.wedding-date { font-size:12px; color:var(--tierra-hint); margin-top:2px; }

/* Error */
.error-msg { background:#F5E6E6; color:#8A3A3A; font-size:13px; padding:10px 14px; border-radius:8px; margin-bottom:16px; }

/* Divider */
.divider { border:none; border-top:1px solid var(--lino); margin:20px 0; }

/* Utils */
.flex { display:flex; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
.gap-1 { gap:8px; }
.gap-2 { gap:16px; }
.gap-3 { gap:24px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.mt-1 { margin-top:8px; } .mt-2 { margin-top:16px; } .mt-3 { margin-top:24px; }
.mb-1 { margin-bottom:8px; } .mb-2 { margin-bottom:16px; }
.text-sm { font-size:13px; } .text-xs { font-size:11px; }
.text-muted { color:var(--tierra-muted); } .text-hint { color:var(--tierra-hint); }
.text-primary { color:var(--terracota); } .text-center { text-align:center; }
.font-medium { font-weight:500; } .font-semibold { font-weight:600; }
.w-full { width:100%; }

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

/* Table */
.table { width:100%; border-collapse:collapse; font-size:13px; }
.table th { text-align:left; padding:10px 12px; color:var(--tierra-hint); font-weight:500; border-bottom:1px solid var(--lino); font-size:11px; letter-spacing:0.5px; text-transform:uppercase; }
.table td { padding:12px; border-bottom:1px solid var(--lino); color:var(--tierra); }
.table tr:last-child td { border-bottom:none; }
.table tr:hover td { background:var(--arena); }

/* Modal */
.modal-overlay { position:fixed; inset:0; background:rgba(44,36,34,0.5); z-index:200; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal { background:var(--white); border-radius:var(--radius-lg); padding:28px; width:100%; max-width:440px; }
.modal-title { font-size:18px; font-weight:600; color:var(--tierra); margin-bottom:20px; }
.modal-footer { display:flex; gap:10px; margin-top:24px; justify-content:flex-end; }

/* Progress bar */
.progress { height:6px; background:var(--lino); border-radius:3px; overflow:hidden; }
.progress-bar { height:100%; background:var(--terracota); border-radius:3px; transition:width 0.4s ease; }

/* Scrollbar */
::-webkit-scrollbar { width:4px; } ::-webkit-scrollbar-track { background:transparent; } ::-webkit-scrollbar-thumb { background:var(--lino); border-radius:4px; }

/* Responsive */
@media (max-width:768px) {
  .sidebar { display:none; }
  .main-content { margin-left:0; padding:20px 16px; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
}
