body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial;
  background: #eee;
  overflow: hidden; /* prevent global scroll */
}

[v-cloak] {
	opacity: 0 
}

body.ready [v-cloak] {
  opacity: 1;
  transition: opacity 1s ease;
}

.menu {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  border-bottom: 2px solid black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1000;
}

.menu-button {
  padding: 6px 10px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-button-bolder {
  padding: 6px 10px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: bolder;
}

.settings-btn {
  cursor: pointer;
  font-size: 20px;
}

/* flash effect */
@keyframes flashAnim {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

.flash {
  animation: flashAnim 1s infinite;
}

.menu-center {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  justify-content: center;
  scrollbar-width: none; /* Firefox */
}

.menu-center::-webkit-scrollbar {
  display: none;
}

.menu.center {
  flex: 2;
  overflow-y: auto;
  position: relative;
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* hide scrollbar */
  scrollbar-width: none; /* Firefox */
}

.center::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.side {
  flex: 1;
  background: #ddd;
  border: 2px dashed #cdcdcd;
  overflow-y: auto;
  overflow: visible;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.side-content {
  padding: 10px;
}

.side-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 60px;
  background: #607070;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 50%;
}

.left .side-toggle {
  right: -30px;
  visibility: hidden;
}

.right .side-toggle {
  left: -30px;
  visibility: hidden;
}

.side::after {
  content: '';
  display: block;
  height: 3000px;
}
.layout {
  display: flex;
  height: calc(100vh - 60px);
  margin-top: 58px;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden; /* isolate scroll areas */
}

/* center area */
.center { flex:2; overflow-y:auto; position:relative; }

.container {
  background: #fff;
  border: 4px solid black;
  padding: 15px;
  box-sizing: border-box;
  scroll-snap-align: start;
}
.container-title { font-weight:bold; margin-bottom:10px; }
.container-icons { display:flex; justify-content:flex-end; gap:10px; cursor:pointer; }

@media (orientation: portrait) {
  .side {
    position: relative;
    flex: 0 0 0px; /* collapsed width */
    transition: flex 0.3s ease, transform 0.3s ease;
    overflow: visible;
  }
  .side.open {
    flex: 0 0 80%;
    z-index: 20;
    background: #ddd;
  }
  .center {
    flex: 1;
  }

  .left .side-toggle {
	visibility: visible;
  }

  .right .side-toggle {
	visibility: visible;
  }

}

/* UNDER CONSTRUCTION */

.under-construction {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 60px);
}

.uc-wrapper {
  width: 100%;
  max-width: 500px;
}

.uc-box {
  background: #fff;
  border: 4px solid black;
  padding: 40px;
  text-align: center;
  box-shadow: 8px 8px 0px black;
}

.uc-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.uc-title {
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 2px;
}

.uc-line {
  height: 4px;
  background: black;
  margin: 15px 0;
}

.uc-subtitle {
  font-size: 14px;
  opacity: 0.7;
}

/* USER MANAGEMENT PAGE */

.user-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.user-box {
  background: #fff;
  border: 4px solid black;
  padding: 30px;
  width: 300px;
  box-shadow: 6px 6px 0px black;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-box input {
  padding: 8px;
  border: 2px solid black;
  font-size: 16px;
}

.user-box button {
  padding: 10px;
  border: 2px solid black;
  background: #eee;
  cursor: pointer;
}

.title {
  font-weight: bold;
  text-align: center;
}

.error {
  color: red;
  font-size: 12px;
}

