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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #E8F4F8 0%, #D4E8EF 50%, #C8DCE8 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Decorative wave background */
body::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="%23A8D5E2" opacity="0.3"/><path d="M0,60 Q300,10 600,60 T1200,60 L1200,120 L0,120 Z" fill="%237FB3D5" opacity="0.2"/></svg>') repeat-x;
  animation: wave 15s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes wave {
  0% { background-position: 0 0; }
  100% { background-position: 1200px 0; }
}

/* Floating bubbles animation */
@keyframes float-up {
  0% { 
    transform: translateY(0) translateX(0);
    opacity: 0.8;
  }
  100% { 
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

.bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(160,200,220,0.3));
  border: 1px solid rgba(160,200,220,0.4);
  pointer-events: none;
  z-index: 1;
}

.bubble-small {
  width: 10px;
  height: 10px;
  animation: float-up 4s ease-in infinite;
}

.bubble-medium {
  width: 20px;
  height: 20px;
  animation: float-up 5s ease-in infinite;
}

.bubble-large {
  width: 30px;
  height: 30px;
  animation: float-up 6s ease-in infinite;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(127, 179, 213, 0.2);
  max-width: 600px;
  width: 100%;
  padding: 40px;
  position: relative;
  z-index: 10;
  border: 2px solid #D4E8EF;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #D4E8EF;
}

.header h1 {
  color: #7FB3D5;
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header h2 {
  color: #7FB3D5;
  font-size: 24px;
  margin: 10px 0;
}

.header p {
  color: #6B8FA3;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

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

label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #D4E8EF;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #FAFBFC;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: #7FB3D5;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(127, 179, 213, 0.1);
}

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

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.radio-option {
  flex: 1;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option label {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid #D4E8EF;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0;
  font-weight: 500;
  background-color: #FAFBFC;
  font-size: 15px;
}

.radio-option input[type="radio"]:checked + label {
  border-color: #7FB3D5;
  background: linear-gradient(135deg, rgba(127, 179, 213, 0.1) 0%, rgba(184, 212, 192, 0.1) 100%);
  color: #7FB3D5;
  box-shadow: 0 0 0 3px rgba(127, 179, 213, 0.1);
}

.radio-option input[type="radio"] + label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #D4E8EF;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.3s ease;
  background-color: white;
}

.radio-option input[type="radio"]:checked + label::before {
  border-color: #7FB3D5;
  background: radial-gradient(circle, #7FB3D5 30%, white 30%);
}

.radio-option input[type="radio"]:checked + label::before {
  border-color: #7FB3D5;
  background: radial-gradient(circle, #7FB3D5 30%, white 30%);
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7FB3D5 0%, #A8D5E2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(127, 179, 213, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(127, 179, 213, 0.4);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.message {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid;
}

.success {
  background-color: #E8F5E9;
  color: #2E7D32;
  border-left-color: #4CAF50;
}

.error {
  background-color: #FFEBEE;
  color: #C62828;
  border-left-color: #F44336;
}

.info {
  background-color: #E1F5FE;
  color: #01579B;
  border-left-color: #2196F3;
}

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Admin Dashboard Styles */
.admin-container {
  max-width: 1000px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #D4E8EF;
}

.nav h1 {
  color: #7FB3D5;
  font-size: 28px;
  font-weight: 700;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 11px 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7FB3D5 0%, #A8D5E2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(127, 179, 213, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(127, 179, 213, 0.4);
}

.btn-secondary {
  background-color: #E8F4F8;
  color: #7FB3D5;
  border: 2px solid #D4E8EF;
}

.btn-secondary:hover {
  background-color: #D4E8EF;
  border-color: #7FB3D5;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #FAFBFC 0%, #E8F4F8 100%);
  border-radius: 12px;
  padding: 22px;
  border: 2px solid #D4E8EF;
  border-left: 4px solid #7FB3D5;
  box-shadow: 0 4px 12px rgba(127, 179, 213, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(127, 179, 213, 0.15);
  border-color: #A8D5E2;
}

.stat-label {
  color: #6B8FA3;
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stat-value {
  color: #7FB3D5;
  font-size: 36px;
  font-weight: 800;
}

.stat-card.yes {
  border-left-color: #4CAF50;
}

.stat-card.yes .stat-value {
  color: #4CAF50;
}

.stat-card.no {
  border-left-color: #F57C00;
}

.stat-card.no .stat-value {
  color: #F57C00;
}

.stat-card.pending {
  border-left-color: #FFA726;
}

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

.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  border: 2px solid #D4E8EF;
  box-shadow: 0 4px 12px rgba(127, 179, 213, 0.1);
}

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

th {
  background: linear-gradient(135deg, #7FB3D5 0%, #A8D5E2 100%);
  padding: 16px;
  text-align: left;
  font-weight: 700;
  color: white;
  border-bottom: 2px solid #D4E8EF;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid #E0F2F7;
  color: #555;
  font-size: 14px;
}

tr:hover {
  background-color: #F5FAFB;
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge.yes {
  background-color: #C8E6C9;
  color: #1B5E20;
}

.badge.no {
  background-color: #FFCCBC;
  color: #BF360C;
}

.form-inline {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-inline input,
.form-inline select {
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  flex: 1;
  min-width: 200px;
}

.form-inline button {
  padding: 10px 20px;
  width: auto;
}

.no-data {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.event-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.event-selector input,
.event-selector select {
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 24px;
    border-radius: 16px;
  }

  .header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .header h1 {
    font-size: 26px;
  }

  .header h2 {
    font-size: 20px;
  }

  .header p {
    font-size: 14px;
  }

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

  label {
    font-size: 13px;
  }

  input[type="number"],
  input[type="text"],
  input[type="email"],
  textarea {
    padding: 11px 12px;
    font-size: 16px;
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .radio-option label {
    padding: 12px 14px;
    font-size: 14px;
  }

  button {
    padding: 12px;
    font-size: 15px;
    border-radius: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .stat-card {
    padding: 16px;
    border-radius: 10px;
  }

  .stat-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .stat-value {
    font-size: 28px;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }

  .nav h1 {
    font-size: 22px;
  }

  .nav-buttons {
    width: 100%;
    flex-direction: column;
  }

  .nav-buttons .btn {
    width: 100%;
    padding: 11px;
  }

  .table-container {
    border-radius: 10px;
  }

  table {
    font-size: 12px;
  }

  th {
    padding: 12px 10px;
  }

  td {
    padding: 11px 10px;
  }

  .badge {
    padding: 4px 10px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 18px;
  }

  .header h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .header p {
    font-size: 13px;
  }

  .header {
    margin-bottom: 18px;
  }

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

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

  .nav h1 {
    font-size: 20px;
  }

  .radio-option label {
    padding: 11px 12px;
    font-size: 13px;
  }

  button {
    padding: 11px;
    font-size: 14px;
  }

  .stat-value {
    font-size: 24px;
  }
}
