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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #212121;
}

html {
  background: url('images/gcd-flyer.webp') no-repeat center center fixed;
  background-size: cover;
}

html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 250, 250, 0.8);
  pointer-events: none;
  z-index: -9999;
}

.app-bar {
  background: #1976d2;
  color: white;
  padding: 16px 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-bar h1 {
  font-size: 20px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  background: rgba(255,255,255,0.2);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  box-shadow: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
  padding: 24px;
  margin-bottom: 24px;
}

.card h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #1976d2;
}

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

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1976d2;
}

.radio-option label {
  margin: 0;
  text-transform: none;
  font-weight: normal;
  color: #212121;
  font-size: 14px;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

button, .btn {
  padding: 10px 24px;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #1976d2;
  color: white;
}

.btn-primary:hover {
  background: #1565c0;
  box-shadow: 0 4px 5px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: #f5f5f5;
  color: #212121;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #eeeeee;
}

.btn-danger {
  background: #d32f2f;
  color: white;
}

.btn-danger:hover {
  background: #c62828;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.alert {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 2px;
  font-size: 14px;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.grid.dense {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.guest-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 2px;
  padding: 16px;
  box-shadow: 0 2px 1px -1px rgba(0,0,0,0.2);
}

.guest-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #212121;
}

.guest-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.guest-card .badge {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 8px;
}

.guest-card .badge.new {
  background: #c8e6c9;
  color: #2e7d32;
}

.guest-card .badge.deleted {
  background: #ffebee;
  color: #c62828;
}

.guest-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.guest-card .actions button {
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  color: #666;
}

td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

tr:hover {
  background: #fafafa;
}

.search-box {
  margin-bottom: 24px;
}

.search-box input {
  max-width: 400px;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: #999;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 16px;
}

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

.form-row.full {
  grid-template-columns: 1fr;
}

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

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

  .app-bar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .container {
    padding: 16px;
  }
}
