/**
 * Global Header Styles
 * Modern, responsive header design
 */

/* Site Header */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}

/* Ensure header-top children don't break layout */
.header-top .header-logo {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

.header-top .header-nav {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

/* Override any conflicting flex rules from other CSS files */
.site-header .header-top {
  display: flex !important;
  justify-content: space-between !important;
}

.site-header .header-top .header-logo {
  flex: 0 0 auto !important;
}

.site-header .header-top .header-nav {
  flex: 0 0 auto !important;
}

/* Header Logo - Left Side */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.site-logo {
  height: 45px;
  width: auto;
}

.site-name {
  font-size: 26px;
  font-weight: 700;
  background: #0133a0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header Navigation - Right Side */
.header-nav {
  display: flex;
  align-items: center;
}

.header-nav ul:not(.dropdown-menu) {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Navigation Dropdown Styles */
.header-nav .nav-item.dropdown,
.nav-item.dropdown,
li.nav-item.dropdown {
  position: relative;
}

.header-nav .nav-item.dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0133A0;
  font-family: "Cabin", sans-serif;
  font-size: 1.125rem;
  line-height: 130%;
  text-decoration: none;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-nav .nav-item.dropdown .nav-link:hover {
  color: #01236d;
}

/* ==========================================================================
   MAIN NAVIGATION DROPDOWN STYLES
   Override all other dropdown styles for the site navigation menu
   ========================================================================== */

/* Base dropdown container */
li.nav-item.dropdown,
.nav-item.dropdown {
  position: relative !important;
}

/* Default HIDDEN state - dropdown menu */
li.nav-item.dropdown > .dropdown-menu,
li.nav-item.dropdown > ul.dropdown-menu,
.nav-item.dropdown > .dropdown-menu,
.header-nav li.dropdown > .dropdown-menu,
.header-nav .nav-item.dropdown > .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 9999 !important;
  min-width: 200px !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  list-style: none !important;
  /* HIDE by default */
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* SHOW on hover - dropdown menu */
li.nav-item.dropdown:hover > .dropdown-menu,
li.nav-item.dropdown:hover > ul.dropdown-menu,
.nav-item.dropdown:hover > .dropdown-menu,
.header-nav li.dropdown:hover > .dropdown-menu,
.header-nav .nav-item.dropdown:hover > .dropdown-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Dropdown menu item styling */
.header-nav .nav-item.dropdown .dropdown-menu > li > a,
.nav-item.dropdown .dropdown-menu > li > a,
li.dropdown .dropdown-menu > li > a,
.dropdown-menu .dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #4C4C4C;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  line-height: 130%;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-nav .nav-item.dropdown .dropdown-menu > li > a:hover,
.header-nav .nav-item.dropdown .dropdown-menu > li > a.active,
.nav-item.dropdown .dropdown-menu > li > a:hover,
li.dropdown .dropdown-menu > li > a:hover,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
  background-color: #01236d !important;
  color: #ffffff !important;
}

/* Dropdown arrow indicator */
.header-nav .nav-item.dropdown .dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid currentColor;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: transform 0.2s ease;
}

.header-nav .nav-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-menu li a {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-menu li a:hover {
  background: #f3f4f6;
  color: #0133a0 !important;
}

.nav-menu li a:hover i {
  background: #f3f4f6;
  color: #0133a0 !important;
}

/* Login Button */
.btn-login {
  border: 2px solid #0133a0 !important;
  color: #0133a0 !important;
  background: transparent !important;
}

.btn-login:hover {
  background: #0133a0 !important;
  color: #ffffff !important;
}

/* Register Button */
.btn-register {
  background: #0133a0 !important;
  color: #ffffff !important;
  padding: 10px 24px !important;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Logout Button */
.btn-logout {
  border: 2px solid #ef4444 !important;
  color: #ef4444 !important;
  background: transparent !important;
}

.btn-logout:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
}

.btn-menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #0133a0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.btn-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.btn-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.header-mobile-menu {
  display: none;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
}

.header-mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-menu li:last-child {
  border-bottom: none;
}

.mobile-nav-menu li a {
  display: block;
  padding: 14px 16px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.mobile-nav-menu li a:hover {
  background: #f3f4f6;
  color: #0133a0;
  padding-left: 24px;
}

/* Content Header */
.content-header {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}

.content-header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.breadcrumb-wrapper nav[role="navigation"] {
  margin-bottom: 12px;
}

.breadcrumb-wrapper nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb-wrapper nav ol li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.breadcrumb-wrapper nav ol li::after {
  content: "/";
  color: #d1d5db;
}

.breadcrumb-wrapper nav ol li:last-child::after {
  content: "";
}

.breadcrumb-wrapper nav ol li a {
  color: #0133a0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.breadcrumb-wrapper nav ol li a:hover {
  color: #0133a0;
  text-decoration: underline;
}

/* Page Title */
.page-title-wrapper h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

/* Local Tasks (Tabs) */
.local-tasks-wrapper nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e5e7eb;
}

.local-tasks-wrapper nav ul li a {
  display: block;
  padding: 12px 24px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
}

.local-tasks-wrapper nav ul li a:hover {
  color: #0133a0;
  background: #f9fafb;
}

.local-tasks-wrapper nav ul li a.is-active {
  color: #0133a0;
  border-bottom-color: #0133a0;
}

/* Hide elements */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.page-header-wrapper {
  background: #0133a0;
  padding: 60px 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-header-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7L1200,56L1200,0L1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
}

.page-header-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header-content {
  text-align: center;
  color: #ffffff;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 400;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.form-actions button,
.form-actions input[type="submit"],
.form-actions .btn,
.dialog-cancel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.form-actions input[type="submit"],
.form-actions button[type="submit"],
.btn-primary {
  background: #0133a0;
  color: #ffffff;
}

.form-actions input[type="submit"]:hover,
.form-actions button[type="submit"]:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary, .dialog-cancel {
  background: #ffffff;
  color: #0133a0;
  border: 2px solid #0133a0 !important;
}

.btn-secondary:hover, .dialog-cancel:hover {
  /* Hover effect removed */
}

button.button--danger,
input.button--danger {
  background: #ef4444;
  color: #ffffff;
}

button.button--danger:hover,
input.button--danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important; 
}
 
font {
  vertical-align: unset !important;
}
 
.btn.btn-primary {
  background-color: #0133A0 !important;
}
 
 
.user-login-form .login-form .btn.btn-primary{
  background-color: #0133A0 !important;
}

/* Responsive Design */
@media (max-width: 991px) {
  /* Disable hover dropdown on mobile/tablet - use click/JavaScript instead */
  li.nav-item.dropdown:hover > .dropdown-menu,
  li.nav-item.dropdown:hover > ul.dropdown-menu,
  .nav-item.dropdown:hover > .dropdown-menu,
  .header-nav li.dropdown:hover > .dropdown-menu,
  .header-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Mobile dropdown styles when opened via JavaScript */
  li.nav-item.dropdown.open > .dropdown-menu,
  .nav-item.dropdown.open > .dropdown-menu,
  .header-nav .nav-item.dropdown.open > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    padding: 12px 0 0 0 !important;
    margin-top: 0 !important;
  }
  
  .header-nav .nav-item.dropdown .dropdown-menu > li {
    margin: 12px 0;
  }
  
  .header-nav .nav-item.dropdown .dropdown-menu > li > a {
    padding: 8px 0;
  }
  
  .header-nav .nav-item.dropdown .dropdown-menu > li > a:active {
    background-color: #f8f9fa;
  }
  
  .header-nav ul:not(.dropdown-menu) {
    display: block;
  }
  
  .header-nav ul:not(.dropdown-menu) li {
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .page-title-wrapper h1 {
    font-size: 24px;
  }
  
  .local-tasks-wrapper nav ul {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .local-tasks-wrapper nav ul li a {
    white-space: nowrap;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }
  
  .header-top {
    padding: 16px 0;
  }
  
  .site-logo {
    height: 36px;
  }
  
  .site-name {
    font-size: 22px;
  }
  
  .content-header {
    padding: 16px 0;
  }
  
  .content-header .container {
    padding: 0 16px;
  }
  
  .page-title-wrapper h1 {
    font-size: 20px;
  }
}

/* Simple language dropdown (header right: trigger + links list) */
.language-dropdown .language-dropdown-trigger,
.language-dropdown-trigger.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.language-dropdown .language-dropdown-trigger:hover,
.language-dropdown-trigger.dropdown-trigger:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.language-dropdown .language-dropdown-trigger .fa-chevron-down {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.language-dropdown.active .language-dropdown-trigger .fa-chevron-down {
  transform: rotate(180deg);
}

.language-dropdown ul.dropdown-menu,
.language-dropdown ul.links.dropdown-menu {
  min-width: 180px;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.06);
}

.language-dropdown ul.dropdown-menu li,
.language-dropdown ul.links.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-dropdown ul.dropdown-menu li a,
.language-dropdown ul.links.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  text-decoration: none;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-dropdown ul.dropdown-menu li a:hover,
.language-dropdown ul.links.dropdown-menu li a:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.language-dropdown ul.dropdown-menu li.is-active a,
.language-dropdown ul.links.dropdown-menu li.is-active a {
  background: #f1f5f9;
  font-weight: 600;
  color: #01236d;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print Styles */
@media print {
  .site-header,
  .content-header .breadcrumb-wrapper,
  .content-header .local-tasks-wrapper {
    display: none;
  }
}

