@charset "utf-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --primary-color: #1F2937;
    --accent-color: #B7CACB;
    --border-color: #212535;
    --font-family: 'Pretendard', sans-serif;
}

/* [1] 기본 설정 및 폰트 통일 */
* { font-family: var(--font-family); box-sizing: border-box; margin: 0; padding: 0; }
.todo-container { max-width: 1100px; margin: 0 auto; padding: 20px 15px; }

/* [2] 캘린더 & 투두 리스트 헤더 폰트 완벽 통일 */
.cal-top-mask, .todo-header {
    font-weight: 800 !important; /* 두께 통일 */
    font-size: 14px !important;  /* 크기 통일 */
    letter-spacing: 1px !important; /* 자간 통일 */
    color: #DAD2CD !important;
    text-transform: uppercase;
}

/* 캘린더 레이아웃 조정 */
.calendar-scaled-box { 
    width: 80% !important; margin: 0 auto 20px auto !important; 
    overflow: hidden; border: 2px solid var(--border-color); border-radius: 12px; position: relative; 
}
.cal-top-mask {
    position: absolute !important; top: 0; left: 0; width: 100%; height: 40px; 
    background: var(--primary-color) !important; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--accent-color);
}
.calendar-wrapper { position: relative; height: 400px; overflow: hidden; }
.calendar-wrapper iframe {
    width: 125%; height: 125%; transform: scale(0.8, 0.9); transform-origin: 0 0; 
    position: absolute; top: -5px; left: 0; border: 0;
}

/* [3] 버튼 스타일 (선택 삭제 볼드 적용) */
.btn-del-selected, .btn-add-todo { 
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-color) !important; color: var(--primary-color) !important; 
    padding: 6px 14px; border-radius: 6px; font-size: 12px; border: none;
    font-weight: 800 !important; text-decoration: none !important; cursor: pointer; transition: 0.2s;
}
.btn-del-selected:hover, .btn-add-todo:hover { filter: brightness(90%); }

/* [4] 투두 리스트 목록 및 완료 효과 */
.todo-card { border-radius: 12px; background: #fff; border: 1px solid var(--border-color); overflow: hidden; }
.todo-header { background: var(--primary-color); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.header-btns { display: flex; gap: 8px; }

.todo-item-row { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 18px 20px; border-bottom: 1px solid #edf2f7; width: 100% !important; transition: 0.3s;
}

/* ★ 완료 효과 ★ */
.todo-item-row.is-done { background-color: #f9f9f9 !important; opacity: 0.5; }
.todo-item-row.is-done .todo-subject-text { text-decoration: line-through !important; color: #888 !important; }

.todo-content-left { display: flex; align-items: center; gap: 15px; flex: 1; }
.todo-subject-text { font-size: 15px; font-weight: 600; color: #2d3748; }

.todo-content-right { display: flex; align-items: center; gap: 20px; }
.todo-progress-container { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.todo-progress-bar { width: 120px; height: 8px; background: #edf2f7; border-radius: 20px; overflow: hidden; }
.todo-progress-fill { height: 100%; background: linear-gradient(90deg, #B7CACB, #1F2937); transition: width 0.6s ease; }
.todo-progress-text { font-size: 11px; font-weight: 700; color: var(--primary-color); }

/* [5] 글쓰기 폼 (7단계 중요도 대응 버전) */
#fwrite { 
    max-width: 650px !important; 
    margin: 40px auto !important; 
    padding: 30px !important; 
    background: #fff !important; 
    border-radius: 20px !important; 
    border: 1px solid var(--border-color) !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; 
}

/* 중요도 7단계 라디오 버튼 그리드 배치 */
#fwrite .prio-select-group { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); /* 7개를 가로로 균등하게 */
    gap: 8px; 
    margin: 10px 0 25px 0; 
}
#fwrite .prio-select-group label { cursor: pointer; text-align: center; }
#fwrite .prio-select-group input { display: none; } /* 실제 라디오 버튼은 숨김 */
#fwrite .prio-select-group span { 
    display: block; 
    padding: 10px 0; 
    background: #f8f9fa; 
    border: 2px solid #eee; 
    border-radius: 10px; 
    font-size: 20px; /* 이모지 크기 */
    transition: 0.2s; 
}

/* 선택되었을 때의 효과 */
#fwrite .prio-select-group input:checked + span { 
    border-color: var(--primary-color); 
    background: #f0f4f8; 
    transform: translateY(-3px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

/* 입력창 및 레이블 스타일 */
.write-label { display: block; font-weight: 800; margin-bottom: 10px; color: var(--primary-color); font-size: 14px; }
.progress-input-box { margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 12px; border: 1px solid #eee; }
.input-flex { display: flex; align-items: center; gap: 10px; }
.todo-prog-input { width: 80px; padding: 10px; border: 2px solid #eee; border-radius: 8px; text-align: center; font-weight: bold; }
.input-unit { font-weight: 800; color: var(--primary-color); }
.input-desc { font-size: 11px; color: #888; margin-top: 8px; }

#fwrite .write-row { margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
#fwrite .todo-input-main { width: 100% !important; padding: 15px !important; border: 2px solid #eee !important; border-radius: 12px !important; font-size: 16px !important; outline: none !important; }
#fwrite .todo-input-main:focus { border-color: var(--accent-color) !important; }

/* 하단 버튼 */
.btn_confirm { display: flex; gap: 10px; justify-content: center; margin-top: 25px; }
.btn_submit { background: var(--primary-color) !important; color: #fff !important; padding: 15px 40px !important; border-radius: 10px !important; font-weight: 800 !important; cursor: pointer; border: none; font-size: 16px; transition: 0.2s; }
.btn_submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn_cancel { background: #eee !important; color: #666 !important; padding: 15px 40px !important; border-radius: 10px !important; text-decoration: none; font-weight: 800; font-size: 16px; }