html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@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;
  padding-top: 76px;
}

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

/* Header Styles */
header {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  transition: all 0.3s ease;
}

header.fixed-top {
  z-index: 1030;
}

.navbar {
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
  color: #333;
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #258cfb;
  transform: translateY(-2px);
}

.brand-logo {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.navbar-brand:hover .brand-logo {
  filter: drop-shadow(3px 3px 6px rgba(37, 140, 251, 0.4));
  transform: rotate(-5deg);
}

.brand-text {
  background: linear-gradient(135deg, #258cfb 0%, #1a6fd0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.nav-link {
  color: #555;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.nav-link:hover {
  color: #258cfb;
  background-color: rgba(37, 140, 251, 0.05);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.2);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #258cfb, #1a6fd0);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.navbar-toggler {
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background-color: rgba(37, 140, 251, 0.1);
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 140, 251, 0.25);
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Language Selector Styles */
.dropdown-toggle {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dropdown-toggle:hover {
  background-color: rgba(37, 140, 251, 0.1);
  border-color: #258cfb;
  color: #258cfb;
}

.dropdown-menu {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 0 0.25rem;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background-color: rgba(37, 140, 251, 0.1);
  color: #258cfb;
  transform: translateX(5px);
}

.dropdown-item.active {
  background-color: #258cfb;
  color: white;
  font-weight: 600;
}

.dropdown form {
  margin: 0;
}

.dropdown form button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

/* Content Wrapper */
.content-wrapper {
  min-height: calc(100vh - 200px);
}

/* Footer Styles */
footer {
  margin-top: auto;
  padding: 1rem 0;
  line-height: 25px;
}

footer a {
  color: #555;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #258cfb;
  transform: translateX(5px);
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    margin-bottom: 1rem;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.25rem;
  }

  body {
    padding-top: 70px;
  }

  .dropdown {
    margin-bottom: 0.5rem;
    margin-right: 0 !important;
  }
}

@media (min-width: 992px) {
  .navbar-nav {
    gap: 0.5rem;
  }
}

/* Animation for dropdown */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
  animation: slideDown 0.3s ease;
}

.dropdown-menu.show {
  animation: slideDown 0.2s ease;
}