:root {
  --primary-green: #388e3c;
  --light-green: #4caf50;
  --dark-bg: #1a1a2e;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent-blue: #4dabf7;
  --accent-red: #e53935;
  --button-hover-bg: rgba(255, 255, 255, 0.1);
  --completed-status: #388e3c;
  --pending-status: #fbc02d;
  --notification-success: #4caf50;
  --notification-error: #f44336;
  --notification-info: #2196f3;
  --registered-child-color: #28a745;
  --registered-table-row-color: rgba(76, 175, 80, 0.15);
  --header-btn-inactive-bg-v2: #3a474c;
  --header-btn-inactive-hover-bg: #5a6d75;
  --header-btn-inactive-bg-secondary: #3a474c;
  --header-btn-inactive-hover-bg-secondary: #5a6d75;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dark-bg);
  min-height: 100vh;
  height: 100vh;
  padding: 0 0 20px 0;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
        circle at 20% 30%,
        rgba(76, 175, 80, 0.2) 0%,
        transparent 50%
      ),
    radial-gradient(
        circle at 80% 70%,
        rgba(56, 142, 60, 0.2) 0%,
        transparent 50%
      ),
    radial-gradient(
        circle at 50% 50%,
        rgba(76, 175, 80, 0.15) 0%,
        transparent 60%
      );
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 25px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  max-width: 90vw;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notification.success {
  background: var(--notification-success);
  border-color: #2e7d32;
}

.notification.error {
  background: var(--notification-error);
  border-color: #d32f2f;
}

.notification.info {
  background: var(--notification-info);
  border-color: #1976d2;
}

.header {
  background: var(--primary-green);
  width: 100%;
  padding: 15px 0;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
  gap: 15px;
  flex-shrink: 0;
  overflow: visible;
  z-index: 1000;
}

.header h1 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  padding-left: 30px;
}

.main-menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-right: 30px;
  overflow: visible;
}

.main-menu .main-menu-btn {
  width: 150px;
  text-align: center;
  padding: 10px 15px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.main-menu .primary-btn.main-menu-btn {
  background: var(--header-btn-inactive-bg-v2);
  color: white;
}

.main-menu .primary-btn.main-menu-btn:hover {
  background: var(--header-btn-inactive-hover-bg);
}

.main-menu .primary-btn.main-menu-btn.active-menu-btn {
  background: var(--accent-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.main-menu .secondary-btn.main-menu-btn {
  background: var(--header-btn-inactive-bg-secondary);
  color: white;
}

.main-menu .secondary-btn.main-menu-btn:hover {
  background: var(--header-btn-inactive-hover-bg-secondary);
}

.main-menu .secondary-btn.main-menu-btn.active-menu-btn {
    background: var(--accent-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.main-menu .dropdown-toggle.main-menu-btn {
    background: var(--accent-blue);
    color: white;
}

.main-menu .dropdown-toggle.main-menu-btn:hover {
    background: #62b1ff;
}

.main-menu .dropdown-toggle.main-menu-btn.active-menu-btn {
    background: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}


button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.small-btn {
  padding: 8px 15px;
  font-size: 13px;
  border-radius: 8px;
}

.primary-btn {
  background: var(--light-green);
  color: white;
}

.primary-btn:hover {
  background: #66bb6a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
  background: #607d8b;
  color: white;
}

.secondary-btn:hover {
  background: #78909c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.warning-btn {
  background: var(--accent-red);
  color: white;
}

.warning-btn:hover {
  background: #ef5350;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.view-container {
  width: 100%;
  display: none;
  flex-grow: 1;
  padding: 0px 20px;
  height: calc(100vh - 80px);
  overflow: hidden;
  min-height: 0;
}

.view-container.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-layout-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 25px;
  width: 100%;
  flex-grow: 1;
  align-items: stretch;
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

.left-column-sections {
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100%;
  min-height: 0;
}

.section {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.section-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
  min-height: 0;
}

.section-header {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.section-header h2 {
  font-size: 20px;
}

.add-item-group {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: none;
  flex-wrap: nowrap;
  align-items: center;
}

.header-add-group {
  margin-bottom: 10px;
}

.header-add-group:last-of-type {
  margin-bottom: 0;
}

.add-item-group input[type="text"] {
  flex-grow: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 0;
}

.add-item-group input[type="text"]::placeholder {
  color: var(--text-muted);
}

.add-item-group input[type="text"]:focus {
  border-color: var(--accent-blue);
  background: rgba(0, 0, 0, 0.85);
}

.add-btn {
  background: var(--light-green);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.add-btn:hover {
  background: #66bb6a;
}

.options-section {
  flex-grow: 1;
  min-height: 0;
}

.options-section .section-header {
  overflow-y: hidden;
}

.options-section .section-header .add-item-group {
  width: 100%;
  max-width: none;
  flex-direction: row;
}

.options-section .section-header .add-item-group input[type="text"] {
  flex-grow: 1;
  width: auto;
}

.options-section .section-content {
  flex-grow: 1;
  overflow-y: auto;
  min-height: 0;
  max-height: none;
}

.list-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-light);
}

.section-divider {
    border-color: var(--border-color);
    margin: 15px 0;
}

.registrations-overview-section {
  height: 100%;
  min-height: 0;
}

.overview-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.overview-header .add-item-group {
    width: auto;
    max-width: 300px;
    margin-bottom: 0;
}

.overview-header .add-item-group input {
    width: 150px;
}

.overview-header .add-item-group .add-btn {
    width: auto;
}

#optionsList.item-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 0;
  flex-grow: 1;
  overflow-y: auto;
  min-height: 0;
}

.section-content::-webkit-scrollbar,
#registrationTableContainer::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.section-content::-webkit-scrollbar-track,
#registrationTableContainer::-webkit-scrollbar-track {
  background: transparent;
}

.section-content::-webkit-scrollbar-thumb,
#registrationTableContainer::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.7);
  border-radius: 10px;
}

.section-content::-webkit-scrollbar-thumb:hover,
#registrationTableContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 175, 80, 0.9);
}

.item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.child-btn {
  padding: 10px 18px;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  background: rgba(77, 171, 247, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.child-btn.registered {
  background-color: var(--registered-child-color) !important;
  border-color: var(--primary-green);
}

.child-btn span:first-child {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-item-container {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 5px 0;
  flex-shrink: 0;
  justify-content: space-between; 
}

.option-toggle-checkbox {
  appearance: none; 
  -webkit-appearance: none; 
  -moz-appearance: none; 
  position: absolute; 
  left: -9999px; 
}

.option-toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-grow: 1;
  position: relative;
  padding-left: 30px; 
}

.option-toggle-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  background-color: var(--card-bg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.option-toggle-checkbox:checked + .option-toggle-label::before {
  background-color: var(--light-green);
  border-color: var(--primary-green);
}

.option-toggle-checkbox:checked + .option-toggle-label::after {
  content: "\2713"; 
  position: absolute;
  left: 4px; 
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 14px;
  line-height: 1;
}

.option-name-display {
    flex-grow: 1;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    margin-left: 8px; 
}

.edit-option-input {
    flex-grow: 1;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 15px;
    outline: none;
    margin-left: 8px; 
}

.edit-item-btn,
.delete-item-btn,
.save-item-btn,
.cancel-item-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  display: flex; 
  align-items: center;
  justify-content: center;
  width: 24px; 
  height: 24px; 
}

.edit-item-btn:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.delete-item-btn:hover {
  color: var(--accent-red);
  transform: scale(1.1);
}

.save-item-btn {
    color: var(--light-green);
}

.save-item-btn:hover {
    color: #66bb6a;
    transform: scale(1.1);
}

.cancel-item-btn {
    color: var(--accent-red);
}

.cancel-item-btn:hover {
    color: #ef5350;
    transform: scale(1.1);
}


.choice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.choice-panel {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}

.choice-header {
  background: var(--primary-green);
  color: white;
  width: calc(100% + 60px);
  margin: -30px -30px 20px -30px;
  padding: 20px 30px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-header span:first-child {
  font-size: 28px;
  font-weight: 700;
}

.choice-header span:last-child {
  font-size: 18px;
  opacity: 0.8;
}

.choice-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  width: 100%;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 20px;
  min-height: 0;
}

.choice-option-btn {
  background: #f0f0f0;
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 150px;
}

.choice-option-btn img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.choice-option-btn.selected {
  background: var(--light-green);
  border-color: var(--primary-green);
  color: white;
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
  transform: translateY(-3px) scale(1.02);
}

.choice-option-btn.selected img {
  filter: grayscale(0%);
}

.choice-option-btn:hover {
  border-color: var(--light-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.confirm-btn {
  margin-top: 20px;
  width: 100%;
  padding: 15px 25px;
  font-size: 20px;
  font-weight: 700;
  background: var(--primary-green);
  color: white;
  border-radius: 15px;
}

.confirm-btn:hover {
  background: #2e7d32;
  transform: translateY(-2px);
}

.hidden-file-input {
    display: none;
}

#registrationTableContainer {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
  min-height: 0;
}

#registrationTable {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  min-width: 800px;
}

#registrationTable th,
#registrationTable td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 14px;
  white-space: nowrap;
}

#registrationTable th {
  background: var(--primary-green);
  font-weight: 700;
  color: white;
  position: sticky;
  top: 0;
  z-index: 2;
}

#registrationTable tr:last-child td {
  border-bottom: none;
}

#registrationTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

#registrationTable tbody tr.registered-row {
  background-color: var(--registered-table-row-color);
}

#registrationTable tbody tr.registered-row:hover {
  background: rgba(76, 175, 80, 0.25);
}

#registrationTable .status-icon {
  font-size: 16px;
  margin-right: 5px;
}

#registrationTable .status-ja {
  color: var(--completed-status);
}

#registrationTable .status-nee {
  color: var(--pending-status);
}

.no-registrations-message-style {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  padding: 20px;
}

.not-registered-message {
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.not-registered-message i {
    color: var(--pending-status);
}

.option-summary-container {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.option-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 120px;
    justify-content: space-between;
}

.option-summary-item i {
    display: none;
}

.option-summary-item .count {
    background: var(--light-green);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 700;
}


.child-selection-lists-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 100%;
  max-width: 1400px;
  flex-grow: 1;
  align-items: stretch;
  margin: 0 auto;
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

.child-selection-lists-grid .section-header {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid var(--primary-green);
}

.child-selection-lists-grid .children-section {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#unregisteredChildrenListChild.item-list,
#registeredChildrenListChild.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
  justify-content: center;
  gap: 10px;
}

#unregisteredChildrenListChild .child-btn,
#registeredChildrenListChild .child-btn {
  justify-content: center;
  padding: 15px 20px;
}

#unregisteredChildrenListChild .child-btn .delete-item-btn,
#registeredChildrenListChild .child-btn .delete-item-btn {
  display: none;
}

.dropdown {
  position: relative;
  display: inline-block;
  z-index: 1002;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  right: 0;
  top: 100%;
  padding: 8px 0;
  margin-top: 10px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  color: var(--text-light);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  text-align: left;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item i {
  margin-right: 8px;
  width: 20px;
  display: inline-block;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item.warning {
  color: var(--accent-red);
}

.dropdown-item.warning:hover {
  background-color: rgba(229, 57, 53, 0.2);
}

#registrationTable th:last-child {
  width: 80px;
  text-align: center;
}

#registrationTable td:last-child {
  text-align: center;
}

.edit-child-registration-btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
}

.context-menu {
    display: none;
    position: fixed;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    min-width: 150px;
    padding: 5px 0;
}

.context-menu.show {
    display: block;
}

.context-menu-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.context-menu-item.warning {
    color: var(--accent-red);
}

.context-menu-item.warning:hover {
    background-color: rgba(229, 57, 53, 0.2);
}

.launch-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 10000;
    display: none;
    background: radial-gradient(circle at 50% 100%, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.rocket {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    font-size: 100px;
    color: #f8f9fa;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.rocket .fa-rocket {
    display: block;
    animation: pulseRocket 1s infinite alternate;
}

.flame {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 80px;
    background: radial-gradient(circle at 50% 90%, yellow 0%, orange 50%, red 100%);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0;
    animation: flamePulse 0.3s infinite alternate;
}

.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

@keyframes launchRocketPath {
    0% {
        bottom: -100px;
        left: calc(50% - 50px);
        transform: translateX(-50%) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        bottom: 60%;
        left: calc(50% + 100px);
        transform: translateX(-50%) rotate(15deg) scale(1.1);
    }
    100% {
        bottom: 110%;
        left: calc(50% + 200px);
        transform: translateX(-50%) rotate(45deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes pulseRocket {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

@keyframes flamePulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scale(0.8); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
}

@keyframes starTwinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

@keyframes starMove {
    from { transform: translate(var(--x-start), var(--y-start)) scale(var(--s-start)); opacity: var(--o-start); }
    to { transform: translate(var(--x-end), var(--y-end)) scale(var(--s-end)); opacity: var(--o-end); }
}


@media (max-width: 600px) {
    body {
        padding: 0; 
        height: auto; 
        min-height: 100vh; 
        overflow-y: auto; 
    }

    .header {
        flex-direction: column; 
        align-items: center;
        padding: 15px 10px; 
        margin-bottom: 15px;
        gap: 10px;
    }

    .header h1 {
        font-size: 22px; 
        padding-left: 0;
        text-align: center;
        margin-bottom: 10px;
    }

    .main-menu {
        width: 100%;
        flex-direction: column; 
        padding-right: 0;
        gap: 8px;
    }

    .main-menu .main-menu-btn {
        width: 95%; 
        max-width: 300px; 
        margin: 0 auto; 
        padding: 10px; 
        font-size: 14px; 
    }

    .dropdown {
        width: 95%; 
        max-width: 300px; 
        margin: 0 auto; 
    }

    .dropdown-menu {
        position: static; 
        width: 100%;
        max-width: 300px; 
        margin: 5px auto 0 auto; 
        box-shadow: none;
        border: none;
        background: var(--dark-bg); 
    }

    .dropdown-menu.show {
        display: flex; 
        flex-direction: column;
    }

    .view-container {
        padding: 0 10px; 
        height: auto;
        overflow-y: visible; 
        min-height: auto; 
    }

    .admin-layout-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
        height: auto;
        overflow: visible;
        min-height: auto;
    }

    .left-column-sections {
        height: auto;
        gap: 15px;
    }

    .section {
        margin-bottom: 15px; 
    }

    .section-header {
        padding: 12px 15px;
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .add-item-group {
        display: flex; 
        flex-direction: row; 
        width: 100%;
        max-width: 300px; 
        margin: 0 auto; 
        gap: 8px; 
    }

    .add-item-group input[type="text"] {
        flex-grow: 1; 
        width: auto; 
        padding: 8px 12px;
        flex-basis: 70%; 
        min-width: 0; 
    }
    .add-btn {
        width: auto; 
        padding: 8px 15px;
        flex-shrink: 0; 
        flex-basis: 30%; 
    }


    #optionsList.item-list {
        max-height: 400px; 
        overflow-y: auto;
    }

    .option-item-container {
        flex-wrap: wrap; 
        align-items: center; 
    }

    .option-toggle-label {
        flex-grow: 1; 
        padding-left: 30px; 
    }

    .option-name-display, .edit-option-input {
        margin-left: 8px; 
    }

    .edit-item-btn, .delete-item-btn, .save-item-btn, .cancel-item-btn {
        margin-left: 5px; 
        order: 1; 
    }
    
    .delete-item-btn {
        margin-right: 0; 
    }

    .option-item-container .edit-option-input {
        flex-grow: 1;
        order: 0;
        min-width: 0; 
    }
    .option-item-container .save-item-btn,
    .option-item-container .cancel-item-btn {
        order: 1; 
        margin-left: 5px;
    }


    #registrationTableContainer {
        overflow-x: auto; 
        min-height: auto;
    }

    #registrationTable {
        min-width: 400px; 
    }

    #registrationTable th,
    #registrationTable td {
        padding: 8px 10px;
        font-size: 12px;
    }

    #registrationTable th:last-child,
    #registrationTable td:last-child {
      width: 60px; 
    }
    
    .not-registered-message {
      font-size: 12px;
    }

    .option-summary-container {
      flex-direction: column; 
      gap: 10px;
    }

    .option-summary-item {
      min-width: unset; 
      width: 100%; 
      justify-content: space-between;
    }

    .child-selection-lists-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
        height: auto;
        overflow: visible;
        min-height: auto;
    }

    #unregisteredChildrenListChild.item-list,
    #registeredChildrenListChild.item-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); 
    }

    .choice-panel {
        width: 95%; 
        padding: 20px 15px;
    }

    .choice-header {
        flex-direction: column;
        gap: 5px;
        margin: -20px -15px 15px -15px; 
        padding: 15px;
    }

    .choice-header span:first-child {
        font-size: 22px;
    }

    .choice-header span:last-child {
        font-size: 15px;
    }

    .choice-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
        gap: 10px;
    }

    .choice-option-btn {
        min-height: 100px;
        font-size: 14px;
        padding: 10px;
    }

    .confirm-btn {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .launch-animation-container .rocket {
        font-size: 80px; 
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .header {
        flex-direction: row; 
        justify-content: center;
        padding: 15px 20px;
        gap: 15px;
    }

    .header h1 {
        font-size: 26px;
        padding-left: 0;
        order: -1; 
        width: 100%;
        text-align: center;
    }

    .main-menu {
        width: auto; 
        justify-content: center;
        padding-right: 0;
        gap: 10px;
    }

    .main-menu .main-menu-btn {
        width: 140px; 
    }

    .dropdown-menu {
        right: 0;
        left: unset; 
        top: 100%;
        margin-top: 10px;
    }

    .admin-layout-grid {
        grid-template-columns: 1fr; 
        height: auto;
        overflow: visible;
    }

    .registrations-overview-section .section-content {
        max-height: 500px; 
    }

    .child-selection-lists-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }

    #registrationTable {
        min-width: 600px; 
    }

    .option-item-container {
        flex-wrap: nowrap; 
    }
}

@media (min-width: 901px) {
    .header {
        padding: 15px 30px;
    }
    .header h1 {
        padding-left: 30px;
    }
    .main-menu {
        padding-right: 30px;
        flex-wrap: nowrap; 
    }
    .admin-layout-grid {
        grid-template-columns: 300px 1fr; 
    }
    .child-selection-lists-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}