/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
.header {
    background-color: #003366;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
}

.menu {
    display: flex;
    gap: 15px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.menu a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* User Info Bar */
.user-info-bar {
    background-color: #e0e0e0; /* Light grey background */
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ccc;
}

.user-info span {
    font-weight: bold;
    color: #003366;
}

.user-info a {
    color: #003366;
    text-decoration: none;
    margin-left: 10px;
}

.user-info a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    padding: 5px;
    max-width: 98%;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #003366;
}

.main-content p {
    font-size: 16px;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: auto) {
    .menu {
        flex-direction: column;
        align-items: center;
    }

    .user-info-bar {
        text-align: center;
    }

    .main-content {
        padding: 10px;
    }
}

/*for login page css*/
/* General Styles */


/* Login Container */
/* Center the login form with spacing from the top */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 50px auto; /* Center horizontally */
    position: relative; /* Required for vertical centering */
    top: 5vh; /* Adds spacing from the top */
    transform: translateY(0); /* To avoid it being too close to the top edge */
}


.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login-container p {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0055aa;
}

/* Error Message */
.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* Forgot Password Link */
.forgot-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.required {
    color: red;
    font-weight: bold;
}



.main-content {
    flex: 1; /* Take available space and push footer to the bottom */
    display: flex;
    flex-direction: column;
}

.footer {
    background-color: #003366; /* Match the desired footer background */
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Ensure it stays at the bottom */
}

/* Set width and height for Select2 container to match other form fields */
.select2-container {
    width: 100% !important; /* Ensure it takes up full width of the container */
}

.select2-selection {
    height: 35px !important; /* Match height with other form fields */
    font-size: 14px !important; /* Adjust font size to match other inputs */
}

/* Apply styles for the search field inside the Select2 dropdown */
.select2-search__field {
    height: 35px !important; /* Match height of the search field */
    font-size: 14px !important; /* Adjust font size to match */
}

/* Apply the same styling to standard select elements */
.select2-selection--single {
    height: 35px !important; /* Match height with other form fields */
    font-size: 14px !important; /* Adjust font size to match */
}

/* --- Responsive header/menu fixes --- */
.header { gap: 10px; }
.menu { flex-wrap: wrap; }

/* Tighter spacing as width reduces */
@media (max-width: 1280px) {
  .menu { gap: 10px; }
  .menu-item > a { padding: 8px 10px; font-size: 14px; }
}

/* Wrap to two lines if needed */
@media (max-width: 1024px) {
  .header { padding: 10px 12px; }
  .menu { gap: 8px; }
  .menu-item > a { padding: 8px 8px; }
}

/* Small screens: keep a single-line, scrollable top bar */
@media (max-width: 820px) {
  .menu { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 8px; }
  .menu::-webkit-scrollbar { height: 6px; }
  .menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 3px; }
  .menu-item { flex: 0 0 auto; }
  .menu-item > a { font-size: 13px; }
}

/* Right-edge protection by default for the last two menus */
.menu { position: relative; }
.menu-item:nth-last-child(-n+2) > .dropdown { right: 0; left: auto; }


/* ===========================
   NAV LOOK & FEEL REFINEMENT
   (drop-in overrides)
   =========================== */

/* Top-level items: consistent hit area + subtle background */
.menu a {
  color: #fff;                          /* force white text */
  padding: 10px 12px;                   /* consistent padding */
  border-radius: 10px;                  /* soft pill corners */
  background: transparent;              /* no odd backgrounds */
  font-weight: 700;
  letter-spacing: .2px;
  transition: background .18s ease, transform .06s ease, color .18s ease;
}

/* Hover: gentle lighten instead of harsh color swap */
.menu a:hover {
  color: #fff;                          /* keep white text */
  text-decoration: none;                /* remove underlines */
  background: rgba(255,255,255,.12);    /* soft glassy hover */
  transform: translateY(-1px);
}

/* Active/current: add class="is-active" to the current section link if you want */
.menu a.is-active,
.menu a:focus-visible {
  background: rgba(255,255,255,.22);
  outline: 2px solid rgba(255,255,255,.22);
  outline-offset: 0;
}

/* Dropdown container: single, tidy style */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;                              /* default left-align */
  min-width: 230px;
  padding: 6px;
  border-radius: 12px;
  background: #0a3d73;                  /* unified deep blue */
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  z-index: 1001;
}

/* Keep last menus inside screen (you already have this—kept for safety) */
.menu { position: relative; }
.menu-item:nth-last-child(-n+2) > .dropdown { right: 0; left: auto; }

/* Show dropdown on hover (no JS required) */
.menu-item:hover > .dropdown { display: block; }

/* Dropdown links: same rhythm as top bar for visual continuity */
.dropdown li { list-style: none; }
.dropdown li a {
  display: block;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
}
.dropdown li a:hover {
  background: rgba(255,255,255,.12);
}

/* Optional little underline animation on top links */
.menu a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px; height: 2px;
  background: #ffcc00;                  /* accent */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.menu a:hover::after { transform: scaleX(1); }

/* Harmonize user bar with header (slightly cooler grey) */
.user-info-bar {
  background: #eef3f9;
  border-bottom: 1px solid #d9e3f0;
}
.user-info-bar a { color: #0b64d8; }
