/* Customized CSS for YCH *? */

/* Homepage Topbar */
/* language sing left */
.topnav-left {
    float: left;
}

.topnav-right {
    float: right;
}

.item-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Footer(main) Logo Styling */
.footer-logo {
  max-width: 80px; /* Adjust this size as necessary */
  height: auto;
  display: block;
  margin: 0 auto; /* Center alignment for small screens */
}

/* Responsive Design for Small Screens */
@media (max-width: 576px) {
  .footer-logo {
    max-width: 80px; /* Ensure logo size remains consistent */
  }

  .text-center.text-lg-start {
    text-align: center !important; /* Center align for small screens */
  }
}
/* End Footer(main) Logo Styling */

/* input box height */
/* move a box front */
.to-front {
    z-index: -1;
    position: relative;
}

/* radion input box (small) */
.h-2rem {
    height: 2rem;
}


/* a: link */
a:hover {
    color: lightgreen;
}

.tooltip-hover {
    cursor: pointer;  /* 커서를 손가락 모양으로 변경 */
}

/* Homepage Logo */
.navbar-home-logo{
    width:100%;
    min-width:1.5rem;   /* 7.5rem */
    max-width:1.5rem;
}

/* Text Justify */
.justify {
    text-align: justify!important;
}

/* Margin Left/Right */
.ml-1 {
    margin-left: 1rem;
}

.ml-2 {
    margin-left: 2rem;
}

.ml-3 {
    margin-left: 3rem;
}

.mr-1 {
    margin-right: 1rem;
}

.mr-2 {
    margin-right: 2rem;
}

.mr-3 {
    margin-right: 3rem;
}

/* portrait size */
/* Ensure all director portraits display at a consistent size */
.director-card .director-portrait {
  width: 100%;           /* fill card width */
  aspect-ratio: 4 / 5;   /* consistent portrait ratio */
  object-fit: cover;     /* crop to fill while keeping the ratio */
  display: block;
}

/* Hall of Fame portraits: fixed portrait ratio with minimal crop */
.hof-img {
  width: 100%;           /* fill card width */
  aspect-ratio: 4 / 5;   /* consistent portrait ratio across cards */
  height: auto;          /* let aspect-ratio control height */
  object-fit: cover;     /* cover area with minimal, centered crop */
  display: block;        /* remove inline gap */
}

/* ========================= */
/* Clan images (grid + detail)
   Goal: visually consistent sizes regardless of source image orientation
*/

/* Grid thumbnail on clans list */
.clan-thumb {
  width: 100%;           /* fill the card width */
  aspect-ratio: 4 / 3;   /* consistent thumbnail ratio */
  object-fit: cover;     /* crop to fill while keeping content centered */
  display: block;
  /* Add a subtle frame so light/sky images don't blend into the page */
  border: 1px solid #d1d5db; /* light gray frame (approx. Tailwind gray-300) */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02); /* hairline reinforcement on HiDPI */
  background-color: #fff; /* in case of transparent edges */
}

/* Detail page main images */
.clan-detail-img {
  width: 100%;           /* responsive width */
  max-width: 700px;      /* keep from becoming too wide on large screens */
  aspect-ratio: 4 / 3;   /* consistent presentation */
  object-fit: cover;     /* handle vertical images gracefully */
  display: block;
  margin-left: auto;     /* center the image */
  margin-right: auto;
  /* Optional: match list thumbnails with a subtle frame */
  border: 1px solid #e5e7eb; /* slightly lighter gray than thumbnails */
  background-color: #fff;
}

/* Optional: small caption tweak for consistency */
.clan-img-caption {
  text-align: center;
  margin-top: 0.5rem;
}

/* === End portrait and picture related css === */


/* Colors Borders */
.bd-color-001 {
    border-color: #E3E3E3;
}

/* jb button size */
.jb-btn {
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    margin: 4px 2px;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-block;
}


/* Colors General & Clans */
.ych {
    color: #7A004B;
    border: none;
}

.yc {
    color: #D59633;
}

.dongju {
    color: #5F9E72;
    border: none;
}

.pando {
    color: #836B61;
    border: none;
}

.daeje {
    color: #5683A7;
    border: none;
}

.sudan-section_title {
    color: #00450E;
}

.color-yellow-light {
    color: #FFFF80;
}

.color-red-light {
    color: #EB4034;
}

/* Neon Red (Red: #FF0000) / (Orange Red: #FF4433) */
.color-red {
    color: #FF3131;
}

/* Dark Red (Maroon: #800000) */
.color-brick {
    color: #8B0000;
}

.color-brown {
    color: #A04000;  /* brown */
}

.color-blue {
    color: #00008B;  /* Current: DarkBlue; Previous: #0275d8 */
}

.color-royal-blue {
    color: #4169E1;  /* Current: DarkBlue; Previous: #0275d8 */
}

.color-blue-boot {
    color: #0d6efd;
 }

.color-green {
    color: #008000;
}

.color-green-boot {
    color: #198754;
}

/* Colors Jokbo Background */
.bg-ych {
    background-color: #7A004B;
}

.bg-myfamily {
    background-color: #7A004B;
}

.bg-deceased {
    background-color: #666666;
}

.deceased {
    color: #666666;
}

/* Orchid (Purple: #800080)*/
.bg-in-laws {
    background-color: #8E44AD;   /* #57206B, #DA70D6 */
}

/* Pink Orange */
.in-laws {
   color: #8E44AD;
}

/* Pink Orange */
.bg-distaff {
    background-color: #6B4320;   /* #F89880 */
}

.distaff {
    color: #6B4320;
}

/* Jungle Green */
.bg-stories {
    background-color: #117A65;   /* #216B20 2AAABA */
}

.stories {
    color: #117A65;
}

/* Persimmon */
.bg-pictures {
    background-color: #EC5800;   /* #6B202F */
}

.pictures {
    color: #EC5800;
}

/* Sea Green */
.bg-cousin {
    background-color: #2E8B57;   /* #6B202F */
}

.cousin {
    color: #2E8B57;
}

.bg-relatives {
    background-color: #CD7F32;   /* #169C93 */
}

/* Bronze */
.relatives {
    color: #CD7F32;
}

/* Teal */
.bg-search {
    background-color: #008080;   /* #20466B */
}

.search {
    color: #008080;
}

/* Iris */
.bg-statistics {
    background-color: #5D3FD3;   /* #20666B */
}

.statistics {
    color: #5D3FD3;
}

.bg-neon-orange {
    color: #FF5F1F
}

/* membership */
.member-r {
    color: #7A004B;
}

.member-y {
    color: #5BA3CD;
}

.member-l {
    color: #DE6D84;
}

/* sudan admin colors (수단 관리자 컬러) */
/* 메뉴-수단 현황 및 내역 $green */

/* 양천허씨 Green*/
.sudan-a-member-h {
    color: #008000;
}

/* 양천허씨 배우자 Crimson */
.sudan-a-member-s {
    color: #DC143C;
}

/* 배우자 자녀(타성씨) 가족 Olive Green */
.sudan-a-member-sf {
    color: #808000;
}

.sudan-a-sudan-condition {
    color: #198754;
}

/* 메뉴-수단금 현황 및 내역 Cinnamon */
.sudan-a-reconcile-condition {
    color: #D27D2D;
}

/* 양천허씨 Green*/
.bg-sudan-a-member-h {
    background-color: #008000;
}

/* 양천허씨 배우자 Crimson */
.bg-sudan-a-member-s {
    background-color: #DC143C;
}

/* 배우자 자녀(타성씨) 가족 Olive Green */
.bg-sudan-a-member-sf {
    background-color: #808000;
}

/* 가족사진(family-picture) Bronze */
.bg-sudan-a-picture {
    background-color: #CD7F32;
}

/* 나의 이야기(my story) Pistachio */
.bg-sudan-a-mystory {
    background-color: #93C572;
}

/* Reconcile 수단금 대사 Cinnamon */
.bg-sudan-a-reconcile {
    background-color: #D27D2D;
}

/* 상세보기 $green */
.bg-sudan-a-detail {
    background-color: #198754;
}

/* 접수 Coral Pink */
.bg-sudan-p1 {
    background-color: #F88379;
}

/* 완납(입금) Cornflower Blue */
.bg-sudan-p2 {
    background-color: #6495ED;
}

/* 검토중 Amber */
.bg-sudan-p3 {
    background-color: #FFBF00;
}

/* 추가자료 Orchid */
.bg-sudan-p4 {
    background-color: #DA70D6;
}

/* 등재완료 Bootstrap Success */
.bg-sudan-p5 {
    background-color: #14A44D;
}

/* jokbo main page (my family line table head 고정) */
.my-line-scroll-box {
  height: 750px !important;
  max-height: 750px !important;
  overflow: auto !important;
  position: relative;
}

.my-line-scroll-body {
  min-width: max-content;
  padding: 0;
}

.my-line-sticky-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.my-line-sticky-table thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #f8fafd;
  box-shadow: 0 1px 0 #dee2e6;
}

.my-line-sticky-table thead {
  position: relative;
  z-index: 20;
}
/* End jokbo main page (my family line table head 고정) */

/* Font Weight, Size */
.pdf-font-title {
    font-family: KoPubWorldDotum_Pro, Arial, Helvetica, sans-serif;
}

.pdf-bold {
    font-weight: bold;
}

.jb-font-size-0875 {
    font-size: 0.875em;
}

.jb-font-size-0775 {
    font-size: 0.775em;
}

.jb-font-size-0675 {
    font-size: 0.675em;
}

#button{
    display:block;
    margin:20px auto;
    padding:10px 30px;
    background-color:#eee;
    border:solid #ccc 1px;
    cursor: pointer;
}

#overlay{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000; /* Raise(from 100 to 2000) above most UI to ensure visibility over content/navbars */
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.cv-spinner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
      transform: rotate(360deg);
    }
}

.is-hide{
    display:none;
}


/* Global full-screen submit/navigation overlay (shared across admin pages) */
#hcgp-submit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  z-index: 3000;
  display: none;
}

/* Avoid page scroll while overlay visible */
body[aria-busy="true"] {
  overflow: hidden;
}


/* input box heights */
/* 토의 내용과 같은 긴 문서를 input 하는 큰 박스 */
.custom-content-height {
    height: auto;
    min-height: 350px; /* 입력 필드의 최소 높이 */
    max-height: none; /* 필요에 따라 콘텐츠가 제한 없이 높이를 확장할 수 있도록 설정 */
}

/* memo 내용과 같은 작은 문서를 input 하는 작은 박스 */
.custom-memo-height {
    height: auto;
    min-height: 100px; /* or whatever is needed */
    max-height: none; /* 필요에 따라 콘텐츠가 제한 없이 높이를 확장할 수 있도록 설정 */
}

/* admin_clan/admin_clan_minute_create.html 에서 버튼 display 사용 */
#confirm-next-action {
    margin-top: 1rem; /* 버튼과 메시지 간의 공간 추가 */
    display: flex; /* Flexbox 사용 */
    justify-content: center; /* 중앙 정렬 */
    align-items: center; /* 세로 정렬 */
    gap: 1rem; /* 버튼 사이의 간격 추가 */
}

#confirm-next-action {
    display: none;
    z-index: 1055; /* Bootstrap modal과 동일 수준으로 맞춤 */
    position: relative; /* 부모 모달 내에서 위치 지정 */
}

/* 반응형 스타일 (큰 화면에서는 왼쪽 맞춤, 작은 화면에서는 중앙 정렬) */
/* admin_hcgp, admin_clan 관리자 홈페이지 현황판 설명에서 사용 */
/* 공통 스타일: Small devices by default */
.responsive-text-admin {
  display: block;
  text-align: center; /* 기본값: 가운데 정렬 */
  margin-left: 0; /* 들여쓰기를 없앰 */
}

/* Large screens (example: desktops) */
@media (min-width: 768px) {
  .responsive-text-admin {
    text-align: left; /* 큰 화면에서는 왼쪽 정렬 */
    margin-left: 20px; /* 들여쓰기 설정 */
  }
}
/* End 반응형 스타일 (큰 화면에서는 왼쪽 맞춤, 작은 화면에서는 중앙 정렬) */


/* 기본 Toast 스타일 (공통 속성) */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    color: white; /* 기본 글자 색상 */
    opacity: 0; /* 처음에는 보이지 않음 */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

 /* Toast가 보이는 상태 */
    #toast.show {
        visibility: visible;
        -webkit-animation-name: fadein, fadeout;
        -webkit-animation-duration: 0.5s, 0.5s;
        -webkit-animation-delay: 0s, 2.5s;
        animation-name: fadein, fadeout;
        animation-duration: 0.5s, 0.5s;
        animation-delay: 0s, 2.5s;
    }

    /* Fade-in 애니메이션 */
    @-webkit-keyframes fadein {
        from {bottom: 0; opacity: 0;}
        to {bottom: 30px; opacity: 1;}
    }

/* Toast가 보이는 상태
#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}*/

/* Fade-in 애니메이션 */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

/* Fade-out 애니메이션 */
@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* 성공 테마 */
.toast-success {
    background-color: #4CAF50;
}

/* 에러 테마 */
.toast-error {
    background-color: #F44336;
}

/* 경고 테마 */
.toast-warning {
    background-color: #FFC107;
}

/* 정보(일반적인 메시지) 테마 */
.toast-info {
    background-color: #2196F3;
}
/* End Toast container 스타일 */


/* ================================== */
/* 화면(display/screen)과 관련된 UI(CSS) */
/* ================================== */

/* 홈페이지 메인 화면 (common/main.html) */
    .main-board-wrap {
      height: 100%;
    }

    .main-board-header {
      min-height: 56px;
      margin-bottom: 0.35rem;
    }

    .main-board-title {
      margin-bottom: 0;
      line-height: 1.2;
      white-space: nowrap;
    }

    .main-board-title-group {
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
      min-width: 0;
      flex-wrap: nowrap;
      white-space: nowrap;
      flex: 1 1 auto;
    }

    .main-board-period {
      color: #6c757d;
      font-size: 0.82rem;
      line-height: 1;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .main-board-action {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      white-space: nowrap;
      flex-shrink: 0;
      margin-left: 0.75rem;
    }

    .main-board-action .btn {
      white-space: nowrap;
    }

    .main-board-table {
      margin-top: 0;
    }

    .main-board-table thead th {
      vertical-align: middle;
    }

    @media (max-width: 991px) {
      .main-board-header {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
      }

      .main-board-title-group {
        flex-wrap: wrap;
        white-space: normal;
      }

      .main-board-title {
        white-space: normal;
      }

      .main-board-period {
        white-space: normal;
      }

      .main-board-action {
        justify-content: flex-start;
        margin-left: 0;
      }
    }
/* End 홈페이지 메인 화면 (common/main.html) */


/* jbuser 아이디와 비밀번호 생성 시, 비밀번호 강도 및 체크리스트 */
#strength-bar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0; /* Default background for bar container */
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}

#bar {
  height: 100%;
  width: 0; /* Initially empty */
  background-color: red; /* Default color for weak password */
  transition: width 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}


/*
  #strength-bar {
      width: 100%;
      height: 6px;
      background-color: #ddd;
      margin-top: 10px;
      position: relative;
      display: none; /* 기본적으로 숨김 */
/*  }

  #strength-bar span {
      display: block;
      height: 6px;
      background-color: red;
      width: 0%;
      transition: width 0.5s, background-color 0.5s;
  }

*/

#password-checklist {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}
#password-checklist li {
    margin-bottom: 5px;
}

/* 체크 표시를 녹색으로 설정 */
.check-success {
  color: green; /* 녹색 */
  font-size: 0.8em;
  font-weight: 400;
}

/* 실패 표시를 빨간색으로 설정 */
.check-error {
  color: red; /* 빨간색 */
  font-size: 0.8em;  /* 글자 크기를 80%로 줄임 */
  font-weight: 400; /* 굵기를 가볍게 설정 (가늘게) 300:Thin, 400:Regular 700:Bold */
}
/* End 비밀번호 강도 및 체크리스트 */


/* Custom select 스타일 정의 (유물과 유적에 사용) */
.custom-select {
  min-width: 200px; /* 한글 텍스트를 충분히 보기 위한 최소 폭 */
  max-width: 100%;  /* 작은 화면에서도 폭이 자동으로 줄어듬 */
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.custom-select option {
  white-space: normal; /* 옵션 내부 텍스트에서 줄바꿈 허용 (멀티라인) */
}
/* End Custom select 스타일 정의 (유물과 유적에 사용) */


/* sudan spouse origin add */
/* Scoped styles only for the specific section */
#specific-container-sudan-spouse .row.mb-3 > .col-sm-2,
#specific-container-sudan-spouse .row.mb-3 > .col-sm-3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* End sudan spouse origin add */


/* admin_hcgp  */

/* executive list (관리자 페이지/임원 리스트) */
table.table.table-sm td, table.table.table-sm th { padding-top: .35rem; padding-bottom: .35rem; }
.avatar-xs { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.name-cell { line-height: 1.1; }
.text-compact { line-height: 1.1; }
/* End executive list (관리자 페이지/임원 리스트) */

/* PDF Upload (관리자 페이지 PDF 업로드 화면에서 체크 박스 스위치 모양 고정) */
.homepage-pdf-switch {
          display: flex;
          align-items: center;
          gap: 0.5rem;
          padding-left: 0;
          margin-left: 0.25rem;
      }

  .homepage-pdf-switch .form-check-input {
      width: 2.75rem;
      height: 1.4rem;
      margin-left: 0;
      margin-top: 0;
      cursor: pointer;
      border-radius: 2rem;
  }

  .homepage-pdf-switch .form-check-label {
      margin-bottom: 0;
      cursor: pointer;
  }
/* End PDF Upload (관리자 페이지 PDF 업로드 화면에서 체크 박스 스위치 모양 고정) */


/* End admin_hcgp */


/* admin_clan executive list (임원 리스트) */
    .executive-action-wrap {
      display: flex;
      justify-content: flex-end;
    }

    .executive-action-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(88px, 1fr));
      gap: 0.5rem;
      width: 100%;
      max-width: 360px;
    }

    .executive-action-grid form,
    .executive-action-grid a {
      margin: 0;
    }

    .executive-action-btn {
      width: 100%;
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 0.65rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
      transition: all 0.2s ease-in-out;
      white-space: nowrap;
    }

    .executive-action-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    }

    .btn-executive-toggle {
      color: #8a6d1d;
      border-color: #f3d27a;
      background-color: #fffaf0;
    }

    .btn-executive-toggle:hover {
      color: #6f5611;
      border-color: #e8c35b;
      background-color: #fff3d6;
    }

    .btn-executive-update {
      color: #0f4c81;
      border-color: #9dc4eb;
      background-color: #f4f9ff;
    }

    .btn-executive-update:hover {
      color: #0a3a63;
      border-color: #7fb0e2;
      background-color: #e8f3ff;
    }

    .btn-executive-delete {
      color: #a63d40;
      border-color: #efb1b4;
      background-color: #fff5f5;
    }

    .btn-executive-delete:hover {
      color: #842d30;
      border-color: #e58d92;
      background-color: #ffe9ea;
    }

    @media (max-width: 767px) {
      .executive-action-wrap {
        justify-content: stretch;
      }

      .executive-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
      }
    }

    @media (max-width: 575px) {
      .executive-action-grid {
        grid-template-columns: 1fr;
      }
    }
/* End admin_clan executive list (임원 리스트) */

/* Admin page title icon (increase size)  */
.admin-page-title-icon-large i {
    font-size: 2.0rem !important;
    line-height: 36px !important; /* Match default span height to center vertically */
    display: inline-block;
    vertical-align: middle;
}



