* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: #f8f9fa;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ========================================
   GUEST PAGES (Letter-style aesthetic)
   ======================================== */

.wedding-wrapper {
  max-width: 900px;
  margin: 3rem auto;
  background: #fff;
  padding: 3.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-top: 6px solid #2c3e50;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #3a4a5c;
}

.wedding-wrapper h1,
.wedding-wrapper h2,
.wedding-wrapper h3 {
  font-family: 'Edwardian Script Semi', cursive;
  font-size: 3rem;
  text-align: center;
  font-weight: 300;
  color: #2c3e50;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.wedding-wrapper h2 {
  font-size: 2.2rem;
  margin-top: 2rem;
}

.wedding-wrapper h3 {
  font-size: 1.6rem;
  margin-top: 1.5rem;
}

.wedding-wrapper p,
.wedding-wrapper li,
.wedding-wrapper label {
  font-size: 1.1rem;
  line-height: 1.8;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  color: #3a4a5c;
}

.wedding-wrapper button,
.wedding-wrapper input,
.wedding-wrapper select,
.wedding-wrapper textarea {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  color: #2c3e50;
}

.wedding-wrapper button {
  background-color: #2c3e50;
  color: white;
  border: 2px solid #2c3e50;
  padding: 0.8rem 2rem;
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.wedding-wrapper button:hover {
  background-color: transparent;
  color: #2c3e50;
}

.wedding-wrapper input[type="radio"],
.wedding-wrapper input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: #2c3e50;
}

.wedding-wrapper label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.wedding-wrapper input[type="text"],
.wedding-wrapper input[type="email"],
.wedding-wrapper input[type="password"],
.wedding-wrapper input[type="number"],
.wedding-wrapper textarea,
.wedding-wrapper select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0;
  background-color: #fafafa;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.wedding-wrapper input:focus,
.wedding-wrapper textarea:focus,
.wedding-wrapper select:focus {
  outline: none;
  border-color: #2c3e50;
  background-color: #fff;
}

/* ========================================
   ADMIN INTERFACE (Modern & Sleek)
   ======================================== */

.admin-wrapper {
  background: #fff;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: #2c3e50;
}

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

.admin-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 2rem;
  letter-spacing: -0.5px;
}

.admin-wrapper h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #ecf0f1;
}

.admin-wrapper h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #34495e;
  margin: 1.5rem 0 1rem;
}

.admin-wrapper label {
  display: block;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.admin-wrapper input,
.admin-wrapper textarea,
.admin-wrapper select {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.75rem;
  background-color: #f9fafb;
  color: #2c3e50;
  transition: all 0.2s;
  width: 100%;
}

.admin-wrapper input:focus,
.admin-wrapper textarea:focus,
.admin-wrapper select:focus {
  outline: none;
  border-color: #3498db;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.admin-wrapper button {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  margin-top: 1rem;
}

.admin-wrapper button:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-back {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #3498db;
  background-color: transparent;
  color: #3498db;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.btn-back:hover {
  background-color: #3498db;
  color: white;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #3498db;
  background-color: transparent;
  color: #3498db;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  margin-right: 0.5rem;
}

.btn-outline:hover {
  background-color: #3498db;
  color: white;
}

.btn-small {
  background: #95a5a6;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  margin-right: 0.5rem;
}

.btn-small:hover {
  background: #7f8c8d;
  transform: translateY(-1px);
}

.btn-delete {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  margin-right: 0.5rem;
}

.btn-delete:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.btn-edit {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  margin-right: 0.5rem;
}

.btn-edit:hover {
  background: #229954;
  transform: translateY(-1px);
}

/* Form layouts */
.form-group {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row > div {
  display: flex;
  flex-direction: column;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-table th {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: none;
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #ecf0f1;
  color: #2c3e50;
  vertical-align: top;
}

.admin-table tbody tr:hover {
  background-color: #f9fafb;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge.success {
  background-color: #d5f4e6;
  color: #229954;
}

.badge.warning {
  background-color: #fef5e7;
  color: #f39c12;
}

.badge.danger {
  background-color: #fadbd8;
  color: #c0392b;
}

/* Navigation grid */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.nav-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.9rem;
  text-align: center;
  min-height: 100px;
}

.nav-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}

/* Error/Success messages */
.error {
  background-color: #fadbd8;
  color: #c0392b;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #c0392b;
  font-weight: 500;
}

.success {
  background-color: #d5f4e6;
  color: #229954;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #229954;
  font-weight: 500;
}

/* QR Preview */
.qr-preview {
  max-width: 150px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-wrapper h1 {
    font-size: 1.8rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .admin-table {
    font-size: 0.85rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 0.75rem;
  }
}
