/* www/css/style.css */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;200;300;400;500;600;700&display=swap');

/* Noto Sans KR */
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 100;
  src: url(https://fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Thin.woff2) format('woff2');
  src: url(https://fonts.gstatic.com/ea/notosanskr/v2/NotoSansKR-Thin.woff) format('woff');
}

/* 공통 레이아웃 */
body {
  font-family: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #f8f9fa;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* 네비게이션 스타일링 */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  min-height: 60px;
  background: linear-gradient(45deg, #26D0CE, #1A2980);
}

.navbar-brand {
  font-size: 1.10rem;
  font-weight: 500;
  letter-spacing: -0.07em;
}

.navbar-brand i {
  font-size: 1.5rem;
}

.navbar-toggler {
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.navbar-dark,
.navbar[data-bs-theme=dark] {
  --bs-navbar-color: rgba(255, 255, 255, 1);
  --bs-navbar-hover-color: rgba(255, 255, 255, 0.75);
  --bs-navbar-disabled-color: rgba(255, 255, 255, 0.25);
  --bs-navbar-active-color: #fff;
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.1);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.list-group-item.active {
  background: linear-gradient(45deg, #26D0CE, #1A2980);
  border-color: #fff;
}

/* 드롭다운 메뉴 스타일링 */
.dropdown-menu {
  margin-top: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: none;
}

.dropdown-item {
  padding: 0.5rem 1rem;
}

a.dropdown-item:active {
  color: #fff !important;
}

.dropdown-item:active {
  background: linear-gradient(45deg, #26D0CE, #1A2980);
  color: #fff;
}

.dropdown-item i {
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

/* 카드 스타일링 */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

/* 모달 스타일링 */
.modal {
  z-index: 1055;
}

.modal-backdrop {
  z-index: 1050;
}

.modal-header {
  /* background-color: #0d6efd; */
  background: linear-gradient(45deg, #26D0CE, #1A2980);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  color: #fff;
}

/* 테이블 스타일링 */
.table {
  margin-bottom: 0;
}

.table thead {
  background: linear-gradient(45deg, #F07F2D, #000000) !important;
}

.table th {
  font-weight: 600;
  color: #fff;
  /* background-color: #f8f9fa; */
  background-color: unset;
}

.table td {
  vertical-align: middle;
}

/* 파일 업로드 관련 */
.custom-file-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress {
  height: 0.5rem;
  margin-top: 0.5rem;
}

.progress-bar {
  background: linear-gradient(45deg, #26D0CE, #1A2980);
}

/* 토스트 메시지 */
.toast-container {
  z-index: 1060;
}

/* 기타 유틸리티 클래스 */
.sticky-top {
  z-index: 1020;
}

.active>.page-link,
.page-link.active {
  z-index: 3;
  color: var(--bs-pagination-active-color);
  background: linear-gradient(45deg, #26D0CE, #1A2980);
  border-color: #fff;
}

.text-sm {
  font-size: 0.675rem;
}

/* 뱃지 스타일링 */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
}

/* 버튼 아이콘 정렬 */
/* .btn i {
  vertical-align: middle;
  margin-right: 0.25rem;
} */

.btn-primary {
  background: purple;
  border: none !important;
}

/* .btn-outline-primary {
  color: #0d6efd;
  border: 1px solid transparent !important;
  background-image: linear-gradient(45deg, Indigo, Violet, Orange) !important;
  background-origin: border-box !important;
} */

/* 폼 관련 */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-text {
  color: #6c757d;
  font-size: 0.875rem;
}

/* 경고 메시지 */
.invalid-feedback {
  font-size: 0.875rem;
}

/* 푸터 배경 */
.footer-bg {
  background: linear-gradient(45deg, #26D0CE, #1A2980);
}

/* 반응형 조정 */
@media (max-width: 991.98px) {
  .navbar-collapse {
    /* background: #0d6efd; */
    padding: 1rem 0;
    /* margin: 0 -1rem; */
  }

  .navbar-nav {
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 0.5rem 0;
    margin: 0.5rem 0;
  }

  .dropdown-menu {
    margin-top: 0;
    /* background: rgba(255, 255, 255, 0.1); */
    border: none;
  }

  /* .dropdown-item {
    color: white !important;
  } */

  /* .dropdown-item:hover {
    background: rgba(255,255,255,.2);
    color: white;
  } */

  .dropdown-divider {
    border-color: rgba(255, 255, 255, .1);
  }

  .table-responsive {
    border: none;
  }

  .card-body {
    padding: 1rem;
  }
}

/* 로딩 스피너 */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 브레드크럼 네비게이션 */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "›";
}

/* 세빛둥둥섬으로 만들어보자 */
.dungdung {
  animation: dungdung 6s ease-in-out infinite;
}
@keyframes dungdung {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale3d(1.1, 0.9, 1);
  }
}

/* 심장이 Bounce ~ Bounce ~ */
.logo {
  animation: bounce 1s ease-in-out forwards;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

/* 빙글빙글 돌아가는 세상~~~ */
.bingle {
  animation: bingle 3s ease-in-out infinite;
}
@keyframes bingle {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 엉덩일 흔들어봐~ 왼쪽을 더 올려봐~ 이리가까이와 봐~ 널 상상할 수 있게~ */
.shakeit {
  animation: shakeit 1s ease-in-out infinite;
}
@keyframes shakeit {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-10px) rotate(25deg);
  }
  50% {
    transform: translateX(10px) rotate(-25deg);
  }
  75% {
    transform: translateX(-10px) rotate(25deg);
  }
}

/* 훅 들이대~ */
.duridae {
  animation: duridae 2s ease-out forwards;
}
@keyframes duridae {
  0% {
    transform: translateX(-100%) rotate(0deg) scale(1.5);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(720deg) scale(1);
    opacity: 1;
  }
}

/* 파도여~ 슬퍼 말아라~ 파도여~ 춤을 추어라~ 솟아라 태양아~ */
@keyframes padoya {
  0%, 100% {
      transform: translateY(0) scale(1);
  }
  50% {
      transform: translateY(-10px) scale(1.1);
  }
}
.padoya-text span {
  display: inline-block;
  animation: padoya 1s infinite;
}
.padoya-text span:nth-child(1) { animation-delay: 0s; }
.padoya-text span:nth-child(2) { animation-delay: 0.1s; }
.padoya-text span:nth-child(3) { animation-delay: 0.2s; }
.padoya-text span:nth-child(4) { animation-delay: 0.3s; }
.padoya-text span:nth-child(5) { animation-delay: 0.4s; }
.padoya-text span:nth-child(6) { animation-delay: 0.5s; }
.padoya-text span:nth-child(7) { animation-delay: 0.6s; }
.padoya-text span:nth-child(8) { animation-delay: 0.7s; }
.padoya-text span:nth-child(9) { animation-delay: 0.8s; }
.padoya-text span:nth-child(10) { animation-delay: 0.9s; }



/*변영성 수정 241206 카드 상단 로고*/
.logo {
  padding: 0 0 3.2rem 0;
  text-align: center;
}

@media(max-width: 1024px) {
  .logo img {
    width: 120px;
    object-fit: cover;
  }
}

.mt-5 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mt-5 {
  width: 100%;
}

.mt-2 a {
  color: inherit;
  text-decoration: none;
}