:root {
  --ink: #172b27;
  --muted: #687a75;
  --green: #1b7467;
  --green-dark: #125b51;
  --mint: #e5f3ee;
  --paper: #f5f8f6;
  --line: #dce7e2;
  --white: #fff;
  --coral: #b94c45;
  --shadow: 0 12px 34px rgba(30, 72, 61, 0.07);
}
* {
  box-sizing: border-box;
}

.logo{
    width: 50px;

    display: block;
    max-width: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 "DM Sans",
    sans-serif;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.brand {
  font-family: Manrope, "DM Sans", sans-serif;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.045em;
  margin: 0.1rem 0 0;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.55rem;
}
h3 {
  font-size: 1rem;
  margin: 0 0 0.15rem;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.topbar {
  height: auto;
  min-height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc((100vw - 1160px) / 2), 24px);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.17rem;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  color: white;
  /* background: var(--green); */
  border-radius: 12px;
  width: 35px;
  height: 35px;
  font-size: 1.5rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav a {
  font-size: 0.91rem;
  color: #40534e;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav a:hover {
  background: var(--mint);
  color: var(--green-dark);
  text-decoration: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--ink);
}
.container {
  max-width: 1160px;
  margin: 38px auto 68px;
  padding: 0 24px;
  min-height: 70vh;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 5px;
}
.welcome,
.muted {
  color: var(--muted);
}
.welcome {
  font-size: 0.92rem;
}
.card,
.form-card,
.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 23px;
  box-shadow: var(--shadow);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  margin-bottom: 22px;
  background: linear-gradient(115deg, #e4f3ed, #f2f8f5 65%, #fff);
  border-color: #d7e9e1;
}
.hero h2 {
  font-size: 1.75rem;
  margin: 0.1rem 0;
}
.hero p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}
.quick-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 11px;
  padding: 11px 16px;
  font:
    600 0.9rem "DM Sans",
    sans-serif;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 42px;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(0.97);
}
.btn.primary {
  background: var(--green);
  color: white;
}
.btn.primary:hover {
  background: var(--green-dark);
}
.btn.secondary {
  background: #edf4f1;
  color: #35584f;
}
.btn.danger {
  background: #fff0ef;
  color: #a4413b;
}
.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.82rem;
}
.btn.full {
  width: 100%;
  margin-top: 8px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.section-head,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head {
  margin-bottom: 14px;
}
.section-head h2,
.row h2 {
  margin: 0;
}
.section-head a {
  font-size: 0.88rem;
  font-weight: 600;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf1ef;
  padding: 12px 0;
}
.mini-row:first-of-type {
  border-top: 0;
}
.mini-row b,
.mini-row small {
  display: block;
}
.mini-row small {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 1px;
}
.mini-date {
  background: var(--mint);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 7px 9px;
  min-width: 52px;
  text-align: center;
}
.check-dot {
  color: var(--green);
  font-size: 1.3rem;
  width: 34px;
  text-align: center;
}
.note-card {
  background: #f0f6f2;
}
.empty-icon {
  font-size: 1.5rem;
  color: var(--green);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.toolbar p {
  margin: 0;
}
.filter {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}
.filter .field {
  max-width: 230px;
}
.stack {
  display: grid;
  gap: 12px;
}
.event-card,
.chore-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 64px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green-dark);
}
.date-pill b {
  font-size: 1.35rem;
  line-height: 1;
}
.date-pill small {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.7rem;
}
.grow {
  flex: 1;
  min-width: 0;
}
.tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 99px;
  background: #edf3f0;
  color: #49655d;
  font-size: 0.75rem;
  font-weight: 600;
}
.priority-high {
  background: #fff0ef;
  color: #9a453d;
}
.priority-low {
  background: #edf6ef;
  color: #477a51;
}
.actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.actions form {
  display: inline-flex;
}
.form-card {
  max-width: 760px;
}
.compact {
  margin-bottom: 18px;
}
.compact h2 {
  margin-bottom: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 13px;
  min-width: 0;
}
.field span,
.checkbox-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334a44;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfddd7;
  border-radius: 10px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 88px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #1b746722;
}
.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 6px;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 10px;
}
.inline-form .field {
  flex: 1;
  margin: 0;
}
.item-add {
  margin: 14px 0 8px;
}
.item-add .field:nth-child(2) {
  max-width: 130px;
}
.list-card {
  margin: 14px 0;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #74857f;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  padding: 7px;
}
.danger-text {
  color: var(--coral);
}
.item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #edf1ef;
}
.item-row small {
  display: block;
  color: var(--muted);
}
.check-box {
  width: 25px;
  height: 25px;
  border: 1.5px solid #b8cbc2;
  border-radius: 8px;
  background: white;
  color: transparent;
  cursor: pointer;
  font-weight: 800;
}
.check-box.checked {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.done {
  text-decoration: line-through;
  color: #8a9994;
}
.faded {
  opacity: 0.78;
}
.empty {
  text-align: center;
  padding: 40px;
}
.empty h2 {
  margin: 0.4rem 0;
}
.empty p {
  color: var(--muted);
  margin: 0;
}
.contact-grid,
.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-weight: 700;
}
.contact-card .actions {
  flex-direction: column;
  align-items: stretch;
}
.contact-card a {
  font-size: 0.88rem;
}
.contact-card p {
  margin: 4px 0;
}
.note-entry {
  display: flex;
  flex-direction: column;
}
.note-entry p {
  white-space: normal;
  overflow-wrap: anywhere;
}
.sensitive {
  background: #fff2e5;
  color: #946127;
}
.checkbox-label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 12px 0;
}
.checkbox-label input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf1ef;
  padding: 12px 0;
}
.member-row:first-of-type {
  border: 0;
}
.member-row small {
  display: block;
  color: var(--muted);
}
.alert {
  padding: 12px 15px;
  border-radius: 11px;
  margin: 0 0 17px;
  font-size: 0.92rem;
}
.alert.success {
  background: #e8f5eb;
  color: #27613c;
}
.alert.error {
  background: #fff0ef;
  color: #963d38;
}
.auth-card {
  max-width: 480px;
  margin: 35px auto;
  padding: 30px;
}
.auth-card .field {
  margin-bottom: 14px;
}
.form-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 18px 0 0;
}
.footer {
  text-align: center;
  padding: 20px 15px 28px;
  color: #80918b;
  font-size: 0.84rem;
}
.menu-toggle:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.check-box:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid #efb752;
  outline-offset: 2px;
}
@media (max-width: 820px) {
  .topbar {
    padding: 12px 20px;
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    padding: 8px 0;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 9px 10px;
  }
  .container {
    margin-top: 28px;
  }
  .welcome {
    display: none;
  }
  .hero {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .dashboard-grid {
    gap: 13px;
  }
  .contact-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    padding: 0 14px;
    margin: 23px auto 45px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .card,
  .form-card {
    padding: 17px;
    border-radius: 15px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 22px;
  }
  .quick-actions {
    width: 100%;
  }
  .quick-actions .btn {
    flex: 1;
  }
  .toolbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .event-card,
  .chore-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .event-card .grow,
  .chore-row .grow {
    width: calc(100% - 80px);
    flex: auto;
  }
  .event-card .actions,
  .chore-row .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-form .field {
    margin: 0;
  }
  .inline-form .btn {
    width: 100%;
  }
  .item-add {
    display: grid;
    grid-template-columns: 1fr 90px;
  }
  .item-add .field:nth-child(2) {
    max-width: none;
  }
  .item-add .btn {
    grid-column: 1/-1;
  }
  .filter {
    align-items: stretch;
    flex-direction: column;
  }
  .filter .field {
    max-width: none;
    margin: 0;
  }
  .contact-card {
    flex-wrap: wrap;
  }
  .contact-card .grow {
    min-width: calc(100% - 60px);
  }
  .contact-card .actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
  }
  .member-row {
    flex-wrap: wrap;
  }
  .member-row .grow {
    min-width: calc(100% - 60px);
  }
  .member-row form {
    margin-left: auto;
  }
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
}
.view-tabs {
  display: flex;
  gap: 4px;
  background: #e8efeb;
  border-radius: 12px;
  padding: 4px;
}
.view-tabs a {
  padding: 7px 12px;
  border-radius: 9px;
  color: #49635b;
  font-weight: 600;
  font-size: 0.88rem;
}
.view-tabs a.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 7px #213c3214;
}
.calendar-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-pager strong {
  min-width: 125px;
  text-align: center;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.weekday {
  text-align: center;
  padding: 9px 4px;
  background: #eff5f1;
  color: #61766e;
  font-size: 0.78rem;
  font-weight: 700;
  border-right: 1px solid var(--line);
}
.month-day {
  min-height: 110px;
  padding: 7px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.month-day:nth-child(7n) {
  border-right: 0;
}
.month-day.outside {
  background: #f8faf9;
  color: #9aa9a3;
}
.month-day.today {
  background: #f0f8f4;
}
.day-number {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.calendar-event {
  display: block;
  padding: 3px 5px;
  margin: 3px 0;
  border-radius: 5px;
  background: #e5f3ee;
  color: #22685c;
  font-size: 0.7rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month-day small {
  font-size: 0.68rem;
  color: var(--muted);
}
.week-list {
  display: grid;
  gap: 9px;
}
.week-day {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.week-date {
  width: 65px;
  flex: none;
  text-align: center;
  background: var(--mint);
  border-radius: 11px;
  padding: 8px;
}
.week-date b,
.week-date span {
  display: block;
}
.week-date span {
  font-size: 0.8rem;
}
.week-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #edf1ef;
}
.week-event span {
  color: var(--muted);
  font-size: 0.85rem;
  flex: 1;
}
.week-day .grow > p {
  margin: 0;
}
.attendee-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
}
.attendee-list legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334a44;
  padding: 0 4px;
}
@media (max-width: 560px) {
  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .calendar-pager {
    justify-content: space-between;
  }
  .month-day {
    min-height: 72px;
    padding: 4px;
  }
  .weekday {
    font-size: 0.67rem;
    padding: 7px 2px;
  }
  .calendar-event {
    font-size: 0.59rem;
    padding: 2px 3px;
  }
  .week-day {
    gap: 10px;
    padding: 12px;
  }
  .week-date {
    width: 52px;
  }
  .week-event {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .week-event span {
    flex-basis: 100%;
  }
}

.back-button {
    background-color: #4e73df;
    border-color: #1a3996;
    color: rgb(255, 255, 255);
    padding: 8px 15px;
    border-radius:16px;
    font-size: 1rem;
    letter-spacing: 0.8px;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 5px 0 #1a3996;
    display: inline-block;
    
    
}

.back-button:hover {
    filter: brightness(1.1);
    color: rgb(255, 255, 255);    
}

.back-button:active {
    transform: translateY(5px);
    box-shadow: none;
}

.footer-text2 {
    margin-top: 1rem;
    text-align: center;
}
