/* submenu.css */
.submenu {
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
  width: 100%;
  display: flex;
}

.submenu button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

.content-section {
  padding: 20px;
  border: 1px solid #ccc;
  background: #f4f4f4;
  border-radius: 8px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for 4x3 layout */
  gap: 20px;
  padding: 20px;
}

.panel {
  border: 2px solid black;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel h3 {
  margin: 0;
  padding: 10px;
  font-size: 1.2em;
  text-align: center;
}

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

td {
  padding: 8px;
  text-align: center;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000; /* above everything else */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); /* dark overlay background */
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex; /* Show modal when active */
}

.modal-content {
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto; /* fix invalid value */
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  position: relative;
}

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

.modal-content td {
  padding: 8px;
  text-align: left;
  font-size: 14px;
}

.close {
  position: absolute;
  top: 10px;
  right: 16px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}
