body {
  padding: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00B7FF;
}

/* Admin page styles */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  padding: 8px;
  font-size: 14px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

table th {
  background-color: #f4f4f4;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.error {
  color: red;
  font-weight: bold;
  margin-bottom: 10px;
}

.remove-btn {
  background-color: #dc3545;
  padding: 5px 10px;
  font-size: 12px;
}

.remove-btn:hover {
  background-color: #c82333;
}

.total-count {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Invitation page styles - Forest Theme */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400&display=swap');

/* Invitation page styles - Warm Forest Theme */
.invitation {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(180deg, #f8f5f0 0%, #f3ede4 50%, #ebe4d8 100%);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(76, 91, 66, 0.15);
  overflow: hidden;
}

.invitation-content {
  padding: 50px 40px;
}

.invitation .preheader {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #7a8b6e;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.invitation h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  color: #4a5a40;
  margin-bottom: 15px;
  line-height: 1.2;
}

.invitation .invite-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: #6b7a5e;
  margin-bottom: 20px;
  line-height: 1.6;
}

.divider {
  margin: 25px 0;
}

.divider span.leaf {
  color: #8fa07e;
  font-size: 22px;
}

.event-date {
  margin: 25px 0;
  padding: 20px;
  background: rgba(143, 160, 126, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(143, 160, 126, 0.2);
}

.event-date .save-the-date {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #7a8b6e;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-date .date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: #4a5a40;
  margin: 0;
}

.invited-names {
  margin: 20px 0;
  padding: 20px;
}

.invited-names .dear {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: #7a8b6e;
  margin: 0 0 5px 0;
}

.invited-names .main-guest {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: #4a5a40;
  margin: 5px 0;
}

.invited-names .kid-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #6b7a5e;
  font-style: italic;
  margin: 8px 0 0 0;
}

.events-container {
  margin-top: 25px;
}

.wedding-details {
  margin-top: 20px;
  padding: 25px;
  background: rgba(143, 160, 126, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(143, 160, 126, 0.15);
}

.wedding-details .event-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #4a5a40;
  margin: 0 0 12px 0;
}

.wedding-details .event-time {
  margin: 10px 0;
}

.wedding-details .event-time .time {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #5d6d52;
}

.wedding-details p {
  margin: 8px 0;
  font-family: 'Lato', sans-serif;
  color: #5d6d52;
}

.wedding-details .venue {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: #4a5a40;
  margin-top: 8px;
}

.map-container {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(76, 91, 66, 0.12);
}

.map-container iframe {
  display: block;
}

/* RSVP section styles */
.rsvp-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(143, 160, 126, 0.25);
}

.rsvp-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: #6b7a5e;
  margin-bottom: 20px;
}

.rsvp-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.rsvp-btn {
  padding: 12px 30px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.rsvp-btn.accept {
  background-color: #5d7a4a;
  color: #fff;
  border-color: #5d7a4a;
}

.rsvp-btn.accept:hover {
  background-color: #4a6339;
  border-color: #4a6339;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 122, 74, 0.3);
}

.rsvp-btn.decline {
  background-color: transparent;
  color: #8b7355;
  border-color: #c4b59d;
}

.rsvp-btn.decline:hover {
  background-color: #f5f0e8;
  color: #6b5a45;
  border-color: #a89880;
}

.rsvp-btn.change-mind {
  background-color: transparent;
  color: #7a8b6e;
  border-color: #b8c4ad;
  padding: 10px 20px;
  font-size: 13px;
}

.rsvp-btn.change-mind:hover {
  background-color: rgba(143, 160, 126, 0.1);
  color: #5d6d52;
}

.rsvp-status {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.rsvp-status.accepted {
  background-color: rgba(93, 122, 74, 0.12);
  color: #4a5a40;
  border: 1px solid rgba(93, 122, 74, 0.25);
}

.rsvp-status.declined {
  background-color: rgba(139, 115, 85, 0.1);
  color: #6b5a45;
  border: 1px solid rgba(139, 115, 85, 0.2);
}

/* Admin RSVP status styles */
.status-accepted {
  color: #155724;
  background-color: #d4edda;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status-declined {
  color: #721c24;
  background-color: #f8d7da;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status-pending {
  color: #856404;
  background-color: #fff3cd;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.rsvp-summary {
  margin-bottom: 15px;
  font-size: 14px;
}

.people-coming {
  margin-bottom: 15px;
  font-size: 16px;
  color: #155724;
  background-color: #d4edda;
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-block;
}

.sort-controls {
  margin-bottom: 15px;
  font-size: 14px;
}

.sort-controls a {
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #f0f0f0;
}

.sort-controls a:hover {
  background-color: #e0e0e0;
}

.sort-controls a.active {
  background-color: #007bff;
  color: white;
}

/* Responsive styles for mobile */
@media screen and (max-width: 768px) {
  body {
    padding: 15px;
  }

  .invitation {
    max-width: 100%;
    margin: 0;
  }

  .invitation-content {
    padding: 25px 20px;
  }

  .invitation h1 {
    font-size: 36px;
  }

  .invitation .preheader {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .invitation .invite-text {
    font-size: 16px;
  }

  .forest-decoration.top,
  .forest-decoration.bottom {
    height: 60px;
  }

  .forest-decoration.top::before,
  .forest-decoration.bottom::before {
    font-size: 18px;
    letter-spacing: 8px;
  }

  .invited-names {
    padding: 20px 15px;
    margin: 20px 0;
  }

  .invited-names .main-guest {
    font-size: 22px;
  }

  .invited-names .kid-name {
    font-size: 16px;
  }

  .wedding-details {
    padding: 20px 15px;
  }

  .wedding-details .date {
    font-size: 18px;
  }

  .wedding-details .venue {
    font-size: 16px;
  }

  .rsvp-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .rsvp-btn {
    padding: 14px 30px;
    width: 100%;
    box-sizing: border-box;
  }

  .rsvp-status {
    font-size: 18px;
    padding: 15px;
  }

  /* Admin page mobile styles */
  table {
    font-size: 12px;
  }

  table th, table td {
    padding: 6px;
  }

  .form-group input {
    width: 100%;
    box-sizing: border-box;
  }

  .total-count, .rsvp-summary, .people-coming {
    font-size: 13px;
  }

  .sort-controls {
    font-size: 12px;
  }

  .sort-controls a {
    padding: 2px 6px;
  }

  .map-container iframe {
    height: 200px;
  }

  .wedding-details .event-title {
    font-size: 20px;
  }

  .event-date .date {
    font-size: 22px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 10px;
  }

  .invitation h1 {
    font-size: 28px;
  }

  .invitation .invite-text {
    font-size: 14px;
  }

  .map-container iframe {
    height: 180px;
  }

  .invitation-content {
    padding: 30px 20px;
  }

  .invited-names .main-guest {
    font-size: 18px;
  }

  .wedding-details .date {
    font-size: 16px;
  }

  .wedding-details .event-title {
    font-size: 18px;
  }

  .event-date .date {
    font-size: 18px;
  }

  .rsvp-prompt {
    font-size: 16px;
  }

  /* Admin responsive table */
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
  }

  table td {
    border: none;
    padding: 5px 10px;
    text-align: left;
    position: relative;
    padding-left: 50%;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    color: #666;
  }
}

