body {
  min-height: 100vh;
  background: linear-gradient(#ffe7e7, #ffbebe);
}

/* nav bar */
.navbar {
  background-color: #800000; /* LPU red */
  color: white;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: margin-left 0.3s ease-in-out; /* Add smooth transition */
}
.navbar-brand {
  color: white !important; /* White text color */
}

/* Adjust image color if it's an SVG */

.navbar img {
  height: 65px;
  margin-left: 10px;
}

.navbar h1 {
  margin: 0;
  font-size: 24px;
}

.navbar.shift {
  margin-left: 250px; /* Shifts navbar when menu is opened */
}


.hamburger {
  font-size: 30px;
  cursor: pointer;
  display: none;
}


.container {
  display: flex;
  justify-content: space-between;
  padding: 50px;
  padding-top: 120px; /* Increased padding to ensure content is below the fixed navbar */
}

.slideshow {
  flex: 1;
  text-align: center;
  position: relative;
}

.slideshow img {
  width: 1000px;
  height: 500px;
  object-fit: contain;
  border: 1px solid #ccc;
  background-color: rgba(221, 221, 221, 0.9);
  border-radius: 10px;
}

.slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(128, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 24px;
  padding: 1px;
  cursor: pointer;
  border-radius: 50%;
}

.slideshow button:hover {
  background-color: rgba(160, 0, 0, 0.9);
}

.slideshow button:first-of-type {
  left: 20px;
}

.slideshow button:last-of-type {
  right: 20px;
}

.sidebarind {
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.sidebarind button {
  background-color: #800000;
  color: white;
  border: none;
  padding: 15px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.sidebarind button:hover {
  background-color: #a00000;
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.4); 
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 400px; /* Adjust modal width for portrait layout */
  border-radius: 10px;
  display: flex;
  flex-direction: column; 
  gap: 5px; 
}

.modal button{
  background-color: #800000;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 85%; 
  margin: 10px 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding-top: 10px;
}

form label {
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
}

form input {
  width: 95%; 
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background-color: #800000;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%; 
  margin: 10px 0;
}

form button:hover {
  background-color: #a00000;
}

.form-group label input {
  margin-right: 10px;         /* Adds some space between the checkbox and text */
}

.terms-link {
  text-decoration: underline; /* Underline to make it look like a link */
  cursor: pointer;           /* Cursor as pointer to indicate it's clickable */
  color: blue;               /* Blue color for the link */
  font-weight: bold;         /* Optional: Make the link text bold */
  white-space: nowrap;       /* Prevent the text from breaking into a new line */
}

.form-group label {
  display: flex;       /* Keeps checkbox and text on the same line */
  align-items: center;        /* Vertically align the checkbox and text */
  justify-content: flex-start; /* Aligns content to the left */
  width: 70%;                /* Ensures full width of the container */
}

.form-group label input[type="checkbox"] {
  transform: scale(1.5); 
  margin-right: 10px; 
  vertical-align: middle; 
}
.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}


/* Login Page */

.loginBtnlp {
  background-color: rgb(192, 192, 192); 
  color: black; 
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px; 
  margin-left: auto; /* Ensures the button aligns to the right */
}

.landing-page {
  position: relative;
  min-height: 100vh; 
}

.landing-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/lpc.jpg'); /* Path to your image */
  background-size: cover; /* Ensures the image covers the whole page */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1; /* Ensures the background stays behind the content */
}

.announcement {
  display: flex; 
  justify-content: center;  /* Center horizontally */
  align-items: center;  /* Center vertically */
  height: 100vh;  
  text-align: center;  
  color: #800000;  /* Text color */
}

.announcement h1 {
  font-size: 5rem; /* Make the font size large */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: -1px;  /* Optional: Space out the letters */
}


/* login page zone */

/* container */
body.login-page {
  display: flex;
  justify-content: center; 
  align-items: center;      
  height: 100vh;
  min-height: 100vh;   /* Ensures the body takes the full height */
  background-image: url('images/lpc.jpg'); /* Background image */
  background-size: cover;   /* Ensure the image covers the page */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;  /* Remove any default margin */
}

.login-container {
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
  padding: 30px;
  border-radius: 10px;
  width: 100%;  /* Make it responsive */
  max-width: 400px;  /* Maximum width for larger screens */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}


/* Logo and title */
.logo img {
  width: 325px;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #800000; /* LPU red */
}

/* Form group styling */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: 10px;
  margin: 1px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Forgotten password link */
.forgot-password {
  margin-top: 10px;
  font-size: 0.9rem;
}

.forgot-password a {
  color: #800000;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 10px;
  background-color: #800000; /* LPU red */
  color: white;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-btn:hover {
  background-color: #A90000; /* Darker shade on hover */
}

/* Sign-up link */
.sign-up {
  margin-top: 20px;
}

.sign-up a {
  color: #800000;
  text-decoration: none;
}

.sign-up a:hover {
  text-decoration: underline;
}


/* Cards and Charts */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: white;
  border-left: 8px solid #800000;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.card h3 {
  margin: 0;
  color: #A90000;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 1.8rem;
  font-weight: bold;
}

.charts-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 30px;
  max-width: 1050px;
  margin: 0 auto;
}

.chart-box {
  width: 500px;
  height: 500px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 8px solid #800000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-box h2 {
  text-align: center;
  color: #A90000;
  margin-bottom: 15px;
}

.chart-box canvas {
  flex: 1;
  width: 100% !important;
  height: 100% !important;
}

.chart-container {
  max-width: 800px;
  height: 500px;
  margin: 30px auto;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-left: 8px solid #800000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-container h2 {
  color: #A90000;
  text-align: center;
  margin-bottom: 20px;
}

/* Menu (Sidebar) */
.menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #800000;
  padding: 20px;
  transition: left 0.3s ease-in-out;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu.active {
  left: 0;
}

.menu button {
  background-color: #800000;
  color: white;
  border: none;
  padding: 15px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start; /* Aligns items starting from left */
  width: 100%; /* Make buttons fill the width */
}

/* Hide text when sidebar is collapsed */
.menu .menu-text {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Ensure icons are always visible */
.menu i {
  font-size: 20px;
  display: inline-block;
}

/* When sidebar is collapsed, hide text */
.menu.hide-text .menu-text {
  display: none;
}

/* When sidebar is collapsed, the icons remain visible */
.menu.hide-text i {
  display: inline-block;
}

.menu.active button:hover {
  background-color: #a00000;
}

/* Main Content */
.main-content.shrink {
  margin-left: 250px;
}

.menu.active .menu-text {
  opacity: 1;
}

/* Sidebar Logo and Text */
.sidebar-logo {
  width: 30px;
  height: auto;
}

.sidebar-name {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}


@media (max-width: 767px) {
  /* Navbar */
  .navbar {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar img {
    margin-left: 0;
    height: 50px;
  }

  .hamburger {
    display: block;
  }

  .container {
    padding: 10px;
  }

  /* Slideshow */
  .slideshow img {
    width: 100%;
    height: 300px;
  }

  /* Sidebar */
  .sidebarind {
    width: 100%;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
  }

  .sidebarind button {
    padding: 12px;
    font-size: 14px;
  }

  .menu {
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
  }

  .menu.active {
    left: 0;
  }

  /* Form */
  form {
    width: 90%; /* Make form take up 90% of the screen */
    margin: 0 auto; /* Center form */
    padding: 15px; /* Add some padding */
  }

  form input {
    padding: 12px; /* Increase padding for easier touch input */
    font-size: 16px; /* Adjust font size */
  }

  form button {
    font-size: 18px; /* Make button text larger on mobile */
    padding: 14px;
  }

  /* Adjust labels for smaller screens */
  form label {
    font-size: 16px;
  }

  /* Modal */
  .modal-content {
    width: 95%;
  }

  /* Cards */
  .dashboard {
    grid-template-columns: 1fr; /* Stack cards */
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 1.5rem;
  }

  /* Landing page */
  .landing-page h1 {
    font-size: 2rem;
  }

  .modal {
    z-index: 2;
  }

  .navbar {
    z-index: 1;
  }

}