.kaibaru-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background-color: #f0f4f8;
  margin: 0;          
  transform-origin: top left;
  transition: transform 0.2s ease-out;
  font-size: 22px;
}




.kaibaru-header_style {
  margin: 0;
  font-size: 4rem;
  width: 100%;
  aspect-ratio: 14 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Nav buttons container (separate white background area) */
.kaibaru-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;      /* 👈 enables horizontal scrolling */
  scrollbar-width: thin;
}

/* Editor buttons */
.editor-button {
  flex: 0 0 auto;
  aspect-ratio: 1.8 / 1;
  border-radius: 5px;
  border: 2px solid #555;
  background: linear-gradient(180deg, #555, #444);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  min-width: 40px;
  min-height: 50px;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  vertical-align: middle;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: none;
  margin-right: 5px;
}

/* Hover state */
.editor-button:hover {
  background: #d9edff;
  color: #004d99;
  transform: translateY(-2px);
  border-color: #3399ff;
}

/* Active state */
.editor-button.active {
  border: 2px solid #3399ff;
  background: #4da6ff;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 119, 204, 0.5);
}

/* Container for each select + label pair */
.editor-select-wrapper {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
  vertical-align: middle;
}

/* Labels for the selects */
.editor-select-wrapper label {
  color: #fff;
  font-weight: bold;
  margin-right: 5px;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
}

.editor-select {
  appearance: none;
  background-color: #555; /* solid dark background for visibility */
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' width='12' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 12,0 6,8'/></svg>"); /* arrow */
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 5px 28px 5px 10px;
  background-size: 12px;
  color: #fff; /* text color */
  vertical-align: middle;
  border: 2px solid #555;
  border-radius: 5px;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  min-height: 40px;
  font-weight: bold;
}

/* Hover and focus states */
.editor-select:hover {
  background: #d9edff;
  color: #004d99;
  border-color: #3399ff;
}

.editor-select:focus {
  outline: none;
  border-color: #3399ff;
  box-shadow: 0 0 6px rgba(0, 153, 255, 0.6);
}

/* Match the scale of the buttons visually */
.editor-select option {
  background: #444;
  color: #fff;
  font-weight: bold;
}


.file-input-wrapper {
  height: 40px;              /* match everything */
  display: inline-flex;
  align-items: center;
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.file-input-wrapper label {
  display: inline-flex;       /* match flex of buttons */
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transform: translateY(2px);
  border: 2px solid #aa5500;
  background: linear-gradient(180deg, #ff9900, #cc6600);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  width: 170px;
  min-height: 40px;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  line-height: 1;
  vertical-align: middle;  
  transition: all 0.2s ease;
}

.file-input-wrapper label:hover {
  background: #ffd480; 
  color: #663300;
  transform: translateY(0px);
  border-color: #ffb84d;
}

.file-input-wrapper label:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}




.nav-button {
  flex: 1;
  aspect-ratio: 2 / 1;
  border-radius: 6px;
  border: 2px solid #333;
  background: linear-gradient(180deg, #222, #333);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  min-width: 100px;
  min-height: 45px;
  line-height: 1;
  transition: all 0.3s;
  box-shadow: none;
}

/* Active state — same as editor hover */
.nav-button.active {
  background: #d9edff;
  color: #004d99;
  border: 2px solid #3399ff;
  box-shadow: none;
}

/* Hover state — same as editor active */
.nav-button:hover {
  background: #5a5a5a;
  border-color: #666;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}



.perspective-button {
  flex: 1;
  aspect-ratio: 2 / 1;
  border-radius: 6px;
  border: 2px solid #444;
  background: linear-gradient(180deg, #403e3e, #312f2f);
  color: #292626;
  font-weight: bold;
  cursor: pointer;
  width: 150px;
  height: 60px;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  line-height: 1;
  transition: all 0.3s;
  box-shadow: none;
}

.perspective-button:hover {
  background: linear-gradient(180deg, #e6e6e6, #cfcfcf);
  border-color: #333;
}


.nav-button.active:hover {
  background-color: #cce7ff; /* keep same as active */
  transform: none; /* optional: don’t move active buttons */
}

.member-edit-button {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: #007bff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, background-color 0.2s;
}

.member-edit-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.kaibaru-main {
  padding-top: 20px;
  padding-right: 2px;
  padding-bottom: 20px;
  padding-left: 2px;
}

.content-box {
  border: 2px solid #ccc;
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  min-height: 300px;
  text-align: left;  
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.modal-member-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid black;
  border-radius: 15px;
}

.presence-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: limegreen;
  font-weight: bold;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  pointer-events: none;
}








/* Schedule table */
.schedule-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
}

.schedule-header-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  text-align: center;
  margin-bottom: 10px;
}

.schedule-day {
  background: #0077cc;
  color: white;
  font-weight: bold;
  line-height: 40px;
  min-width: 150px;
  height: 40px;
  border: 1px solid #ddd;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
}

.schedule-cell {
  min-width: 150px;
  aspect-ratio: 1 / 1;
  background: #aab5c0ff;
  border: 1px solid #444a4dff;
  border-radius: 6px;
}

.schedule-member-picture {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid black;
  border-radius: 12px;
  transition: 0.2s all;
}

.schedule-member-picture.present {
  box-shadow: 0 0 20px 5px limegreen;
}

.schedule-lesson-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 1 / 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s ease;
}

.schedule-lesson-card:hover {
  transform: translateY(-5px); 
}

.member-card {
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
  flex: 0 1 109px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #fff;
}

.fullwidth-modal .modal-dialog {
  width: 95vw;       /* 95% of viewport width */
  max-width: 95vw;   /* prevent it from exceeding viewport */
  margin: 1.75rem auto; /* keep vertical spacing */
}

.fullwidth-modal .modal-content {
  overflow-x: auto;  /* horizontal scroll if content is wider */
}


/* Slate editor content spacing */
.slate-editor p,
.slate-editor h1,
.slate-editor h2,
.slate-editor h3 {
  margin: 0em 0; /* reduce spacing */
}

.slate-editor h1 { font-size: 1.8em; }
.slate-editor h2 { font-size: 1.5em; }
.slate-editor h3 { font-size: 1.2em; }








.home-content-container {
  display: block;              
  overflow-x: visible;   
}

.page-wrapper {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}




.info-bubble {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  margin-left: 5px;
  user-select: none; /* prevent text selection */
  transition: background-color 0.2s;
}

.info-bubble:hover {
  background-color: #0056b3;
}