@charset "utf-8";

@font-face {
    font-family: 'WarhavenB';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/WarhavenB.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraLight.woff') format('woff');
    font-weight: 200;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Light.woff') format('woff');
    font-weight: 300;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Medium.woff') format('woff');
    font-weight: 500;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
}

/* #navi_category {  text-align: center;     padding: 15px 0; 
}  
#navi_category li {  display: inline-block;  margin: 0.2em;  border-radius: 15px;  background-color: #4a6d42;  transition: all 0.3s ease;     border: 1px solid #4a6d42; vertical-align: middle;  height: 28px;  box-sizing: border-box;     cursor: pointer; align-items: center; 
} 

#navi_category li:hover {background-color: #fff; border-color:#4a6d42; 
}  
#navi_category li a {display: block; padding: 12px 20px;color: #fff;text-decoration: none; border-radius: 15px; transition: color 0.3s ease; 
}  
#navi_category li:hover a { color:#4a6d42; 
} */

#navi_category {  text-align: center;}

#navi_category li {
  display: inline-flex;  /* inline-block 대신 inline-flex */
  align-items: center;   /* 이미 있음 - 세로 중앙정렬 */
  justify-content: center;  /* 가로 중앙정렬 추가 */
  margin: 0.2em;
  border-radius: 15px;
  background-color: #4a6d42;
  transition: all 0.3s ease;
  border: 1px solid #4a6d42;
  height: 28px;
  box-sizing: border-box;
  cursor: pointer;
}

#navi_category li a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  border-radius: 15px;
  transition: color 0.3s ease;
  text-align: center;  /* 텍스트 중앙정렬 추가 */
}

#navi_category li:hover {background-color: #fff; border-color:#4a6d42; 
}  
#navi_category li a {display: block; padding: 12px 20px;color: #fff;text-decoration: none; border-radius: 15px; transition: color 0.3s ease; 
}  
#navi_category li:hover a { color:#4a6d42; 
}



.list_todo {display: flex; flex-wrap: wrap; gap: 15px 1.5%; padding: 20px 0; font-family: 'Pretendard';}
.list_todo * {box-sizing: border-box;}
.list_todo > li {
    overflow: hidden; 
    position: relative; 
    padding: 15px; 
    padding-bottom: 35px; 
    width: 32.33%; 
    background: #ffffff; opacity: 0.9; /* 흰색 배경 추가 */
    border-radius: 15px; /* 라운딩 추가 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 그림자 개선 */
    transition: transform 0.3s, box-shadow 0.3s; /* 호버 효과 개선 */
}
.list_todo > li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


.list_todo .thumb_img {overflow: hidden; margin-bottom: 10px; border-radius: 15px;}
.list_todo .thumb_img .thumb_img_wrap {height: 11vw; max-height: 135px; background: rgba(255,255,255,0.1);}
.list_todo .thumb_img img {width: 100%; height: 100%; object-fit: cover;}
.list_todo .thumb_img.thumb_img_no .thumb_img_wrap {display: flex; justify-content: center; align-items: center; font-size: 40px;}
.list_todo .todo_cate {margin-bottom: 10px;}
.list_todo .todo_cate span {display: inline-block; padding: 2px 8px; border-radius: 5px; background: #333333; color: #fff;}
.list_todo .todo_name {margin-bottom: 10px; font-size: 20px; font-family: 'WarhavenB'; line-height: 1.2;}
.list_todo .todo_memo {margin-bottom: 5px; padding-top: 5px; border-top: 1px dashed rgba(0,0,0,0.2); color: #333333; font-size: 14px; font-weight: 400;}
.list_todo .progress_bar {position: relative; margin-bottom: 10px; padding: 3px; border-radius: 5px; height: 20px; background: #e3e3e3; color: #fff;}
.list_todo .progress_bar .bar_inner {border-radius: 5px; width: 0%; max-width: 100%; height: 100%; background-color: var(--load-base);}
.list_todo .progress_bar span {position: absolute; top: 50%; left: 50%; width: 100%; text-align: center; transform: translate(-50%, -50%); font-size: 13px; }
.list_todo .btn_manage {position: absolute; right: 15px; bottom: 10px; text-align: right;}
.list_todo .btn_manage a {margin-left: 5px;}

.list_todo > li.complete.no_check > div,
.list_todo > li.complete > .a_check > div {filter: grayscale(1); opacity: 0.6;}
.list_todo > li.complete.no_check:after,
.list_todo > li.complete .a_check:after {content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; background: url('./complete.png') center center/100% no-repeat; border-radius: 15px;}
.list_todo > li.complete .btn_manage {opacity: 1; z-index: 2;}


.board-write	{  padding: 0 10px; }
.board-write > dl {position:relative; margin-bottom: 5px;}
.board-write > dl > dt { width:70px;position:absolute;line-height:32px;text-align:center; }
.board-write > dl > dd { width:100%;margin-left:0;padding-left:80px;box-sizing:border-box;line-height:32px;}
.board-write input.frm_input.full	{ width: 100%; display:block;margin:1px 0;}
.board-write input {padding: 0 10px; border: none; border-radius:5px; height: 30px; box-sizing: border-box;}
.board-write input::placeholder {opacity: 0.7;}
.board-write input[type="radio"]+label {margin-right: 5px;}
.board-write input[type="number"] {width: 100px; display:inline-block}
.board-write .btn_confirm {margin-top: 20px;}
.board-write .btn_thumb {margin-bottom: 5px;}
.board-write .btn_thumb.active {opacity: 1;}

label.required::after,
span.required::after {content: '*'; color: #ff4747;}

#ca_name option[value="공지"] {display: none;}

.pro_edit.on {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100;}
.pro_edit #progress_edit {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 600px; width: 90%;}

@media (max-width:1000px) {
    .list_todo .thumb_img .thumb_img_wrap {height: 13.5vw;}
}

@media (max-width:768px) {
    .list_todo > li {width: 49.25%;}
    .list_todo .thumb_img .thumb_img_wrap {height: 20.5vw; max-height: 157px;}
}

@media (max-width:576px) {
    .list_todo .todo_name {font-size: 16px;}
    .list_todo .todo_memo {font-size: 13px;}
    .list_todo .progress_bar span {font-size: 12px;}
}

@media (max-width:420px) {
    .list_todo > li {width: 100%;}
    .list_todo .thumb_img .thumb_img_wrap {height: 40vw;}
}


/* 체크리스트 */
.list_todo > li.check {transform: rotateY(180deg);}
.list_todo > li > a {display: block; width: 100%; height: 100%; color: #333;}
.list_todo .todo_check {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    transform: rotateY(180deg); 
    z-index: 3; 
    opacity: 0; 
    transition: all 0.3s; 
    visibility: hidden; 
    background: #fff; 
    border-radius: 15px; /* 체크리스트 모드에도 라운딩 */
    opacity: 90;
}
.list_todo .todo_check .theme-box {position: relative; width: 100%; height: 100%; border: none;}
.list_todo > li.check .todo_check {opacity: 1; visibility: visible;}
.list_todo .todo_check li {position: relative; margin-top: 5px; padding: 0 10px; border: 1px solid rgba(0,0,0,0.2); border-radius: 10px; line-height: 1.5; font-size: 14px;}
.list_todo .todo_check li:first-child {margin: 0;}
.list_todo .todo_check form {overflow-y: auto; padding: 0 5px; height: calc(100% - 74px);}
.list_todo .todo_check input[type="checkbox"] {margin-top: 5px; vertical-align: top; width: 18px; height: 18px;appearance: none;border-radius: 30px;background-color: transparent; transition: background-color 0.3s;
    &::before {content: '';color: transparent;display: block;width: 16px;height: 16px;border-radius: inherit;border: 1px solid rgba(0,0,0,0.2);background-color: transparent;background-size: contain;}
    &:checked::before {box-shadow: none;background-image: url("data:image/svg+xml,%3Csvg   xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E");}
}
.list_todo .todo_check label {display: inline-block; padding: 4px 5px; width: calc(100% - 25px);}

.list_todo .todo_check .todo_check_btn {position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding-top: 10px; text-align: center;}

.list_todo .todo_is_check {position: absolute; bottom: 10px;}

.board-write .add_pro_3 {margin-bottom: 5px;}

@media (max-width:576px) {
    .list_todo .todo_check li {font-size: 12px;}
}