html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* para di mag-scroll buong page */
}

main {
  height: calc(100vh - 60px); /* bawas height ng topbar */
  overflow-y: auto; /* scrollable */
  padding-bottom: 50px; /* allowance sa baba */
}

.container-box {
  display: flex;
  width: 100%;
  height: 100vh; /* full height */
}

/* Left Panel */
.left-panel {
  width: 60%;
  background-color: #0a1a72; /* navy blue */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
}

.login-box {
  background-color: white; /* White background */
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  width: 80%; /* responsive */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-box h3 {
  font-weight: bold;
  margin-bottom: 10%;
  color: #0a1a72; /* Navy blue text */
}

.login-link {
  display: block;
  border: 2px solid #0a1a72;
  color: #0a1a72;
  border-radius: 10px;
  padding: 3%;
  margin-bottom: 5%;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
  background: transparent;
}

.login-link:hover {
  background-color: #0a1a72;
  color: white;
}

/* Right Panel */
.right-panel {
  width: 40%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps proportions */
}

.back-button-container {
  margin-bottom: 20px;
}

.back-button {
  background-color: #ffd700;
  color: #000;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  position: absolute;
  margin-top: -275px;
}

.back-button:hover {
  background-color: #ffc107; /* Slightly darker on hover */
}

.login-box {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: left; /* align content to left */
  width: 80%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-box h3 {
  font-weight: bold;
  margin-bottom: 20px;
  color: #0a1a72;
  text-align: center; /* title stays centered */
}

.login-box form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.login-box form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.login-link {
  display: block;
  width: 100%;
  border: 2px solid #0a1a72;
  color: white;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
  background: #0d3bd5;
  cursor: pointer;
  text-align: center;
}

.login-link:hover {
  background-color: white;
  color: #0a1a72;
}

/* Sidebar Main Container */
.sidebar {
  background-color: #0a1a72;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0 !important; /* Inalis ang padding dito para sa scrollbar */
}

/* Scrollable Area */
.sidebar-content {
  flex: 1; /* Kinukuha ang lahat ng space maliban sa logout */
  overflow-y: auto;
  padding: 20px;

  /* Hidden scrollbar para malinis tignan */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-content::-webkit-scrollbar {
  display: none;
}

/* Menu Items Alignment */
.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Sub-menu (Reports Dropdown) spacing */
#reportsDropdown ul {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 20px !important;
  padding-left: 10px;
}

/* Logout Container - Fixed at the bottom */
.logout-container {
  padding: 20px;
  background-color: #0a1a72; /* Para hindi transparent habang nag-scroll */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .logout {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.topbar {
  padding: 15px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.card-custom {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.nav-tabs .nav-link {
  border: none;
  color: #ffffff;
  font-weight: 500;
  background: #0a1a72;
  margin: 1px;
}
.nav-tabs .nav-link.active {
  background: #ffcc00;
  color: #000;
  border-radius: 5px 5px 0 0;
}
.underline-text {
  display: inline-block;
  border-bottom: 1px solid #000;
  padding-bottom: 3px;
}

.value-col {
  padding-left: 15px;
}
