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;
}

/* 모바일 드롭다운 메뉴 개선 */
@media (max-width: 768px) {
  /* 드롭다운 메뉴 항목 크기 증가 */
  .dropdown-menu-trenbe .dropdown-item-trenbe,
  .dropdown-menu-trenbe .dropdown-item {
    font-size: 1.1rem !important;
    padding: 1rem 1.5rem !important;
  }
  
  .dropdown-menu-trenbe .dropdown-item-text-trenbe,
  .dropdown-menu-trenbe .dropdown-item-text {
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
  }
  
  .dropdown-menu-trenbe .dropdown-divider-trenbe,
  .dropdown-menu-trenbe .dropdown-divider {
    margin: 0.75rem 0 !important;
  }
  
  /* 드롭다운 메뉴 아이콘 크기 증가 */
  .dropdown-menu-trenbe .dropdown-item-trenbe i,
  .dropdown-menu-trenbe .dropdown-item i {
    font-size: 1.2rem !important;
    margin-right: 0.75rem !important;
  }
  
  /* 드롭다운 토글 버튼 크기 증가 */
  .navbar-nav .nav-link.dropdown-toggle {
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  /* 일반 네비게이션 링크 크기 증가 */
  .navbar-nav .nav-link {
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
    white-space: nowrap !important;
  }
  
  /* 네비게이션 바 flex 레이아웃 줄바꿈 방지 */
  .navbar-trenbe .navbar-collapse {
    flex-wrap: nowrap !important;
  }
  
  .navbar-nav {
    flex-wrap: nowrap !important;
  }
}

/* 작은 모바일 화면에서 더 큰 터치 영역 */
@media (max-width: 576px) {
  /* 드롭다운 메뉴 항목 더욱 크게 */
  .dropdown-menu-trenbe .dropdown-item-trenbe,
  .dropdown-menu-trenbe .dropdown-item {
    font-size: 1.2rem !important;
    padding: 1.25rem 1.75rem !important;
    line-height: 1.5 !important;
  }
  
  .dropdown-menu-trenbe .dropdown-item-text-trenbe,
  .dropdown-menu-trenbe .dropdown-item-text {
    font-size: 1.1rem !important;
    padding: 1rem 1.75rem !important;
  }
  
  /* 드롭다운 메뉴 아이콘 더 크게 */
  .dropdown-menu-trenbe .dropdown-item-trenbe i,
  .dropdown-menu-trenbe .dropdown-item i {
    font-size: 1.3rem !important;
    margin-right: 1rem !important;
  }
  
  /* 드롭다운 토글 버튼 더 크게 */
  .navbar-nav .nav-link.dropdown-toggle {
    font-size: 1.2rem !important;
    padding: 1rem 1.25rem !important;
  }
  
  /* 일반 네비게이션 링크 더 크게 */
  .navbar-nav .nav-link {
    font-size: 1.2rem !important;
    padding: 1rem 1.25rem !important;
    white-space: nowrap !important;
  }
  
  /* 네비게이션 바 flex 레이아웃 줄바꿈 방지 */
  .navbar-trenbe .navbar-collapse {
    flex-wrap: nowrap !important;
  }
  
  .navbar-nav {
    flex-wrap: nowrap !important;
  }
  
  /* 드롭다운 메뉴 전체 여백 증가 */
  .dropdown-menu-trenbe {
    padding: 1rem 0 !important;
  }
  
  /* Footer 링크 크기 증가 */
  .footer-link {
    font-size: 1.1rem !important;
    padding: 0.5rem 0 !important;
    display: inline-block !important;
    line-height: 1.6 !important;
  }
  
  .footer-heading {
    font-size: 1.15rem !important;
    margin-bottom: 1rem !important;
  }
  
  .footer-info {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }
  
  .footer-copyright {
    font-size: 0.9rem !important;
  }
}

/* 태블릿에서 Footer 크기 증가 */
@media (max-width: 768px) {
  /* Footer 링크 간격 증가 */
  .footer-links li {
    margin-bottom: 0.5rem !important;
  }
  
  .footer-info p {
    margin-bottom: 0.75rem !important;
  }
}

/* TopNav 메뉴 오른쪽 정렬 및 줄바꿈 방지 */
nav.fixed.top-0 .flex.items-center.justify-between {
  flex-wrap: nowrap !important;
}

nav.fixed.top-0 .flex.items-center.space-x-4,
nav.fixed.top-0 .flex.items-center.space-x-4.md\:space-x-8 {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  margin-left: auto !important;
}

nav.fixed.top-0 .flex.items-center.space-x-4 > a,
nav.fixed.top-0 .flex.items-center.space-x-4.md\:space-x-8 > a {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  margin-right: 0 !important;
}

/* 모바일에서 로그인 버튼 숨기기 */
@media (max-width: 767px) {
  nav.fixed.top-0 a[href*="/Account/Login"],
  nav a[href*="/Account/Login"],
  nav .flex.items-center.space-x-4 a[href*="/Account/Login"],
  nav .flex.items-center.space-x-4.md\:space-x-8 a[href*="/Account/Login"],
  nav a.hidden.md\:inline-block[href*="/Account/Login"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
  }
}

/* 태블릿 이상에서 로그인 버튼 표시 */
@media (min-width: 768px) {
  nav a[href*="/Account/Login"][data-md-display="inline-block"] {
    display: inline-block !important;
  }
}