/**
 * Navbar Component CSS
 * Styles for the navbar component used across the application
 */

/* MyTPTD Font Styling */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Enhanced CSS Variables */
:root {
  --primary-blue: #002d5b;
  --secondary-blue: #1e5a96;
  --accent-orange: #ffb300;
  --accent-red: #ff6b6b;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --text-muted: #8e9aaf;
  --bg-light: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, #f8f9fa, #e9ecef);
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-heavy: rgba(0, 0, 0, 0.25);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s ease;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Animation Variables */
  --animation-duration: 0.3s;
  --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing Variables */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Typography Variables */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Z-index Variables */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  /* Fixed header height used for layout offsets */
  --top-header-height: 65px;
}

/* Offset content below fixed header */
body {
  padding-top: var(--top-header-height);
}
/* Offset main admin content for fixed sidebar on desktop */
@media (min-width: 992px) {
  .content-area, .holiday-container, .email-container, .dashboard-container {
    margin-left: 260px;
  }
}

/* MyTPTD Brand Font Styling */
.mytptd-font {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.mytptd-font:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 2px 8px rgba(255, 179, 0, 0.3));
}

/* Enhanced Top Header Styles - IONOS Style */
.top-header {
  background: #002d5b;
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: saturate(135%) blur(6px);
}

/* Subtle load-in animation for header and mobile elements */
@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-header.animate-in,
.mobile-contact-header.animate-in,
.mobile-menu-container.animate-in,
.mobile-nav-content.animate-in {
  animation: navFadeIn 360ms ease-out 60ms forwards;
}

@keyframes navFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-header .container {
  position: relative;
  z-index: 2;
}

.top-header .container-fluid {
  position: relative;
}

.top-header .row {
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.brand-logo:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 55px;
  width: auto;
  border-radius: 8px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-logo:hover .logo-img {
  transform: rotate(5deg) scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(255, 179, 0, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.brand-name {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.brand-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  line-height: 1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Removed duplicate brand section styles - using new brand-logo styles above */

.contact-info {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 0.9rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.contact-item:hover {
  background: rgba(255, 179, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.15);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 179, 0, 0.2);
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--accent-orange);
  transform: scale(1.1) rotate(10deg);
}

.contact-icon i {
  font-size: 1.3rem;
  color: white;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.contact-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.contact-value {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.contact-value:hover {
  color: var(--accent-orange);
  text-decoration: none;
}

/* Legal pages contact block - centered, responsive, and non-conflicting with header .contact-info */
.legal-contact-info {
  background: var(--white);
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  word-break: break-word;
  max-width: 540px;
  margin: 0 auto 18px auto;
  color: var(--text-dark);
}
.legal-contact-info h4 {
  color: var(--primary-blue);
  margin: 0 0 6px 0;
}
.legal-contact-info p {
  margin: 0;
  color: var(--text-muted);
}
.legal-contact-info a {
  color: var(--secondary-blue);
  word-break: break-all;
}
@media (max-width: 600px) {
  .legal-contact-info {
    padding: 12px 10px;
    max-width: 100%;
    font-size: 0.98rem;
  }
}

/* Removed duplicate contact info styles - using new contact-item styles above */

.top-header .top-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.8rem;
}

.top-header .top-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-header .top-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 179, 0, 0.2),
    rgba(255, 107, 107, 0.2)
  );
  transition: width 0.4s ease;
  z-index: -1;
}

.top-header .top-links a:hover::before {
  width: 100%;
}

.top-header .top-links a:hover {
  color: var(--accent-orange);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
}

/* Header Actions Styling */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  padding-right: 1rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.action-btn i {
  font-size: 1.3rem;
}

.action-btn:hover {
  color: var(--accent-orange);
  text-decoration: none;
  background: rgba(255, 179, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.2);
}

.action-btn.primary {
  background: transparent;
  color: white;
}

.action-btn.primary:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Main Header Styles - Moved to index-page.css */
/* Mobile Menu Styling - Legacy styles (kept for compatibility) */
.mobile-nav-toggle-legacy {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger-line-legacy {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-nav-toggle-legacy:hover .hamburger-line-legacy {
  background: var(--accent-orange);
}

/* Mobile Navigation Styles */
.mobile-nav {
  display: none;
  position: fixed;
  top: 12px;
  right: 1rem;
  z-index: 1020;
}

@media (max-width: 991.98px) {
  .mobile-nav {
    display: block;
  }
}

.hamburger-menu {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hamburger-menu:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-orange);
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-menu.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-menu.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-container {
  position: fixed;
  top: var(--top-header-height);
  left: -100%;
  width: 100%;
  height: calc(100vh - var(--top-header-height));
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  color: var(--white);
  z-index: 1045;
  overflow-y: auto;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-container.is-active {
  left: 0;
}

.mobile-menu-content {
  padding: 0.5rem 0;
  min-height: calc(100vh - var(--top-header-height));
}

.menu-section {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu-section-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.menu-section-title {
  font-weight: 700;
  color: var(--white);
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.menu-chevron {
  color: var(--white);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.menu-section-header[aria-expanded="true"] .menu-chevron {
  transform: rotate(180deg);
}

.menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

.menu-links.collapse:not(.show) {
  display: none;
}

.menu-links.collapse.show {
  display: block;
}

.menu-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.menu-links li a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 1rem 2rem 1rem 3rem;
  transition: all 0.3s ease;
  font-weight: 400;
  font-size: 0.95rem;
}

.menu-links li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-orange);
}

.menu-links li a i {
  margin-right: 1rem;
  color: var(--accent-orange);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-nav-content {
  padding: 0;
  background-color: var(--sidebar-blue);
  max-height: 100vh;
  overflow-y: auto;
  color: white;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1030;
  transition: transform 0.3s ease;
  transform: translateX(100%);
}

.mobile-nav-content.show {
  transform: translateX(0);
  display: block;
}

/* Responsive */
@media (max-width: 992px) {
  .header-contact {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--sidebar-blue);
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    overflow-y: auto;
  }

  .mobile-nav-content.show {
    transform: translateX(0);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* Blue Sidebar Design */
.blue-sidebar {
  background-color: var(--sidebar-blue);
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--sidebar-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.sidebar-header .brand {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header .brand img {
  height: 30px;
  width: auto;
}

.close-sidebar {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.close-sidebar:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  background-color: var(--sidebar-item-blue);
  font-weight: 500;
  position: relative;
}

.sidebar-section-header:hover,
.sidebar-section-header:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

.sidebar-section-header .chevron {
  position: absolute;
  right: 1rem;
}

.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-right: 0.75rem;
}

.sidebar-section-header.no-dropdown {
  background-color: var(--sidebar-blue);
  font-weight: bold;
  padding: 1.25rem 1rem;
}

.sidebar-icon i {
  font-size: 1.2rem;
  color: white;
}

.mobile-nav-section {
  margin-bottom: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 0;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  margin-bottom: 0;
  background-color: var(--sidebar-item-blue);
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transform: translateX(8px);
}

.mobile-nav-link i {
  font-size: 1.1rem;
  color: white;
  width: 20px;
  text-align: center;
}

.mobile-nav-link span {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Make mobile menu visually match pre-auth header */
.top-header .mobile-nav-toggle {
  margin-left: auto;
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  gap: 6px;
  padding: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.top-header .mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-orange);
}

/* Position hamburger at right on very small screens */
@media (max-width: 576px) {
  .top-header {
    position: fixed;
    width: 100%;
  }
  .mobile-contact-header {
    margin-top: 0;
  }
  .top-header .mobile-nav-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    z-index: 1040;
  }
  /* ensure header logo doesn't push toggle down */
  .top-header .brand-logo {
    max-width: calc(100% - 64px);
  }
}

.top-header .mobile-nav-toggle .hamburger-line {
  width: 24px;
  height: 2px;
  background: white;
  display: block;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.top-header .mobile-nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.top-header .mobile-nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.top-header .mobile-nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* mobile collapse should use brand colors */
/* Consolidated: .mobile-menu-container styles defined earlier using --top-header-height; duplicate override removed for consistency */

.mobile-nav-collapse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: var(--primary-blue);
  color: white;
  z-index: 1030;
  display: none;
  overflow-y: auto;
}

.mobile-nav-collapse.show {
  display: block;
}

.mobile-nav-collapse .mobile-nav-content {
  padding: 1rem;
}

.mobile-nav-collapse .mobile-nav-link {
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-collapse .mobile-nav-link i {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav-collapse .mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: white;
}

@media (max-width: 991.98px) {
  .mobile-nav-toggle-legacy {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .contact-info {
    gap: 15px;
  }

  .contact-item {
    padding: 6px 8px;
  }

  .header-actions {
    gap: 10px;
  }

  .action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Enhanced Mobile Menu Styles */
.navbar-toggler {
  border: none;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  position: relative;
  overflow: hidden;
}

.navbar-toggler::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.navbar-toggler:hover::before {
  width: 100px;
  height: 100px;
}

.navbar-toggler.active {
  transform: scale(1.1) rotate(180deg);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(0, 45, 91, 0.2);
}

/* User Info Styles */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin-left: auto;
  margin-right: 20px;
}

.user-info i {
  font-size: 1.2rem;
  color: var(--accent-orange);
}

.user-details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-details .username {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-orange);
}

.user-details .designation {
  font-size: 1rem;
  color: var(--accent-orange);
  position: relative;
  padding-left: 12px;
}

.user-details .designation::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--accent-orange);
}

/* Mobile User Info and Create Account Styles */
.mobile-user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  width: 100%;
  transition: transform 0.3s ease;
}

.mobile-user-info i {
  font-size: 1.1rem;
  color: var(--accent-orange);
  grid-area: 5px;
}

.mobile-contact-header .user-details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-contact-header .username {
  font-weight: 700;
  font-size: 1em;
  color: var(--accent-orange);
  padding-left: 4px;
}

.mobile-contact-header .designation {
  font-size: 0.9rem;
  color: var(--accent-orange);
  position: relative;
  padding-left: 12px;
}

.mobile-contact-header .designation::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--accent-orange);
}

.mobile-contact-header {
  background: var(--secondary-blue);
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
}

/* Professional WhatsApp pill */
.mobile-contact-header .mobile-whatsapp-group {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
}

.mobile-contact-header .mobile-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(25, 149, 84, 0.18),
    rgba(25, 149, 84, 0.08)
  );
  border: 1px solid rgba(25, 149, 84, 0.4);
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-contact-header .mobile-whatsapp-link:hover {
  background: linear-gradient(
    180deg,
    rgba(25, 149, 84, 0.28),
    rgba(25, 149, 84, 0.18)
  );
  border-color: rgba(25, 149, 84, 0.6);
  transform: translateY(-1px);
}

.mobile-contact-header .mobile-whatsapp-link i {
  color: #28a745;
  font-size: 1.15rem;
}

.mobile-contact-header .mobile-whatsapp-link span {
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
}

.mobile-contact-header .mobile-whatsapp-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-contact-header .mobile-whatsapp-share:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mobile-contact-header .mobile-whatsapp-share:active {
  transform: translateY(-50%);
}

.mobile-contact-header .mobile-whatsapp-share i {
  color: white;
}

/* Compact sub headers and links inside mobile menu on small screens */
@media (max-width: 576px) {
  .mobile-contact-header {
    padding: 4px 8px;
    gap: 6px;
  }
  .mobile-contact-header .username {
    font-size: 0.9rem;
    line-height: 1;
  }
  .mobile-contact-header .designation {
    font-size: 0.85rem;
    line-height: 1;
    padding-left: 8px;
  }
  .menu-section-header {
    padding: 0.9rem 1.25rem;
  }
  .menu-links li a {
    padding: 0.75rem 1.25rem 0.75rem 2rem;
  }
}

/* Hover effect matching pre-auth WhatsApp link */
.mobile-user-info:hover {
  transform: translateY(-1px);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}

.navbar-collapse {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 45, 91, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-collapse.show {
  opacity: 1;
  transform: translateY(0);
}

.navbar-collapse .navbar-nav .nav-item {
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.3s ease forwards;
}

.navbar-collapse .navbar-nav .nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.navbar-collapse .navbar-nav .nav-item:nth-child(2) {
  animation-delay: 0.2s;
}
.navbar-collapse .navbar-nav .nav-item:nth-child(3) {
  animation-delay: 0.3s;
}
.navbar-collapse .navbar-nav .nav-item:nth-child(4) {
  animation-delay: 0.4s;
}
.navbar-collapse .navbar-nav .nav-item:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.navbar-collapse .navbar-nav .nav-link {
  display: block;
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(0, 45, 91, 0.05);
  margin-bottom: 8px;
  border: 1px solid rgba(0, 45, 91, 0.1);
  position: relative;
  overflow: hidden;
}

.navbar-collapse .navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 45, 91, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.navbar-collapse .navbar-nav .nav-link:hover::before {
  left: 100%;
}

.navbar-collapse .navbar-nav .nav-link:hover {
  background: rgba(0, 45, 91, 0.15);
  transform: translateX(12px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 45, 91, 0.2);
}

/* Desktop Sidebar Styling */
.sidebar-wrapper {
  top: 0;
  left: 0;
  width: 260px;
  background: var(--primary-blue);
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  z-index: calc(var(--z-sticky) - 1);
  height: calc(100vh - 65px); /* Adjust based on top-header height */
  top: 65px; /* Match top-header height */
}

.sidebar {
  padding: var(--spacing-lg) 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.menu-title {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* Overrides: increase mobile nav text sizes */
@media (max-width: 991.98px) {
  .mobile-nav-link span { font-size: 1.05rem !important; }
  .menu-links li a { font-size: 1.05rem !important; }
  .navbar-collapse .navbar-nav .nav-link { font-size: 1rem !important; }
}
@media (max-width: 576px) {
  .mobile-contact-header .username { font-size: 1rem !important; }
  .mobile-contact-header .designation { font-size: 0.95rem !important; }
}
.mobile-contact-header .username { font-size: 1.1rem !important; }

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 12px var(--spacing-lg);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.sidebar .nav-link:hover {
  background: rgba(255, 179, 0, 0.1);
  color: var(--white);
  border-left-color: var(--accent-orange);
}

.sidebar .nav-link.active {
  background: rgba(255, 179, 0, 0.2);
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  border-left-color: var(--accent-orange);
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
  color: var(--accent-color);
  transform: translateX(3px);
}

/* Fix z-index issue with table header and bottom bar */
.content-area {
  position: relative;
  z-index: 1;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Universal Progress Bar */
.universal-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  z-index: 9999;
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

.universal-progress-bar.active {
  transform: translateY(0);
  background-color: var(--accent-orange);
  animation: progress-animation 2s ease infinite;
}

@keyframes progress-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Shared holiday and mobile date card styles */
.table .holiday-row,
.holiday-row {
  background: #fff5e6 !important;
}
.table .holiday-row td {
  background: #fff5e6 !important;
}
.holiday-card {
  background: #fff5e6 !important;
  border: 1px solid #ffd9b3 !important;
}
.holiday-card .card-body,
.holiday-card .card-header {
  background: transparent !important;
}
.mobile-date-card {
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}
.mobile-date-card:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
  transform: translateY(-1px);
}
.mobile-date-card .fw-bold {
  color: #2c3e50 !important;
  font-weight: 600 !important;
}
.mobile-date-card .small {
  color: #6c757d !important;
  font-weight: 500 !important;
}
.mobile-date-card.holiday-card .fw-bold {
  color: #d63384 !important;
}
.mobile-date-card.holiday-card .small {
  color: #dc3545 !important;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.navbar-collapse .navbar-nav .nav-link {
  display: block;
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(0, 45, 91, 0.05);
  margin-bottom: 8px;
  border: 1px solid rgba(0, 45, 91, 0.1);
  position: relative;
  overflow: hidden;
}

.navbar-collapse .navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 45, 91, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.navbar-collapse .navbar-nav .nav-link:hover::before {
  left: 100%;
}

.navbar-collapse .navbar-nav .nav-link:hover {
  background: rgba(0, 45, 91, 0.15);
  transform: translateX(12px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 45, 91, 0.2);
}

/* Desktop Sidebar Styling */
.sidebar-wrapper {
  top: 0;
  left: 0;
  width: 260px;
  background: var(--primary-blue);
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  z-index: calc(var(--z-sticky) - 1);
  height: calc(100vh - 65px); /* Adjust based on top-header height */
  top: 65px; /* Match top-header height */
}

.sidebar {
  padding: var(--spacing-lg) 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.menu-title {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 12px var(--spacing-lg);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.sidebar .nav-link:hover {
  background: rgba(255, 179, 0, 0.1);
  color: var(--white);
  border-left-color: var(--accent-orange);
}

.sidebar .nav-link.active {
  background: rgba(255, 179, 0, 0.2);
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  border-left-color: var(--accent-orange);
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
  color: var(--accent-color);
  transform: translateX(3px);
}

/* Fix z-index issue with table header and bottom bar */
.content-area {
  position: relative;
  z-index: 1;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Universal Progress Bar */
.universal-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  z-index: 9999;
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

.universal-progress-bar.active {
  transform: translateY(0);
  background-color: var(--accent-orange);
  animation: progress-animation 2s ease infinite;
}

@keyframes progress-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
