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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* ===========================================
   Login Section
   =========================================== */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-container {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 10px;
}

.login-header p {
  color: #888;
}

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

.login-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.login-form input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.login-form input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.error-message {
  color: #e74c3c;
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
}

/* ===========================================
   Dashboard Section
   =========================================== */
.dashboard-header {
  background: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content h1 {
  font-size: 1.5rem;
  color: #667eea;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info span {
  color: #666;
}

.btn-logout {
  padding: 8px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-logout:hover {
  background: #c0392b;
}

.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.welcome-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 15px;
  margin-bottom: 40px;
  text-align: center;
}

.welcome-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.section-description {
  color: #888;
  margin-bottom: 20px;
}

/* ===========================================
   Models Grid
   =========================================== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.model-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.model-card.selected {
  border: 3px solid #27ae60;
}

.model-thumbnail {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.model-info {
  padding: 20px;
}

.model-info h3 {
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-info h3 .premium-badge {
  font-size: 0.7rem;
  background: #f39c12;
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
}

.model-info p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.model-colors {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.color-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #eee;
}

.model-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.feature-tag {
  padding: 5px 12px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #666;
}

.model-actions {
  display: flex;
  gap: 10px;
}

.btn-preview, .btn-select {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-preview {
  background: #ecf0f1;
  color: #2c3e50;
}

.btn-preview:hover {
  background: #bdc3c7;
}

.btn-select {
  background: #27ae60;
  color: white;
}

.btn-select:hover {
  background: #219a52;
}

.btn-select.selected {
  background: #667eea;
}

/* ===========================================
   Current Selection
   =========================================== */
.current-selection {
  background: #e8f5e9;
  padding: 25px;
  border-radius: 15px;
  border: 2px solid #27ae60;
}

.current-selection h3 {
  color: #27ae60;
  margin-bottom: 15px;
}

/* ===========================================
   Admin Section
   =========================================== */
.admin-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: white;
  padding: 10px;
  border-radius: 10px;
}

.nav-btn {
  padding: 12px 25px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.nav-btn.active {
  background: #667eea;
  color: white;
}

.nav-btn:hover:not(.active) {
  background: #f0f0f0;
}

.admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.admin-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: #f5f7fa;
  font-weight: 600;
  color: #555;
}

.admin-table tr:hover {
  background: #fafafa;
}

.btn-action {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 5px;
}

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

.btn-delete {
  background: #e74c3c;
  color: white;
}

.btn-action:disabled,
.btn-edit:disabled,
.btn-delete:disabled {
  background: #95a5a6 !important;
  color: #ecf0f1 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: none;
}

.btn-add {
  padding: 12px 25px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* ===========================================
   Modal
   =========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  width: 90%;
  height: 90%;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #c0392b;
}

#previewFrame {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================================
   Modal Form (Criar/Editar)
   =========================================== */
.modal-form {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.3rem;
}

.modal-header .modal-close {
  position: static;
  width: 35px;
  height: 35px;
  font-size: 1.2rem;
}

.modal-form form {
  padding: 25px;
}

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

.modal-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: #667eea;
}

.modal-form small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 0.85rem;
}

.modal-form .form-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #667eea;
}

.modal-form .form-info p {
  margin: 0 0 10px 0;
  color: #555;
}

.modal-form .form-info code {
  display: block;
  background: #e9ecef;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  color: #667eea;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.checkbox-item:hover {
  background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-item label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-cancel {
  padding: 12px 25px;
  background: #e0e0e0;
  color: #555;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-cancel:hover {
  background: #ccc;
}

.btn-save {
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ===========================================
   Upload de Imagem
   =========================================== */
.upload-container {
  position: relative;
}

.upload-container input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.upload-container input[type="file"]:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.thumbnail-preview {
  margin-top: 15px;
  position: relative;
  display: inline-block;
}

.thumbnail-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-remove-thumb {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 25px;
  height: 25px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.btn-remove-thumb:hover {
  background: #c0392b;
}

.upload-progress {
  margin-top: 10px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s;
}

/* ===========================================
   Client Cards (Cerimonialista Dashboard)
   =========================================== */
.client-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.client-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.active {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
  border: 1px solid #27ae60;
}

.status-badge.inactive {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.client-info {
  padding: 20px;
}

.client-info p {
  margin: 0 0 10px 0;
  color: #555;
  font-size: 0.95rem;
}

.client-info p strong {
  color: #333;
}

.client-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.client-footer small {
  color: #888;
}

.no-data {
  text-align: center;
  color: #888;
  padding: 40px;
  font-size: 1.1rem;
}

/* ===========================================
   Dashboard Tabs (Cliente)
   =========================================== */
.dashboard-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn {
  padding: 12px 25px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  font-weight: 500;
}

.tab-btn.active {
  background: #667eea;
  color: white;
}

.tab-btn:hover:not(.active) {
  background: #f0f0f0;
}

.tab-content {
  display: block;
}

.tab-content.hidden {
  display: none;
}

/* ===========================================
   Guests Management
   =========================================== */
.guests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.guests-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-width: 100px;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #667eea;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 5px;
}

.stat-card.confirmed .stat-value {
  color: #27ae60;
}

.stat-card.pending .stat-value {
  color: #f39c12;
}

.stat-card.declined .stat-value {
  color: #e74c3c;
}

.guests-actions {
  display: flex;
  gap: 10px;
}

.guests-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.filter-btn.active {
  border-color: #667eea;
  background: #667eea;
  color: white;
}

.filter-btn:hover:not(.active) {
  border-color: #667eea;
}

.guests-table {
  width: 100%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guests-table th,
.guests-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.guests-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
}

.guests-table tr:hover {
  background: #fafafa;
}

.relationship-badge {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.relationship-badge.familia_noivo {
  background: #e3f2fd;
  color: #1976d2;
}

.relationship-badge.familia_noiva {
  background: #fce4ec;
  color: #c2185b;
}

.relationship-badge.amigos {
  background: #fff3e0;
  color: #f57c00;
}

.confirmation-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.confirmed {
  background: #27ae60;
}

.status-dot.pending {
  background: #f39c12;
}

.status-dot.declined {
  background: #e74c3c;
}

/* ===========================================
   Guest Modal Styles
   =========================================== */
.modal-large {
  max-width: 700px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.family-members-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.family-member-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.family-member-item input {
  flex: 1;
}

.btn-remove-member {
  width: 35px;
  height: 35px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-member:hover {
  background: #c0392b;
}

.btn-add-member,
.btn-add-option {
  padding: 10px 15px;
  background: #ecf0f1;
  color: #2c3e50;
  border: 2px dashed #bdc3c7;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  width: 100%;
}

.btn-add-member:hover,
.btn-add-option:hover {
  border-color: #667eea;
  color: #667eea;
}

.password-display {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
}

.password-display span {
  font-size: 1.5rem;
  letter-spacing: 3px;
  font-weight: bold;
  color: #667eea;
}

.btn-copy {
  padding: 8px 15px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-copy:hover {
  background: #5a6fd6;
}

.checkbox-single {
  display: flex;
  align-items: center;
}

.checkbox-single label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  font-weight: normal;
}

.checkbox-single input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* ===========================================
   Questions List
   =========================================== */
.questions-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.question-info {
  flex: 1;
}

.question-info h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.question-info span {
  font-size: 0.85rem;
  color: #888;
}

.question-type-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  background: #e0e0e0;
  margin-left: 10px;
}

/* ===========================================
   Confirmation Code Section
   =========================================== */
.confirmation-code-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.confirmation-code-section h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.confirmation-code-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.confirmation-code-input input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
}

.confirmation-code-input .btn-save-code {
  padding: 12px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.confirmation-url {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

.confirmation-url code {
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ===========================================
   Guests Admin Select
   =========================================== */
.guests-admin-select {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.guests-admin-select label {
  font-weight: 600;
  color: #333;
}

.guests-admin-select select {
  flex: 1;
  max-width: 400px;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
  .login-container {
    padding: 30px 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    flex-wrap: wrap;
  }

  .welcome-banner {
    padding: 25px;
  }

  .welcome-banner h2 {
    font-size: 1.4rem;
  }
}

/* ===========================================
   View Guest Modal
   =========================================== */
.modal-large {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.view-guest-content {
  padding: 20px 0;
}

.view-guest-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #555;
  width: 140px;
  flex-shrink: 0;
}

.info-value {
  color: #333;
}

.password-display {
  font-family: monospace;
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: 2px;
}

.view-guest-section {
  margin-bottom: 25px;
}

.view-guest-section h3 {
  color: #667eea;
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* New Member Card View Style */
.member-card-view {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.member-card-view.confirmed {
  border-color: #27ae60;
}

.member-card-view.declined {
  border-color: #e74c3c;
}

.member-card-view.pending {
  border-color: #f39c12;
}

.member-header-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: white;
}

.member-card-view.confirmed .member-header-view {
  background: #e8f5e9;
}

.member-card-view.declined .member-header-view {
  background: #ffebee;
}

.member-card-view.pending .member-header-view {
  background: #fff8e1;
}

.member-info-view {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-icon {
  font-size: 1.2rem;
}

.member-name-view {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
}

.member-status-badge {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.member-status-badge.confirmed {
  background: #27ae60;
  color: white;
}

.member-status-badge.declined {
  background: #e74c3c;
  color: white;
}

.member-status-badge.pending {
  background: #f39c12;
  color: white;
}

.member-answers {
  padding: 12px 15px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.member-answer-item {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.member-answer-item:not(:last-child) {
  border-bottom: 1px dashed #e0e0e0;
}

.answer-q {
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
}

.answer-a {
  color: #333;
  font-weight: 400;
}

/* Family answers */
.family-answer-item {
  display: flex;
  gap: 10px;
  padding: 10px 15px;
  background: #f0f4ff;
  border-radius: 8px;
  margin-bottom: 8px;
}

.family-answer-item .answer-q {
  color: #667eea;
}

/* Legacy styles for backwards compatibility */
.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #ccc;
}

.member-item.confirmed {
  border-left-color: #27ae60;
  background: #e8f5e9;
}

.member-item.declined {
  border-left-color: #e74c3c;
  background: #ffebee;
}

.member-item.pending {
  border-left-color: #f39c12;
  background: #fff8e1;
}

.member-name {
  font-weight: 500;
}

.member-status {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.member-status.confirmed {
  background: #27ae60;
  color: white;
}

.member-status.declined {
  background: #e74c3c;
  color: white;
}

.member-status.pending {
  background: #f39c12;
  color: white;
}

.answers-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.answer-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.answer-question {
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.answer-value {
  color: #333;
  padding-left: 15px;
  border-left: 3px solid #667eea;
}

.answer-member {
  font-size: 0.85rem;
  color: #888;
  margin-top: 5px;
}

.guest-notes {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  color: #555;
  font-style: italic;
  min-height: 50px;
}

.no-data {
  color: #888;
  font-style: italic;
  padding: 15px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
}

/* ===========================================
   Charts Section
   =========================================== */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-card h4 {
  color: #333;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1rem;
}

.chart-container {
  position: relative;
  height: 200px;
}

/* View Button */
.btn-view {
  background: #17a2b8;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.btn-view:hover {
  background: #138496;
}

/* Actions column */
.guest-actions {
  display: flex;
  gap: 5px;
}

.guest-actions button {
  padding: 5px 10px;
  font-size: 0.85rem;
}

/* ===========================================
   Modern View Guest Modal
   =========================================== */
.modal-view-guest {
  width: 95%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

/* Header with gradient */
.view-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px 25px 25px;
  position: relative;
  text-align: center;
  flex-shrink: 0;
}

.view-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.view-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.view-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.view-guest-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.view-guest-title {
  color: white;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.view-guest-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* Modal Body */
.view-modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
  background: #f8fafc;
}

/* Stats Grid */
.view-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.view-stat-card {
  background: white;
  border-radius: 16px;
  padding: 18px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.view-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.stat-confirmed .stat-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-declined .stat-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-pending .stat-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Info Grid */
.view-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.view-info-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.info-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-card-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.info-card-value {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.password-code {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 1.1rem;
}

/* Sections */
.view-section {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.view-section-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.view-section-header h3 {
  font-size: 1rem;
  color: #334155;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-section-actions {
  display: flex;
  gap: 8px;
}

.btn-expand-all,
.btn-collapse-all {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-expand-all:hover,
.btn-collapse-all:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-expand-all span,
.btn-collapse-all span {
  font-size: 10px;
}

.section-icon {
  font-size: 1.1rem;
}

/* Members Grid */
.view-members-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.view-member-card {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.view-member-card:hover {
  border-color: #cbd5e1;
}

.view-member-card.confirmed {
  border-left: 4px solid #10b981;
}

.view-member-card.declined {
  border-left: 4px solid #ef4444;
}

.view-member-card.pending {
  border-left: 4px solid #f59e0b;
}

.view-member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: white;
  cursor: pointer;
  transition: background 0.2s;
}

.view-member-header:hover {
  background: #f8fafc;
}

.view-member-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
  transition: all 0.3s;
  margin-left: 10px;
  flex-shrink: 0;
}

.view-member-toggle:hover {
  background: #e2e8f0;
  color: #334155;
}

.view-member-toggle.expanded {
  transform: rotate(180deg);
}

.view-member-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.view-member-card.confirmed .view-member-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
}

.view-member-card.declined .view-member-avatar {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.view-member-card.pending .view-member-avatar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.view-member-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.view-member-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-member-badge.confirmed {
  background: #d1fae5;
  color: #059669;
}

.view-member-badge.declined {
  background: #fee2e2;
  color: #dc2626;
}

.view-member-badge.pending {
  background: #fef3c7;
  color: #d97706;
}

.view-member-answers {
  padding: 12px 16px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.view-member-answers.expanded {
  max-height: 500px;
  padding: 12px 16px;
}

.view-answer-item {
  display: flex;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px dashed #e2e8f0;
}

.view-answer-item:last-child {
  border-bottom: none;
}

.view-answer-q {
  color: #64748b;
  font-weight: 500;
  min-width: 120px;
  flex-shrink: 0;
}

.view-answer-a {
  color: #334155;
  font-weight: 400;
}

/* Answers List */
.view-answers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.view-family-answer {
  display: flex;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0f4ff, #e8efff);
  border-radius: 10px;
  gap: 12px;
  align-items: flex-start;
}

.view-family-answer .view-answer-q {
  color: #667eea;
  font-weight: 600;
}

/* Notes */
.view-notes-content {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid #667eea;
}

.view-notes-content p {
  margin: 0;
  color: #475569;
  font-style: italic;
  line-height: 1.6;
}

/* Footer */
.view-modal-footer {
  padding: 20px 25px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-view-close {
  padding: 12px 28px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-view-close:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.btn-view-edit {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-view-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-view-edit span {
  font-size: 1.1rem;
}

/* No data message */
.view-no-data {
  text-align: center;
  padding: 25px;
  color: #94a3b8;
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-view-guest {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .view-modal-header {
    padding: 25px 20px 35px;
  }

  .view-guest-avatar {
    width: 65px;
    height: 65px;
    font-size: 22px;
  }

  .view-guest-title {
    font-size: 1.3rem;
  }

  .view-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .view-stat-card {
    padding: 12px 8px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .view-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .view-modal-body {
    padding: 20px 15px;
  }

  .view-modal-footer {
    padding: 15px;
    flex-direction: column;
  }

  .btn-view-close,
  .btn-view-edit {
    width: 100%;
    justify-content: center;
  }
}
