@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

:root {
  --black: #000000;
  --white: #eeeeee;
  --dark-red: #ec4e3d;
  --rose-red: #8e1616;
  --blue: #0078ab;
  --sky-blue: #68c5db;
  --light-blue: #bfd7fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2px 0px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.header:hover::before {
  left: 100%;
}

.header .logo {
  display: flex;
  align-items: center;
  padding-left: 10px;
  text-decoration: none;
}

.header .logo img {
  height: 80px;
  width: auto;
  border-radius: 50%;
  display: block;
}

#menu-icon {
  font-size: 30px;
  color: var(--white);
  cursor: pointer;
  display: none;
  margin-right: 15px;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-right: 10px;
}

.navbar a {
  color: var(--white);
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
}

.navbar a:hover {
  color: var(--blue);
}

.nav-auth {
  display: flex;
  align-items: center;
}

.auth-btn {
  background-color: #1f2335;
  color: #f4f7ff;
  width: 130px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s ease;
}

.auth-btn:hover {
  opacity: 0.9;
}

.nav-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 99;
  display: none;
}

.page-content {
  /* padding-top: 110px; */
}


.notifications {
  position: fixed;
  top: 85px;
  right: 5px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.toast {
  position: relative;
  padding: 10px;
  color: #fff;
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  border-radius: 5px;

  --color: #0abf30;
  background-image: linear-gradient(to right, #0abf3055, #22242f 30%);

  width: auto;
  max-width: 400px;
  min-width: 250px;

  box-sizing: border-box;
  margin-bottom: 10px;
}

.toast i {
  color: var(--color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

.toast .title {
  font-size: 1.2rem;
  font-weight: bold;
}

.toast span {
  color: #fff;
  opacity: 0.8;
}

.toast-close {
  cursor: pointer;
  opacity: 0.85;
}

.toast::before {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--color);
  width: 100%;
  height: 3px;
  content: "";
  box-shadow: 0 0 10px var(--color);
  animation: timeOut 5s linear 1 forwards;
}

@keyframes timeOut {
  to { width: 0; }
}

.toast.error {
  --color: #f24d4c;
  background-image: linear-gradient(to right, #f24d4c55, #22242f 30%);
}
.toast.warning {
  --color: #e9bd0c;
  background-image: linear-gradient(to right, #e9bd0c55, #22242f 30%);
}
.toast.info {
  --color: #3498db;
  background-image: linear-gradient(to right, #3498db55, #22242f 30%);
}

.full-line {
  width: 90%;
  height: 2px;
  background-color: var(--sky-blue);
  margin: 0 auto 40px;
  border: none;
  justify-self: center;
}

.footer {
  color: var(--light-blue);
  box-sizing: border-box;
}

.footer-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr) minmax(250px, 1fr);
  gap: 15px;
  padding-bottom: 50px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  margin: 20px;
  padding: 50px 20px;
}

.footer-item {
  text-align: center;
}

.footer-item h3 {
  text-transform: capitalize;
  color: var(--rose-red);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 500;
}

.footer-item ul {
  list-style: none;
}

.footer-item ul li + li {
  margin-top: 10px;
}

.footer-item ul a {
  text-transform: capitalize;
  text-decoration: none;
  color: var(--light-blue);
  display: inline-block;
  transition: 0.5s;
}

.footer-item ul a:hover {
  color: var(--sky-blue);
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.footer-logos img {
  width: 90px;
  margin: 0 8px 15px;
}

.footer-logo .social {
  margin-top: 10px;
  justify-content: center;
  width: 100%;
  display: flex;
  gap: 30px;
}

.footer-logo .social a {
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sky-blue);
  text-decoration: none;
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.3s;
}

.footer-logo .social a:hover {
  background-color: var(--blue);
  color: var(--white);
}

.footer-contact .item + .item {
  margin-top: 15px;
}

.footer-contact .item span {
  color: var(--blue);
  text-transform: uppercase;
}

.footer-contact .item p {
  color: var(--light-blue);
  margin-top: 5px;
}

.phone-link,
.phone-link:hover,
.phone-link:focus,
.phone-link:active {
  text-decoration: none;
  color: inherit;
}

.footer-links .important-links {
  list-style: none;
  padding: 0;
  margin-top: 20px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links .important-links li a {
  color: var(--light-blue);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links .important-links li a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-links .important-links li a::before {
  content: "› ";
  color: var(--rose-red);
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid var(--sky-blue);
  padding: 25px 0;
}

.footer-copyright p {
  margin-bottom: 15px;
}

@media (max-width: 992px) {
  .footer-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .navbar {
    gap: 30px;
  }
}

@media (max-width: 800px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 90px;
    width: 100%;
    background: transparent;
    text-align: center;
    display: none;
    z-index: 9999;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0 20px;
  }

  .navbar.active {
    display: flex;
  }

  .nav-bg.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .footer-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 30px;
    align-items: center;
  }

  .footer {
    padding: 50px 20px 0;
  }

  .toast {
    width: 90%;
    grid-template-columns: 50px 1fr 30px;
    font-size: 0.9rem;
    padding: 8px;
  }

  .toast .title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .toast {
    width: 95%;
    grid-template-columns: 40px 1fr 25px;
    padding: 6px;
    font-size: 0.8rem;
  }

  .toast .title {
    font-size: 0.95rem;
  }
}
/* ===== Day/Night theme override ===== */
html.light-mode {
  --black: #f3f3f5;      /* page background */
  --white: #1b1a1a;      /* nav text / icons */
  --light-blue: #33475b; /* paragraph text, was too light to read on white */
}

html.light-mode .header {
  background: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

html.light-mode .nav-bg {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

html.light-mode .footer-items {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Toggle switch ===== */
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.theme-toggle .track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 56px;
  height: 28px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--sky-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b1a1a;
  font-size: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

html.light-mode .theme-toggle .thumb {
  transform: translateX(28px);
  background-color: var(--dark-red);
  color: #fff;
}

html.light-mode .theme-toggle .track {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}