html {
    scroll-behavior: smooth;
    
  }
body {
  font-family: "JetBrains Mono", monospace;
  color: #333;
  background-color: whitesmoke;
  min-height: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
 
}

.navbar {
  background: url("../images/landing-cover.png") no-repeat center center/cover;
  height: 250px;
  width: 100%;
  position: relative;
  filter: brightness(0.9);
}

.navbar::before {
  
  
  background-color: rgba(0, 0, 0, 0.3);
    
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 25%, transparent 50%),
    linear-gradient(240deg, transparent 0%, rgba(255, 255, 255, 0.05) 35%, transparent 70%),
    repeating-linear-gradient(45deg, 
      transparent 0px, 
      transparent 40px, 
      rgba(255, 255, 255, 0.02) 41px, 
      rgba(255, 255, 255, 0.02) 42px, 
      transparent 43px, 
      transparent 80px);
  background-size: 200% 200%, 150% 150%, 80px 80px;
  animation: flowingWaves 15s ease-in-out infinite;
  z-index: 1;
  
}


.navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(59, 130, 246, 0.1) 50%, 
    transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes flowingWaves {
  0%, 100% { 
    background-position: 0% 0%, 0% 0%, 0% 0%; 
  }
  50% { 
    background-position: 180% 180%, -100% -100%, 40px 40px; 
  }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

.navbar-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  color: white;
}
.left-content {
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  gap: 10px; 
}
.logo {
  font-size: 50px;
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
}
.hero-line {
  font-size: 20px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  background-color: rgba(250, 250, 250, 0.075);
  padding: 5px 10px;
  border-radius: 20px;
  margin-left: 0;
}

.right-content {
  display: flex;
  align-items: flex-start;
  padding-top: 20px;
}
.nav-buttons {
  display: flex; 
  gap: 9px;
}
.nav-buttons button {
  margin-left: 15px;
  font-weight: 600;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 207, 134, 0.377); 
  color: #2e2d2d; /* dark gray text */
  border: none;
}

.nav-buttons button:hover {
  background-color: rgba(113, 88, 51, 0.18); /* warm orange */
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: none;

}


.nav-buttons .set-password-btn {
  padding: 8px 16px;
  border-radius: 0.5rem; /* smoother corners */
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* very soft shadow */
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 207, 134, 0.377); /* warm orange */
  color: #2e2d2d; /* dark gray text */
  border: none;
}

.nav-buttons .set-password-btn i {
  font-size: 1rem;
}

.nav-buttons .set-password-btn:hover{
  background-color: rgba(113, 88, 51, 0.18); /* warm orange */
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: none;
  }
.nav-buttons .set-password-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.nav-buttons .logout-button {
  background-color: #b90c0c ;
  border-color: #b13a3a;
  color: #ffffff;
  
}

.nav-buttons .logout-button:hover {
  background-color: #da1c1c ;
  border-color: #b13a3a;
  box-shadow:none;
  
}


.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);
}


.our-fleets-btn {
  margin-top: 5px;
  margin-left: 86px;  
  margin-bottom: -80px;
  background: #009900;
  color: #fff;
  height: 50px;
  font-size: 16px;
  font-family: 'Segoe UI', sans-serif;
  padding: 12px 24px 12px 28px;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background-size: 200%;
  background-position: left center;
  transition: all 0.4s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 450;
}

.our-fleets-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #1fc61f, #048b04);
  background-position: right center;
}

.our-fleets-btn i {
  font-size: 18px;
  margin-left: -0.8rem;
}

.fleets-container {
  display: flex;
  align-items: center; /* vertically align button and message */
  gap: 15px; /* spacing between button and message */
  margin-bottom: 50px;
}




/* Hide hamburger on desktop */
.hamburger {
  display: none;
}

/* Desktop: nav-buttons always visible */
.nav-buttons {
  display: flex;
  gap: 12px;
}
.alert-success{
  font-weight: bold;
  margin-left: 5.1rem;
  margin-top: -2rem;
  
}

.alert-error{
  font-weight: bold;
  margin-left: 5.1rem;
  margin-top: -2rem;
  
}
.alert-close{
  color: black;
  margin-right: 0.1rem;
  margin-left: 4rem ;
  width: fit-content;
  margin-top: -1.1px;

}




/* Mobile styles */
@media screen and (max-width: 768px) {

  .nav-buttons .set-password-btn {
  width: 100%;
  text-align: left;
  padding: 6px 6px 6px 8px ;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-color: #ea580c ;
  background:  #ea580c;
  border-radius: 7px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensures padding doesn't cause overflow */
  font-size: 14px;
  font-weight: 500;
  
}
  .nav-buttons .logout-button {
  background: #dc3545;
  color: white;
  border-color: #dc3545 ; 
  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: 5px 10px 24px 10px;
  height: 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-buttons .logout-button:hover {
  background: linear-gradient(135deg, #e11d48 0%, #b91c1c 100%);
  border-color: #b91c1c;
  transform: translateY(-2px);
}
  .navbar-content {
    flex-direction: row; 
    align-items: center;
    justify-content: space-between; 
    padding: 16px;
    position: relative; 
  }

  .left-content {
    width: auto; 
    margin-bottom: 0; 
    flex: 1; 
  }

  .right-content {
    width: auto; 
    position: relative; 
  }

  .logo {
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 0.1rem;
  }

  .hero-line {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hamburger {
  display: block;
  font-size: 1.8rem;
  cursor: pointer;
  margin:  0.1rem 0rem  13rem 0rem; 
  padding: 8px;
  color: #333;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
  align-self: flex-start; /* This will align it to the top */
}

  .hamburger:hover {
    color: #4d4f52; /* Add hover effect */
  }

.nav-buttons {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  width: 190px;
  gap: 8px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 2.3rem 2.9rem 0.7rem 0.2rem;
  z-index: 1000;
  margin-top: -15.8rem;
  margin-left: -0.1rem;
  box-sizing: border-box; /* This ensures padding is included in width */
}

  .nav-buttons.show {
    display: flex;
  }

  .nav-buttons button {
  width: 100%;
  text-align: left;
  padding: 6px 6px 6px 8px ;
  color: #333333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f8eaea 0%, #ccc9c8 100%);
  border: 1px solid #e9ecef;
  border-radius: 7px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensures padding doesn't cause overflow */
  font-size: 14px;
  font-weight: 500;
  
}
  
  .nav-buttons button:hover {
    color: white;
    border-color: #ea580c ;
    background:  #ea580c;
    transform: translateX(-2px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .nav-buttons button:hover i,
  .nav-buttons .set-password-btn i {
    margin-right: 3px; /* Space between icon and text */
    width: 12px; /* Fixed width for icon alignment */
  }

  .our-fleets-btn {
    width: 42%;
    margin: 1rem 3rem -3rem 0.5rem;
    display: block;
    font-size: 1rem;
    font-weight: 500;
  } 
  .our-fleets-btn i {
   margin-right: 0.3rem;
   
  }


  .modal-box {
    width: 90%;
    max-width: 400px;
  }

  /* Ensure navbar doesn't interfere with content below */
  .fleets-container {
    margin-top: 20px; /* Add some space */
  }

  
  .alert {
    width: 96%;          /* almost full width on small devices */
    max-width: none;     /* remove the fixed 420px cap */
    font-size: 0.9rem;   /* slightly smaller text */
    padding: 13px 12px 13px 9px;  /* balanced spacing */
    margin-left: 0;
    margin-top: -3rem;   /* center horizontally */
    
    
  }
  .alert-close{
    color: #2a2f2a;
    margin-top: -0.2rem;
    margin-right: -0.6rem;
   
  }
  
  .nav-buttons .set-password-btn:hover{
    background: linear-gradient(135deg, #988686 0%, #e0baad 100%);
    border-color: linear-gradient(135deg, #f8eaea 0%, #ccc9c8 100%);
  }

}