html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* =========================
   Navigation
   ========================= */

.navbar {
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar .nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #6c6c70 !important;
}


/* =========================
   Apps Dropdown
   ========================= */

.navbar .dropdown-menu {
  min-width: 290px;
  padding: 8px;
  margin-top: 10px;

  background: rgba(255, 255, 255, 0.96);

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar .dropdown-item {
  padding: 12px 14px;

  border-radius: 10px;

  color: #1d1d1f;

  font-size: 15px;
  font-weight: 500;

  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000;
}

.navbar .dropdown-item:active {
  background-color: rgba(0, 0, 0, 0.08);
  color: #000;
}

.navbar .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: 0.15em;
}


/* =========================
   Navigation - Mobile
   ========================= */

@media (max-width: 575.98px) {

  .navbar-collapse {
    padding-top: 12px;
  }

  .navbar-nav {
    gap: 4px;
  }

  .navbar .dropdown-menu {
    min-width: 100%;
    margin-top: 4px;

    border-radius: 14px;

    box-shadow: none;

    background-color: #f5f5f7;
  }

  .navbar .dropdown-item {
    padding: 11px 14px;
  }
}


/* =========================
   App Icons in Dropdown
   ========================= */

.navbar .app-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .app-dropdown-icon {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  object-fit: cover;
  border-radius: 9px;
}


/* =========================
   404 Page
   ========================= */

.not-found-page {
  min-height: 65vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 60px 20px;
}

.not-found-content {
  width: 100%;
  max-width: 620px;

  text-align: center;
}

.not-found-code {
  margin-bottom: 24px;

  color: #1d1d1f;

  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.not-found-title {
  margin: 0 0 20px;

  color: #1d1d1f;

  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.not-found-text {
  margin: 0 0 20px;

  color: #6e6e73;

  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.not-found-link {
  color: #1d1d1f;

  font-size: 17px;
  font-weight: 500;

  text-decoration: none;
}

.not-found-link:hover,
.not-found-link:focus {
  color: #6e6e73;
  text-decoration: none;
}


/* =========================
   404 Page - Mobile
   ========================= */

@media (max-width: 575.98px) {

  .not-found-page {
    min-height: 60vh;
    padding: 50px 20px;
  }

  .not-found-code {
    font-size: 38px;
  }

  .not-found-title {
    font-size: 28px;
  }

  .not-found-text {
    font-size: 17px;
  }
}


/* =========================
   Global Footer
   ========================= */

.site-footer {
  margin-top: 0px;
  padding: 42px 0 28px;

  border-top: 1px solid rgba(0, 0, 0, 0.08);

  background: rgba(250, 250, 252, 0.82);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: #6e6e73;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  padding-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;

  gap: 16px;
}

.footer-avatar {
  width: 52px;
  height: 52px;

  border-radius: 50%;

  object-fit: cover;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.footer-name {
  color: #1d1d1f;

  font-size: 17px;
  font-weight: 600;

  letter-spacing: -0.02em;
}

.footer-text {
  margin: 4px 0 0;

  color: #86868b;

  font-size: 14px;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  align-items: center;

  gap: 24px;

  flex-wrap: wrap;
}

.footer-links a {
  color: #424245;

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #000;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding-top: 22px;

  border-top: 1px solid rgba(0, 0, 0, 0.06);

  color: #86868b;

  font-size: 13px;
}


/* =========================
   Global Footer - Mobile
   ========================= */

@media (max-width: 768px) {

  .site-footer {
    margin-top: 72px;
    padding: 34px 0 24px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;

    gap: 24px;
  }

  .footer-links {
    gap: 18px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;
  }
}