
:root {
  --charcoal: #59666B;
  --charcoal2: #6F7D82;

  --ivory: #F8F7F3;
  --cream: #F0EFEB;
  --white: #FFFFFF;

  --taupe: #AAB5B9;
  --taupe-light: #DCE2E4;

  --text: #4F595D;
  --muted: #8A9498;

  --pink-soft: #C98F91;

  --line: rgba(79, 89, 93, .12);

  --blue: #B5C9D3;
  --blue-light: #E5EEF1;
  --blue-soft: #F0F5F6;
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ivory);
  color: var(--text);
  min-height: 100vh;
}

/* BACKGROUND */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
  background:
    radial-gradient(
      circle at top right,
      var(--blue-light),
      transparent 45%
    ),
    var(--ivory);
}

/* LOGIN CARD */

.login-card {
  width: 100%;
  max-width: 410px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 42px 35px 30px;
  box-shadow:
    0 15px 45px rgba(79, 89, 93, .07);
}

/* BRAND */

.brand {
  text-align: center;
  margin-bottom: 38px;
}

.brand-logo {
  width: 53px;
  height: 53px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--charcoal);
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
}

.brand h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  letter-spacing: 5px;
  font-weight: 600;
  color: var(--charcoal);
}

.brand > p {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 3px;
}

.brand-line {
  display: block;
  width: 38px;
  height: 1px;
  background: var(--blue);
  margin: 20px auto 0;
}

/* HEADING */

.login-heading {
  margin-bottom: 28px;
}

.login-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--charcoal);
}

.login-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

/* FORM */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 9px;
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--taupe-light);
  border-radius: 10px;
  background: var(--ivory);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: .2s;
}

.form-group input::placeholder {
  color: var(--muted);
  opacity: .8;
}

.form-group input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

/* PASSWORD */

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 65px;
}

.password-wrapper button {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--charcoal2);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

/* LOGIN BUTTON */

.login-button {
  width: 100%;
  height: 49px;
  border: none;
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: .25s;
  margin-top: 10px;
}

.login-button:hover {
  background: var(--charcoal2);
}

.login-button:active {
  transform: scale(.98);
}

/* MESSAGE */

.login-message {
  min-height: 16px;
  font-size: 11px;
  color: var(--pink-soft);
  margin-top: 5px;
}

/* FOOTER */

.login-footer {
  text-align: center;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.login-footer p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--charcoal2);
  font-style: italic;
}

.login-footer span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: .4px;
}

/* MOBILE */

@media (max-width: 480px) {

  .login-wrapper {
    padding: 18px;
  }

  .login-card {
    padding: 35px 25px 25px;
    border-radius: 18px;
  }

  .login-heading h2 {
    font-size: 29px;
  }

}


/* =================================
   ETERNA ADMIN DASHBOARD
================================= */

.dashboard-page {
  background: var(--ivory);
  color: var(--text);
  min-height: 100vh;
}

/* MAIN LAYOUT */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 245px;
  min-width: 245px;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* SIDEBAR BRAND */

.sidebar-brand {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--charcoal);
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
}

.sidebar-brand h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  letter-spacing: 4px;
  color: var(--charcoal);
}

.sidebar-brand p {
  font-size: 8px;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* NAVIGATION */

.sidebar-nav {
  margin-top: 32px;
}

.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 0 0 13px 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 6px;
  border-radius: 9px;
  color: var(--charcoal2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: .2s;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--blue-soft);
}

.nav-item.active {
  background: var(--blue-light);
  color: var(--charcoal);
  font-weight: 700;
}

/* LOGOUT */

.logout-button {
  margin-top: auto;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--charcoal2);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
}

.logout-button:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

/* MAIN CONTENT */

.main-content {
  flex: 1;
  min-width: 0;
  padding: 30px 38px;
}

/* TOPBAR */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.topbar-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 5px;
}

.topbar h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--charcoal);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 11px;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
}

.admin-profile strong {
  display: block;
  font-size: 11px;
  color: var(--charcoal);
}

.admin-profile span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}

/* WELCOME SECTION */

.welcome-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    120deg,
    var(--blue-light),
    var(--blue-soft)
  );
  border: 1px solid var(--taupe-light);
  border-radius: 15px;
  padding: 28px 30px;
  margin-bottom: 25px;
}

.welcome-small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--charcoal2);
  margin-bottom: 7px;
}

.welcome-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 31px;
  font-weight: 600;
  color: var(--charcoal);
}

.welcome-section p:last-of-type {
  font-size: 11px;
  color: var(--charcoal2);
  margin-top: 5px;
}

.welcome-decoration {
  position: absolute;
  right: 35px;
  top: -22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 150px;
  color: rgba(89, 102, 107, .08);
  pointer-events: none;
}

/* STATISTICS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 35px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--charcoal);
  margin-bottom: 15px;
}

.stat-icon i {
  font-size: 16px;
}

.stat-card > p {
  font-size: 11px;
  color: var(--muted);
}

.stat-card h3 {
  font-size: 27px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 5px 0;
}

.stat-card > span {
  font-size: 9px;
  color: var(--muted);
}

/* CUSTOMER SECTION */

.content-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}

.section-eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.section-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  font-weight: 600;
  color: var(--charcoal);
}

.add-customer-button {
  background: var(--charcoal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.add-customer-button:hover {
  background: var(--charcoal2);
}

/* TOOLBAR */

.customer-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.customer-toolbar input,
.customer-toolbar select {
  height: 42px;
  border: 1px solid var(--taupe-light);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  padding: 0 12px;
  outline: none;
}

.customer-toolbar input {
  flex: 1;
  min-width: 0;
}

.customer-toolbar select {
  min-width: 125px;
}

.customer-toolbar input:focus,
.customer-toolbar select:focus {
  border-color: var(--blue);
}

/* TABLE */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

thead {
  background: var(--blue-soft);
}

th {
  text-align: left;
  padding: 14px 12px;
  font-size: 9px;
  letter-spacing: .8px;
  color: var(--charcoal2);
  font-weight: 600;
}

td {
  padding: 17px 12px;
  font-size: 11px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 35px 15px;
}

/* FOOTER */

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 0 5px;
  color: var(--muted);
  font-size: 10px;
}

/* TABLET */

@media (max-width: 1000px) {

  .sidebar {
    width: 210px;
    min-width: 210px;
  }

  .main-content {
    padding: 25px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* MOBILE */

@media (max-width: 650px) {

  .admin-layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 17px;
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 15px;
    text-align: left;
  }

  .sidebar-brand .brand-logo {
    width: 37px;
    height: 37px;
    min-width: 37px;
    margin: 0;
    font-size: 23px;
  }

  .sidebar-brand h2 {
    font-size: 20px;
  }

  .sidebar-brand p {
    font-size: 7px;
  }

  .sidebar-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 5px;
  }

  .nav-label {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    padding: 10px 12px;
    margin: 0;
    font-size: 10px;
    white-space: nowrap;
  }

  .nav-item span {
    font-size: 14px;
  }

  .logout-button {
    width: auto;
    align-self: flex-end;
    margin-top: 12px;
    padding: 8px 13px;
    font-size: 10px;
  }

  .main-content {
    padding: 20px 15px;
  }

  .topbar {
    margin-bottom: 22px;
  }

  .topbar h1 {
    font-size: 29px;
  }

  .admin-profile strong {
    font-size: 10px;
  }

  .welcome-section {
    padding: 22px 20px;
  }

  .welcome-section h2 {
    font-size: 27px;
  }

  .welcome-decoration {
    right: 10px;
    font-size: 100px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card h3 {
    font-size: 23px;
  }

  .content-section {
    padding: 17px 13px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-toolbar {
    flex-direction: column;
  }

  .customer-toolbar select {
    width: 100%;
  }

  .dashboard-footer {
    font-size: 9px;
  }

}


/* =====================================
   ADD CUSTOMER MODAL
===================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(40, 48, 51, 0.45);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  animation: modalFadeIn 0.25s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 28px;
}

.modal-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 5px 0 0;
}

.modal-close {
  border: none;
  background: var(--cream);
  color: var(--charcoal);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 23px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--taupe-light);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: var(--charcoal2);
  box-shadow: 0 0 0 3px rgba(111, 125, 130, 0.10);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.modal-actions button {
  flex: 1;
  padding: 13px 15px;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#cancelCustomerButton {
  background: var(--cream);
  color: var(--text);
  border: 1px solid var(--line);
}

#saveCustomerButton {
  background: var(--charcoal);
  color: #fff;
  border: 1px solid var(--charcoal);
}

#saveCustomerButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#customerFormMessage {
  font-size: 12px;
  color: var(--pink-soft);
  margin-top: 15px;
  text-align: center;
}

@media (max-width: 480px) {
  .modal-box {
    padding: 23px 20px;
  }
}

/* RSVP SETTINGS MODAL */

#settingsCoupleName {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

.form-group small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

#settingsFormMessage {
  font-size: 12px;
  margin-top: 12px;
}
