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

:root {
  --olive-1: #6b7a4f;
  --olive-2: #838f5e;
  --olive-dark: #4d5738;
  --sage-1: #a3b18a;
  --sage-2: #b9c4a3;
  --sage-3: #cdd9bd;
  --beige-1: #f6f1e7;
  --beige-2: #efe4cd;
  --beige-3: #e6d9b8;
  --ink: #3f4436;
}

body {
  background: var(--beige-1);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
}

.d-flex { display: block !important; }

.topnav {
  background: linear-gradient(90deg, var(--olive-1) 0%, var(--olive-dark) 60%, var(--olive-2) 100%);
  padding: .7rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.topnav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.topnav-title {
  color: var(--beige-1);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
  margin-right: 1.5rem;
  white-space: nowrap;
}

.topnav .nav-link {
  color: var(--beige-1);
  padding: .45rem .85rem;
  border-radius: 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.topnav .nav-link:hover { background: rgba(255,255,255,.16); }
.topnav .nav-link.active { background: var(--sage-2); color: var(--olive-dark); }
.topnav .logout-link { margin-left: auto; }

.content {
  padding: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.page-title {
  color: var(--olive-dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--sage-2);
  padding-bottom: .6rem;
}

h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--olive-dark);
  font-size: 20px;
  letter-spacing: .01em;
}

/* Kulaté odznaky pro potvrzování / stavy (ano-ne, RSVP, splněno) */
.status-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
}
.status-circle.yes    { background: var(--sage-3); color: var(--olive-dark); border-color: var(--olive-1); }
.status-circle.no     { background: var(--beige-3); color: #8a6a45; border-color: #c9a96e; }
.status-circle.pending { background: var(--beige-2); color: #9c8b5e; border-color: var(--beige-3); }
.status-circle.done   { background: var(--olive-1); color: #fff; border-color: var(--olive-dark); }

/* Kulaté zaškrtávátko (ví o svatbě / přespání atd.) */
input.circle-check {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--olive-1);
  background: #fff;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}
input.circle-check:checked {
  background: var(--sage-3);
  border-color: var(--olive-dark);
}
input.circle-check:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--olive-dark);
  font-weight: 700;
  font-size: .9rem;
}

/* RSVP select jako barevná pilulka podle stavu */
select.rsvp-select {
  border-radius: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid var(--olive-1);
}
select.rsvp-select.st-potvrdil { background: var(--sage-3); color: var(--olive-dark); }
select.rsvp-select.st-odmitl { background: var(--beige-3); color: #8a6a45; border-color: #c9a96e; }
select.rsvp-select.st-nezjisteno { background: var(--beige-2); color: #9c8b5e; }

.card-section {
  background: #fffdf8;
  border: 1px solid var(--beige-3);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.btn-primary, .btn-blush {
  background: var(--olive-1);
  border-color: var(--olive-1);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.btn-primary:hover, .btn-blush:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
}

.option-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--sage-3);
  border-radius: 20px;
  padding: .35rem .8rem;
  margin: .2rem;
  background: var(--beige-1);
}
.option-pill.selected {
  background: var(--sage-2);
  color: var(--olive-dark);
  border-color: var(--olive-1);
  font-weight: 600;
}

.note-toggle {
  cursor: pointer;
  font-size: .85rem;
  color: var(--olive-dark);
  text-decoration: underline;
}

.note-box {
  display: none;
  margin-top: .4rem;
}
.note-box.open { display: block; }

textarea.mini-note {
  width: 100%;
  min-height: 50px;
  font-family: 'Lora', Georgia, serif;
  font-size: .9rem;
  border-radius: 6px;
  border: 1px solid var(--beige-3);
  padding: .4rem;
  background: var(--beige-1);
}

table.table-app th {
  background: var(--olive-1);
  color: var(--beige-1);
  white-space: nowrap;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}
table.table-app td { vertical-align: middle; }
table.table-app tbody tr:nth-child(even) { background: var(--beige-2); }

.done-task { text-decoration: line-through; color: #999; }
.struck-note { text-decoration: line-through; opacity: .55; }

.note-card {
  border: 1px solid var(--sage-3);
  border-radius: 12px;
  background: var(--beige-1);
}
.note-card .note-toolbar button {
  border: none;
  background: none;
  padding: .2rem .4rem;
  font-size: 1rem;
}
.note-card .note-toolbar button:hover { background: var(--sage-3); border-radius: 4px; }
.note-content[contenteditable="true"] {
  min-height: 100px;
  padding: .5rem;
  outline: none;
  border-top: 1px solid var(--sage-3);
  background: #fffdf8;
}

@media (max-width: 900px) {
  .topnav-inner { justify-content: flex-start; }
  .topnav .logout-link { margin-left: 0; }
  .content { padding: 1rem; }
}
