
body {
  background: url("background_Forestcraft.png") no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  padding: 20px;
  line-height: 1.6;
}

/* Headings */
h1, h2 {
  text-align: center;
  font-weight: bold;
  text-shadow: 0 0 10px #0ff;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Panel */
.hud-panel {
  border: 1px solid #00ffe4;
  box-shadow: 0 0 8px rgba(0, 255, 234, 0.6);
  position: relative;
  overflow: hidden;
  background: rgba(10, 10, 20, 0.8);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s;
}

.hud-panel:hover {
  box-shadow: 0 0 20px rgba(0, 255, 234, 1);
}

.hud-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,234,0.8), transparent);
  animation: light 3s infinite;
}

@keyframes light {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Buttons */
.btn-glow {
  background-color: #00ffe4;
  color: #0a0a10;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: bold;
  display: inline-block;
  border: 1px solid #00ffe4;
  text-align: center;
  box-shadow: 0 0 5px #0ff;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  background-color: #0a0a10;
  color: #00ffe4;
  box-shadow: 0 0 10px #00ffe4;
}

.selector-btn {
  background-color: #0a0a10;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  font-weight: bold;
  border: 1px solid #00ffe4;
  text-align: center;
  box-shadow: 0 0 4px #0ff;
  transition: all 0.2s ease;
  margin: 2px;
  white-space: nowrap;
}

.selector-btn:hover {
  background-color: #00ffe4;
  color: #0a0a10;
  box-shadow: 0 0 8px #00ffe4;
}

.selector-btn.selected {
  background-color: #00ffe4;
  color: #0a0a10;
  box-shadow: 0 0 8px #00ffe4 inset;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  box-shadow: 0 0 10px rgba(0,255,234,0.3);
}

th, td {
  border: 1px solid #00ffe4;
  padding: 10px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
}

th {
  background-color: #111;
  color: #00ffe4;
}

tr:nth-child(even) {
  background-color: #111111;
}

/* Inputs */
input[type="text"],
input[type="date"],
select {
  background-color: #0a0a10;
  color: #ffffff;
  border: 1px solid #00ffe4;
  padding: 0.375rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Orbitron', sans-serif;
}

/* Calendar icon color for date input */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Last column delete button */
#record-table td:last-child button {
  font-size: 0.75rem;
  padding: 2px 4px;
}

/* Ensure text color in tables */
#record-table th,
#record-table td,
#result-table th,
#result-table td {
  color: #ffffff;
}



.group-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  margin: auto;
}

/* アニメーション付き折りたたみ領域 */
.collapsible {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.collapsible.open {
  max-height: 500px; /* 十分に大きめにしておく（内容によって調整可） */
  opacity: 1;
}

.collapsible.open {
  border-top: 1px solid #00ffe4;
  padding-top: 0.5rem;
}



.collapsible {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.collapsible.open {
  max-height: 1000vh; /* かなり大きく */
  opacity: 1;
  border-top: 1px solid #00ffe4;
  padding-top: 0.5rem;
}



canvas {
  box-shadow: 0 0 15px rgba(0, 255, 234, 0.2);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

canvas:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 255, 234, 0.6);
}




.chart-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.chart-box {
  flex: 1 1 400px;
  max-width: 600px;
}
canvas {
  background-color: #111827;
  box-shadow: 0 0 15px rgba(0, 255, 234, 0.2);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
canvas:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0, 255, 234, 0.6);
}




canvas#donut-chart {
  background-color: #0a0a10;
  box-shadow: 0 0 30px #00ffe4;
  border-radius: 1rem;
  transition: all 0.5s ease;
}
canvas#donut-chart:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px #00ffe4;
}



.chart-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

#donut-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  font-family: Orbitron, sans-serif;
  pointer-events: none;
}


.chart-container {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.chart-box {
  width: 50%;
  position: relative;
}

.chart-insight-box {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.insight-header {
  font-size: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  color: #00ffe4;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px #00ffe4;
  border: none !important;
}

.insight-box {
  background-color: #0a0a10;
  padding: 1rem;
  border: 2px solid #00ffe4;
  border-radius: 10px;
  min-height: 260px;
}

.insight-comment {
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}