body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #2A7B9B;
  background: linear-gradient(-165deg, #38538f 0%, #0b1323 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
}

header {
  background: #008c6b;
  color: white;
  text-align: center;
  font-size: 1.3rem;
  position: sticky;
  top: 0;
  padding: env(safe-area-inset-top) 0 0 env(safe-area-inset-left);
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 36px;
  border-bottom-left-radius: 36px;
}


main {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: 130px; /* adjust based on nav-bar height + margins */
  size: 20px
}

.page {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}



/*im never using chatgpt code again - 67*/
.cacatime {
  border-radius: 25px;
  background: #000000;
  padding: 20px; 
  width: 200px;
  height: 150px;  
}


/* Bottom nav bar */
.tab-bar {
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  /* Margins */
  margin-top: 20px;
  margin-right: 10px;
  margin-bottom: 20px;
  margin-left: 10px;

  border-radius: 36px;

  /* Glass effect */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.4); /* darker glass for readability */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);

  padding: 0.6rem 0.4rem;
  z-index: 1000;
}


/* Nav buttons */
.tab-bar button {
  flex: 1;
  border: none;
  background: none;
  padding: 0.7rem 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff; /* white icons/text */
  transition: transform 0.2s ease, color 0.2s ease;
  
}

.tab-bar button span {
  font-size: 0.75rem;
  margin-top: 0.2rem;
  opacity: 0.8;
}

/* Active (highlighted) tab */
.tab-bar button.active {
  color: #0a84ff; /* blue accent */
  transform: scale(1.15); /* pop animation */
  font-weight: bold;
}

.tab-bar button.active span {
  opacity: 1;
}

iframe {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 8px;
  background: white;
}

.centered-text {
  text-align: center;
}



button.first {
  background: #00bf8f;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #008c6b, #00bf8f);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #008c6b, #00bf8f); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  margin-top: 5px;
  margin-right: 2.5px;
  margin-bottom: 5px;
  margin-left: 2.5px;
  border: none;
  border-radius: 24px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.first:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

button.first:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}


/* Secondary button (outline/glassy look) */
button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #0a84ff;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  padding: var(--btn-padding);
  border: 2px solid #0a84ff;
  border-radius: var(--btn-radius);
  cursor: pointer;
  margin-top: 5px;
  margin-right: 2.5px;
  margin-bottom: 5px;
  margin-left: 2.5px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.secondary:hover {
  background: rgba(10, 132, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

button.secondary:active {
  background: rgba(10, 132, 255, 0.25);
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


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

.modal-content {
  background: #6b0505;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  margin-top: 20px;
  margin-right: 10px;
  margin-bottom: 20px;
  margin-left: 10px;
}

.warning-symbol {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal-buttons button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

button.delete {
  background: #e74c3c;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #e74c3c, #971313);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #e74c3c, #971313); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 600;
  padding: 0.65rem 1.0rem;
  margin-top: 5px;
  margin-right: 2.5px;
  margin-bottom: 5px;
  margin-left: 2.5px;
  border: none;
  border-radius: 24px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

button.delete:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

p{
  font-size: 25px;
}

h2{
  font-size: 40px;
}

input[type=text] {
  width: 50%;
  padding: 12px;
  margin-top: 5px;
  margin-right: 2.5px;
  margin-bottom: 5px;
  margin-left: 2.5px;
  box-sizing: border-box;
  background: #00bf8f;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #008c6b, #00bf8f);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #008c6b, #00bf8f); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: white;
  border-radius: 24px;
  padding: 0.75rem 1.5rem;
  border: none;
}