/* === GENERAL === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.admin-page {
  background: gray !important;
  background-image: none !important;
  background-color: #ffffff !important;
  background-blend-mode: normal !important;
}



/*  === PASSWORD  === */
.password-wrapper {
  width: 100%;
  margin-bottom: 15px;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  box-sizing: border-box;
  height: 40px;
  font-size: 16px;
}

.toggle-password-icon {
  position: absolute;
  top: 22px;
  right: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
}



/* === TOP GAP === */
.top-gap{
  height: 5px;
  background-color: #3D5EB2;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  z-index: 901;
  
}

body{
  padding-top: 60px;
}



/* === HEADER === */
header{
  color: #000;
  background-color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);

  position: fixed;
  top: 5px;
  left: 0; right: 0;
  height: 64px;
  z-index: 901;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  text-decoration: underline;
}



/* HEADER TEXT */
h1 {
  font-size: 2rem;
  color: #004080;
  text-align: center;
  margin-top: 30px;
}



/* === PRE-FOOTER === */
.pre-footer {
  background-color: #FBBC04;
  color: #fff;
  padding: 40px 20px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 1);
  position: relative;
  z-index: 800;
}

.pre-footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.pre-footer-left, .pre-footer-right {
  flex: 1 1 400px;
}



/* FOOTER – IMAGE */
.footer-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
}



/* FOOTER – TEXT */
.pre-footer-right p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
  color: black;
}

.proceed-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3D5EB2;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.proceed-button:hover {
  background-color: #003060;
}



/* === FOOTER === */
footer {
  background-color: #003366;
  color: #fff;
  padding: 20px;
  width: 100%;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: auto;
  z-index: 950;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logos img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.footer-logos img:hover {
  transform: scale(1.1);
}

.footer-text {
  font-size: 16px;
  text-align: center;
  flex: 1;
  width: 100%;
}



/* RESPONSIVE DESIGN – MOBILE */
@media (max-width: 768px) {

/* PREFOOTER */
  .pre-footer-content {
    flex-direction: column;
    text-align: center;
  }

  .pre-footer-left, .pre-footer-right {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .pre-footer-right p {
    font-size: 0.95rem;
  }

  .proceed-button {
    font-size: 1rem;
    padding: 10px 18px;
  }

/* FOOTER */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logos {
    position: static;
    justify-content: center;
    margin-bottom: 0px;
  }

  .footer-text {
    text-align: center;
  }

/* LOG IN */
  .logging-in {
    flex-direction: column;
    text-align: center;
  }

  .text-content,
  .image-content {
    max-width: 100%;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .login-switch {
    display: none;
  }

  .login-button-mobile {
    display: block;
  }

  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #004080;
    padding: 10px;
    border-radius: 10px;
    gap: 1px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
  }
}






/* LOGOUT MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.modal-overlay.hide {
  animation: fadeOut 0.3s ease forwards;
}

.modal-box {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.confirm-btn,
.cancel-btn{
  min-width: 0;
  height: 48px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: .18s ease;
  margin: 0;
}

.confirm-btn{
  background: #EEF2F6;
  border-color: #CFD8E3;
    color: #0F172A;
}

.confirm-btn:hover{ filter: brightness(.97); }

.cancel-btn,
.enter-btn{
  background: #004080;
  color: #fff;
  border-color: transparent;
  padding: 12px 28px;
}

.cancel-btn:hover,
.enter-btn:hover{ background: #003060; }

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
  
}

.modal-overlay.hide {
  animation: fadeOut 0.3s ease forwards;
}

.enter-btn {
  color: white;
    font-style: bold;
        background-color: green;
          border: none;
  border-radius: 8px;
    font-size: 1.1rem;
    padding: 12px 9px;
}
.confirm-btn,
.cancel-btn {
  padding: 12px 2px;
  font-size: 1.1rem;
  min-width: 120px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}





/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-slide {
  animation: fadeSlideLeft 0.8s ease forwards;
  opacity: 0;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}





/* SIDEBAR FOR ALL */
  .container {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
  }

  .logo{
    display:flex; align-items:center; gap:8px;
    text-decoration:none; color:inherit;
    cursor:pointer;
  }

  /* SIDEBAR */
  .sidebar {
    width: 100px;
    flex: 0 0 100px;
    background-color: transparent;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: none;
    position: relative;
    top: 0;
    height: auto;
    overflow: visible;
    z-index: 1;
  }

  .sidebar { 
    flex: 0 0 100px; 
  }

  .sidebar::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100px;
    height: calc(100vh );
    background-color: #004080;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
    pointer-events: none;
    z-index: 300;
  }

  .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .sidebar .sidebar-menu {
    position: fixed;
    left: 0;
    top: 80px;
    width: 100px;
    height: calc(100vh - 70px);
    overflow: hidden;
    padding: 10px;
    margin: 0;
    z-index: 400; 
  }

  .menu-item {
    margin-bottom: 15px;
    text-align: center;
  }

  .menu-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-bottom: 2px solid white;
    padding-bottom: 8px;
    cursor: pointer;
    transition: filter 0.3s ease;
  }

  .menu-item img:hover {
    filter: brightness(0.7);
  }

  header .nav-links .logout-link { 
    display: none; 
  }

  .sidebar-bottom{
    position: fixed;
    left: 0;
    bottom: 16px;
    width: 100px;
    display: flex;
    justify-content: center;
    z-index: 450;
    pointer-events: auto;
  }

  .logout-pill{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    opacity: .95;
  }
  .logout-pill img{
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
    filter: brightness(0) invert(1); /* puti ang icon */
    transition: background .2s ease, transform .15s ease;
  }
  .logout-pill:hover img{
    background: rgba(255,255,255,.18);
    transform: translateY(-1px);
  }

  /* MOBILE */
  @media (max-width: 768px){
    .sidebar-bottom{
      position: static;
      width: auto;
      margin-top: 8px;
    }
  }
  
  
  /* sa styles.css mo */
.pdf-link a,
.pdf-link a:visited{ color: inherit; text-decoration: none; font-style: italic;}
.pdf-link a:hover,
.pdf-link a:focus{ color: inherit; text-decoration: underline; } /* optional */