.navbar {
  background-color: darkblue;
  padding: 10px 0;
  margin: 0;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

/* Center the navbar links horizontally */
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 20px;  /* space between links */
  margin: 0;
  padding: 0;
}
.navbar ul li {
  display: inline-block;
}
.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s, transform 0.2s;
}

.navbar ul li a:hover {
  color: #ffd700; 
  transform: scale(1.05);
}

/* ==== CONTAINER STYLE ==== */
.container {
  margin: 30px auto;
  max-width: 700px; /*prevents form from being too wide */
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Center the title neatly */
.container h2 {
  text-align: center;
  color: darkblue;
  margin-bottom: 25px;
}
.container p{
  text-align: center;
  font-weight: bold;
  font-size: larger;
  font-style: italic;
  
}

/* Labels and inputs for better readability */
label {
  font-weight: 600;
  color: darkblue;
  display: block;
  margin-top: 10px;
}

input, select, button {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 15px;
}

button {
  background-color: #0047ab;
  color: white;
  font-weight: bold;
  border: none;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: darkblue;
}

footer {
  text-align: center;
  padding: 10px;
  background: darkblue;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 40px;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f0f4f8;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: -5px;
}
.navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-size: 1.05rem;
  padding: 8px 15px;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  background-color: blue;
  border-radius: 5px;
}
 /* Center navbar items */
.navbar-nav {
  margin: auto;
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.id-card {
background: #fff;
border-radius: 10px;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
padding: 25px;
transition: 0.3s;
font-size: smaller;
}

.id-card:hover {
transform: translateY(-5px);
        }
.id-card h3 {
color: darkblue;
font-weight: 500;
font-size: x-large;
text-align: center;
}
.id-card p {
color: #555;
font-size: small;
font-weight: bold;
}
.id-card button {
background-color: blue;
color: #fff;
border: none;
padding: 8px 16px;
border-radius: 6px;
transition: 0.3s;
}
.id-card button:hover {
background-color: darkblue;
}
.hero-section {
margin-top: -56px; /* default Bootstrap navbar height */
height: calc(100vh + 40px); /* extend hero to fill visible gap */
position: relative;
height: 100vh;
background: url('image/coat\ of\ arm.png') center/cover no-repeat; /* Replace with your image */
height: 70vh;
animation: floatBanner 5s ease-in-out infinite alternate;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
overflow: hidden;
background-attachment: fixed;
}
.hero-section .overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 50, 0.55);
}
.hero-content {
position: relative;
z-index: 2;
}
.hero-content h1 {
font-size: 2.5rem;
}
.hero-content p {
font-size: 1.2rem;
}
/* Animation for floating effect */
@keyframes floatBanner {
from { transform: translateY(0px); }
to { transform: translateY(10px); }
}
@media (max-width: 768px) {
.hero-content h1 {
font-size: 1.8rem;
}
.hero-content p {
font-size: 1rem;
}
}
/* Adjust for fixed navbar overlap */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 85, 0.3);
}
/* Hero animation */
@keyframes floatHero {
  0%, 100% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(10px);
  }
}
.container-fluid p{
  font-size: larger;
  font-weight: bold;
}
.container-fluid h2{
  color: darkblue;
}
/* === Mobile Responsiveness === */
@media (max-width: 768px) {
  .form-container {
    padding: 10px;
  }
}
.custom-navbar {
  background-color: darkblue !important; 
  z-index: 1050;
}
.navbar-toggler {
  z-index: 1060;
}
/* small-screen collapse background so links are readable */
@media (max-width: 991px) {
  #mainNavbar {
    background-color: darkblue;
    margin-top: 8px;
    border-radius: 8px;
    padding: 8px 12px;
  }
  #mainNavbar .nav-link {
    color: #fff !important;
    padding: 8px 10px;
  }
}
/* === NAVBAR === */
.custom-navbar {
  background-color: darkblue !important; 
  z-index: 1050;
}
.navbar-toggler {
  z-index: 1060;
}
/* Mobile menu styling */
@media (max-width: 991px) {
  #mainNavbar {
    background-color: darkblue;
    margin-top: 8px;
    border-radius: 8px;
    padding: 8px 12px;
  }
  #mainNavbar .nav-link {
    color: #fff !important;
    padding: 8px 10px;
  }
}
h2 {
  color: darkblue;
}
.table {
  border-radius: 8px;
  overflow: hidden;
}
.table thead th {
  background-color: darkblue !important;
  color: white;
}
@media (max-width: 768px) {
  .page-title {
    font-size: 1.4rem;
  }
  .chart-container {
    height: 300px;
  }
  .chart-toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
.btn-primary {
  background-color: blue !important;
  border: none;
}
.btn-primary:hover {
  background-color: darkblue !important;
}
.taken-party {
  color: #d9534f !important;
  font-style: italic;
}
/* Responsive fix for form and footer */
.form-container {
  max-width: 850px;
  margin: auto;
}
footer {
  background-color: darkblue;
}
@media (max-width: 768px) {
  .navbar-nav {
    background-color: darkblue;
    padding: 10px 0;
  }
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper .password-field {
  flex: 1;
  padding-right: 40px; /* space for icon inside input */
  height: 45px; 
  box-sizing: border-box;
}
.password-wrapper .toggle-password {
  position: absolute;
  right: 12px; /* sits at the right end of input */
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6c757d;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: right;
  justify-content: right;
  height: 100%;
}
.password-wrapper .toggle-password:hover {
  color: #0d6efd;
}
.password-wrapper .toggle-password.active i {
  color: #198754;
}
