body {
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.navbar {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0;
  margin-bottom: 2rem;
  z-index: 1000;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  position: relative;
  min-height: 70px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 10;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  margin-left: -0.7rem;
}

.navbar-right a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-left a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-left a:hover,
.navbar-right a:hover {
  color: #1e293b;
  background: rgba(248, 250, 252, 0.8);
  transform: translateY(-0.2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar-left a i,
.navbar-right a i {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.navbar-left a:hover i,
.navbar-right a:hover i {
  opacity: 1;
}

/* Special styling for action buttons */

.navbar-right a[href*="login"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.navbar-left a[href*="signup"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  margin-left: 3rem;
}

.navbar-left a[href*="signup"]:hover,
.navbar-right a[href*="login"]:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
  color: white;
}

.admin-navbar-overlay-text {
  position: absolute;
  margin-top: 99px;
  margin-left: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  padding: 0px 10px 45px 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(117, 116, 116, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 30%;
  min-width: 150px;
  height: 52px;
}

.admin-navbar-overlay-text p {
  margin: 0;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

.admin-navbar-overlay-text span {
  display: block;
  font-weight: 500;
  font-size: 1.1rem;
  color: #718096;
  margin-top: 0.75rem;

  line-height: 1.4;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: #718096;
  letter-spacing: 0.01em;
}

/* Gradient animation for the main title */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Hover effect for enhanced interactivity */
.admin-navbar-overlay-text:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-navbar-overlay-text:hover p {
  animation-duration: 1.5s;
}
/* Focus state for accessibility */
.admin-navbar-overlay-text:focus-within {
  outline: 2px solid #4299e1;
  outline-offset: 4px;
}

.navbar-overlay-text {
  position: absolute;
  margin-top: 99px;
  margin-left: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  padding: 0px 10px 45px 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(117, 116, 116, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 30%;
  min-width: 150px;
  height: 52px;
}

.navbar-overlay-text p {
  margin: 0;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

.navbar-overlay-text span {
  display: block;
  font-weight: 500;
  font-size: 1.1rem;
  color: #718096;
  margin-top: 0.75rem;

  line-height: 1.4;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: #718096;
  letter-spacing: 0.01em;
}

/* Gradient animation for the main title */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Hover effect for enhanced interactivity */
.navbar-overlay-text:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-overlay-text:hover p {
  animation-duration: 1.5s;
}

.navbar-overlay-text:focus-within {
  outline: 2px solid #4299e1;
  outline-offset: 4px;
}
/* Subtle animation on load */
.navbar {
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #f97316 20%,
    #fbbf24 50%,
    #f97316 80%,
    transparent 100%
  );
  opacity: 0.6;
}

/* Hover effect for the entire navbar */
.navbar:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
  z-index: 999;
}

.modal-box {
  background: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-weight: 550;
  color: #154352;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.btn-confirm {
  background-color: #d9534f;
  font-family: "Courier New", Courier, monospace;
  font-size: 15.5px;
  font-weight: 620;
  word-spacing: -3;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-confirm:hover {
  background-color: #c9302c;
  transform: scale(1.03);
}

.btn-cancel {
  background-color: #6c757d;
  font-family: "Courier New", Courier, monospace;
  font-size: 15.5px;
  font-weight: 620;
  word-spacing: -3;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-cancel:hover {
  background-color: #5a6268;
  transform: scale(1.03);
}

.logout-button {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Graceful font */
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: 2px solid #dc2626;
  padding: 7px 10px 31px 10px;
  height: 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.logout-button:hover {
  background: linear-gradient(135deg, #e11d48 0%, #b91c1c 100%);
  border-color: #b91c1c;
  transform: translateY(-2px);
}

/* Mobile Responsive Design - Updated to fix navbar issues */
@media (max-width: 768px) {
  .logout-button {
  
  height: 2.6rem;
  
}
  /* Fix 1: Reduce navbar height and fix overlay text positioning */
  .navbar {
    height: auto;
    min-height: 70px; /* Reduced from default */
  }

  .navbar-content {
    height: 6rem; /* Fixed height for navbar */
    padding: 0.5rem 1rem; /* Reduced padding */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Fix 2: Properly position and size the overlay text box - KEEP IT CENTERED */
  .admin-navbar-overlay-text,
  .navbar-overlay-text {
    position: static; /* Changed from absolute to static */
    transform: none; /* Remove transform */
    padding: 0.8rem 1.2rem; /* Reduced padding */
    min-width: 7rem; /* Reduced min-width */
    max-width: 12rem; /* Reduced max-width */
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 500; /* Below hamburger menu */
    margin: 0 auto; /* Center the box */
  }

  .admin-navbar-overlay-text p,
  .navbar-overlay-text p {
    font-size: 1.4rem; /* Reduced font size */
    line-height: 1.2;
    margin: 0;
  }

  .admin-navbar-overlay-text span,
  .navbar-overlay-text span {
    font-size: 0.75rem; /* Reduced font size */
    margin-top: 0.3rem;
    display: block;
    line-height: 1.3;
    overflow: hidden; /* Prevent text overflow */
    text-overflow: ellipsis;
  }

  /* Fix 3: Hamburger menu positioning - ONLY show on mobile */
  .hamburger {
    display: block;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    z-index: 1001;
    color: #333;
  }
  
  /* Keep desktop navigation VISIBLE on tablet/small desktop */
  .navbar-left,
  .navbar-right {
    display: flex; /* Keep them visible */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 600;
  }

  .navbar-left {
    left: 16px;
  }

  .navbar-right {
    right: 60px; /* Make space for hamburger */
  }

  .navbar-left a,
  .navbar-right a,
  .navbar-right button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    margin: 0 0.2rem;
  }
}
@media (min-width: 769px) and (max-width: 1180px) {
   .logout-button {
  
  height: 1rem;
  
}
  /* Fix 1: Reduce navbar height and fix overlay text positioning */
  .navbar {
    height: auto;
    min-height: 10px; /* Reduced from default */
  }

  .navbar-content {
    height: 6rem; /* Fixed height for navbar */
    padding: 0.5rem 1rem; /* Reduced padding */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Fix 2: Properly position and size the overlay text box - KEEP IT CENTERED */
  .admin-navbar-overlay-text,
  .navbar-overlay-text {
    position: static; /* Changed from absolute to static */
    transform: none; /* Remove transform */
    padding: 1.45rem 1.2rem; /* Reduced padding */
    min-width: 7rem; /* Reduced min-width */
    max-width: 12rem; /* Reduced max-width */
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 500; /* Below hamburger menu */
    margin: 0 auto; /* Center the box */
  }

  .admin-navbar-overlay-text p,
  .navbar-overlay-text p {
    font-size: 1.4rem; /* Reduced font size */
    line-height: 1.2;
    margin: 0;
  }

  .admin-navbar-overlay-text span,
  .navbar-overlay-text span {
    font-size: 0.75rem; /* Reduced font size */
    margin-top: 0.3rem;
    display: block;
    line-height: 1.3;
    overflow: hidden; /* Prevent text overflow */
    text-overflow: ellipsis;
  }

  /* Fix 3: Hamburger menu positioning - ONLY show on mobile */
  .hamburger {
    display: block;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    z-index: 1001;
    color: #333;
  }
  
  /* Keep desktop navigation VISIBLE on tablet/small desktop */
  .navbar-left,
  .navbar-right {
    display: flex; /* Keep them visible */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 600;
  }

  .navbar-left {
    left: 14px;
    gap: 0.1px;
    
  }

  .navbar-right {
    right: 10px; 
    gap: 0.5rem;
  }

  .navbar-left a,.navbar-right a{
    font-size: 0.8rem;
    padding: 0.2rem 2px;
    margin: 0;
    font-size:11px ;
  }

  .navbar-left a i,
  .navbar-right a i {
  font-size: 0.5rem;
  margin-left: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

}
/* Fix for mobile menu - reduce height and improve styling */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #fff;
  height: auto; /* Changed from 100vh */
  max-height: 400px; /* Set maximum height */
  min-height: 300px; /* Set minimum height for 5-6 buttons */
  width: 250px;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
  padding: 60px 20px 20px 20px; /* Added top padding for hamburger */
  z-index: 1000;
  border-radius: 0 0 0 12px; /* Rounded bottom-left corner */
}

/* Enhanced mobile menu button styling */
.mobile-menu a,
.mobile-menu button {
  margin: 8px 0;
  padding: 12px 16px;
  text-align: left;
  text-decoration: none;
  color: #333;
  background: linear-gradient(135deg, #f8eaea 0%, #ccc9c8 100%);
  border: 1px solid #e9ecef;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
  color: white;
  background:  #ea580c;
  transform: translateX(-2px);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu .logout-button {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.mobile-menu .logout-button:hover {
  background: #c82333;
  border-color: #bd2130;
}

@media (max-width: 480px) {
  .navbar {
    min-height: 70px;
  }

  .navbar-content {
    height: 70px;
    padding: 0.4rem 0.8rem;
  }

  .admin-navbar-overlay-text,
  .navbar-overlay-text {
    padding: 0.6rem 1rem;
    min-width: 180px;
    max-width: 260px;
  }

  .admin-navbar-overlay-text p,
  .navbar-overlay-text p {
    font-size: 1.2rem;
  }

  .admin-navbar-overlay-text span,
  .navbar-overlay-text span {
    font-size: 0.7rem;
  }

  .mobile-menu {
    width: 220px;
    max-height: 350px;
    min-height: 280px;
  }
}

@media (max-width: 320px) {
  .navbar {
    min-height: 65px;
  }

  .navbar-content {
    height: 65px;
  }

  .admin-navbar-overlay-text,
  .navbar-overlay-text {
    padding: 0.5rem 0.8rem;
    min-width: 160px;
    max-width: 240px;
  }

  .admin-navbar-overlay-text p,
  .navbar-overlay-text p {
    font-size: 1.1rem;
  }

  .admin-navbar-overlay-text span,
  .navbar-overlay-text span {
    font-size: 0.65rem;
  }

  .mobile-menu {
    width: 200px;
    max-height: 320px;
    min-height: 260px;
  }
}

/* Show mobile menu when active */
@media screen and (max-width: 768px) {
  .navbar-left,
  .navbar-right {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .admin-navbar-overlay-text,
  .navbar-overlay-text {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .admin-navbar-overlay-text p,
  .navbar-overlay-text p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .admin-navbar-overlay-text p,
  .navbar-overlay-text p {
    animation: none;
  }

  .mobile-menu a,
  .mobile-menu button {
    transition: none;
  }

  .mobile-menu a:hover,
  .mobile-menu button:hover {
    transform: none;
  }
}
@media screen and (min-width: 769px) {
    .hamburger {
      display: none !important;
    }
  }



  @media (max-width: 768px) {
  .navbar-overlay-text:hover{
    display: none; /* Hide overlay text on hover for mobile */
  }
  .admin-navbar-overlay-text:hover{
    display: none; /* Hide overlay text on hover for mobile */
  }
   .navbar-overlay-text:hover p{
    display: none; /* Hide overlay text on hover for mobile */
  }
  .admin-navbar-overlay-text:hover p{
    display: none; /* Hide overlay text on hover for mobile */
  }
  .navbar-overlay-text:hover span{
    display: none; /* Hide overlay text on hover for mobile */
  }
  .admin-navbar-overlay-text:hover span{
    display: none; /* Hide overlay text on hover for mobile */
  }
  .admin-navbar-overlay-text:focus-within{
    display: none;
  }
  .navbar-overlay-text:focus-within{
    display: none; 
  }
}