/*   Global  */
*{
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

body{
  background: linear-gradient(to right, #74ebd5, #ACB6E5);
  color: #333;
}

/*  Navbar  */
.navbar{
  width: 100%;
  background: #2b2d42;
  display: flex;
  gap: 20px;
  padding: 10px;
  align-items: center;
}

.navbar a{
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 15px;
  border-radius: 6px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar a:hover{
  background: rgba(255,255,255,0.12);
}

.navbar a.active{
  background: rgba(255,255,255,0.18);
}

@media (max-width: 500px){
  .navbar{
    flex-wrap: wrap;
    padding: 12px 15px;
  }
}

/*  Logo  */
.logo{
  width: 50px;
  height: auto;
  margin-right: 10px; 
  object-fit: contain;
  border-radius: 8px;
}
.navbar ul{
  display: flex;
  align-items: center;
  gap: 18px;  
  list-style: none;
  margin: 0;
  padding: 0; 

}

/*  Header  */
header{
  text-align: center;
  background: white;
  padding: 20px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
}

h1{
  margin: 0;
  color: #2b2d42;
}

.back-btn{
  position: absolute;
  left: 20px;
  top: 25px;
  text-decoration: none;
  color: #2b2d42;
  font-weight: 600;
}

/*  Common form fields   */
input, select, textarea{
  padding: 10px 12px; 
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus{
  border-color: #4CAF50;
  background: #fff;
  outline: none;
}

/*  Header links */
.header-links{
  position:absolute;
  left:20px;
  top:25px;
  display:flex;
  gap:15px;
}

.home-btn{
  text-decoration:none;
  color:#2b2d42;
  font-weight:600;
}



/*  Login Modal  */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.modal-card{
  width: min(520px, 100%);
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.30);
  backdrop-filter: blur(8px);
  position: relative;
}

.modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(0,0,0,0.08);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

.modal-card h2{
  margin: 0 0 6px;
  color: #2b2d42;
}

.modal-sub{
  margin: 0 0 16px;
  color: #444;
  font-weight: 600;
}

.modal-card label{
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin: 10px 0 6px;
  color: #333;
}

.modal-card input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.95);
  outline: none;
}

.pass-row{
  display: flex;
  gap: 10px;
  align-items: center;
}

.toggle-pass{
  width: 46px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(43,45,66,0.08);
  cursor: pointer;
}

.login-btn{
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(to right, #ff7e5f, #838ae8);
  transition: 0.2s;
}

.login-btn:hover{ transform: translateY(-1px); }

.form-msg{
  margin: 10px 0 0;
  font-weight: 800;
}

.form-msg.error{ color: #b00020; }
.form-msg.success{ color: #0b7a2a; }

.modal-links{
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.modal-links a{
  text-decoration: none;
  font-weight: 800;
  color: #2b2d42;
  opacity: 0.9;
}

.modal-links a:hover{ text-decoration: underline; opacity: 1; }


/* DARK MODE */

/* Default Light */
body {
  background-color: #ffffff;
  color: #222;
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

/* Sections */
body.dark-mode section,
body.dark-mode .home-wrap,
body.dark-mode .flights-list,
body.dark-mode .stays-list,
body.dark-mode .contact-container {
  background-color: #121212;
}

/* Cards */
body.dark-mode .flight-card,
body.dark-mode .stay-card,
body.dark-mode .form-container,
body.dark-mode .form-box {
  background-color: #1e1e1e;
  color: #f1f1f1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Header */
body.dark-mode .page-header,
body.dark-mode .navbar {
  background: rgba(20,20,20,0.9);
  color: #fff;
}

/* Inputs */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
}

/* Buttons */
body.dark-mode button {
  background: #6c63ff;
  color: #fff;
}

/* Background image fix (Home page) */
body.dark-mode.home-page {
  background:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url("Background.jpg");
  background-size: cover;
  background-position: center;
}


/*  Footer  */
footer{
  color: #fcfcfc;
  text-align: center;
  padding: 30px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}










