/* 기본 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 상단 타이틀바 고정 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #7ab80e;
    padding: 4px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .header-left {
    float:left;
    margin: 0;
    color: white;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
}

.header .header-left a {color:#fff;font-weight: 600;text-decoration: none;}

.header .version {
    color: rgba(255, 255, 255, 0.8);
}

.header-icons {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .header .header-left {
        float:left;
        margin: 0;
        color: white;
        font-size: 18px;
        font-weight: 600;
        text-align: left;
    }
    .header-icons {
        display: flex;
        gap: 0rem;
    }
}

.icon-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.icon-button:hover {
    opacity: 1;
}

.button-container {margin:0 auto;text-align: center;}

/* 버전 텍스트 스타일 */
.version {
    font-size: 0.8rem;
    font-weight: normal;
    margin-left: 0.5rem;
    opacity: 0.7;
}

/* 메인 컨텐츠 영역 */
.container {
    max-width: 450px;
    margin: 0 auto;  /* 상단 타이틀바와 하단 카피라이터 공간 확보 */
    margin-top:-20px;
    padding: 2rem;
    height:370px !important;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);

    position: relative;
    height: calc(100vh - 7rem);  /* 상단/하단 고정 영역 제외한 높이 */
}

/* 하단 카피라이터 고정 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 0.8rem;
    color: #666;
}

/* 헤더 스타일 */
h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #57b509;
    font-size: 2rem;
}

h1 i {
    margin-right: 0.5rem;
}

/* 폼 스타일 */
.pure-form {
}

.pure-control-group {
    margin-bottom: 1rem;
}

.pure-form label {
    font-weight: 500;
    color: #666;
}

.pure-form label i {
    margin-right: 0.5rem;
    color: #57b509;
}

.pure-form input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.pure-form input:focus {
    border-color: #57b509;
    outline: none;
}

/* 음력 체크박스 스타일 */
.birth-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.birth-input-group input[type="text"] {
    flex: 1;
}

/* 날짜 입력 필드 스타일 */
.date-input-container {
    position: relative;
    width: 100%;
}

.date-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    color: #ccc;
    pointer-events: none;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    display: none;
    align-items: center;
    z-index: 0;
}

/* 수정 모드일 때만 오버레이 표시 */
.date-input-container.editing .date-input-overlay {
    display: flex;
}

@media (max-width: 480px) {
    /* 음력 체크박스 스타일 */
    .birth-input-group {
        position: relative;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .birth-input-group input[type="text"] {
        flex: 1;
    }

    /* 날짜 입력 필드 스타일 */
    .date-input-container {
        position: relative;
        width: 60%;
    }

    .date-input-overlay {
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 8px 12px;
        color: #ccc;
        pointer-events: none;
        font-family: monospace;
        font-size: 1rem;
        line-height: 1.5;
        display: none;
        align-items: center;
        z-index: 0;
    }

    /* 수정 모드일 때만 오버레이 표시 */
    .date-input-container.editing .date-input-overlay {
        display: flex;
    }
}

/* 오버레이 내부 채워진 텍스트 스타일 */
.date-input-overlay .filled {
    color: transparent;
}

.flatpickr {
    position: relative;
    background: transparent !important;
    font-family: monospace;
    font-size: 1rem;
    height: 38px;
    line-height: 1.5;
    margin-top: -2px;
}

.flatpickr:focus {
    outline: none;
    border-color: #57b509;
}

/* 입력된 문자는 검은색으로 표시 */
.date-input-overlay span.filled {
    color: transparent;
}

.lunar-checkbox {
    white-space: nowrap;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    cursor: pointer;
}

.lunar-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* 버튼 스타일 */
.pure-button {
    background-color: #ddd;
    padding: 12px 20px;
    margin-top: 1rem;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.pure-button-primary {
    background-color: #57b509;
    padding: 12px 20px;
    margin-top: 1rem;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.pure-button-primary:hover {
    background-color: #3b8300;
}

.pure-button-primary i {
    margin-right: 0.5rem;
}

/* 결과 스타일 */
.result {
    display: none;
    margin-top: 2rem;
}

.time-box {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 0.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.time-box:hover {
    transform: translateY(-2px);
}

.time-passed {
    border-left: 4px solid #2196F3;
}

.time-remaining {
    border-left: 4px solid #FF9800;
}

.time-box h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #57b509;
}

.time-remaining h2 {
    color: #FF9800;
}

.time-box h2 i {
    margin-right: 0.5rem;
}

#passed-time, #remaining-time {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Flatpickr 커스텀 스타일 */
.flatpickr-calendar {
    font-family: 'Noto Sans KR', sans-serif;
    margin-top: 2px !important;
    margin-left: -1px !important;
}

.flatpickr-input {
    cursor: pointer;
}

.tc_logo {width:260px;margin: 55px auto 30px auto;text-align: center !important;}
.tc_logo img {width:120px;}
.tc_logo .tc_txt1 {color:#57b509;font-size:20px;font-weight:600;line-height: 16px;padding:0px;letter-spacing: 1px;}
.tc_logo .tc_txt2 {color:#444;font-size: 26px;font-weight: 600;line-height: 20px;}

/* 반응형 디자인 */
@media (max-width: 48em) {
    .tc_logo {width:220px;margin: 55px auto 30px auto;text-align: center !important;}
    .tc_logo img {width:100px;}
    .tc_logo .tc_txt1 {color:#57b509;font-size:20px;font-weight:600;line-height: 10px;padding:0px;letter-spacing: 1px;height:10px;}
    .tc_logo .tc_txt2 {color:#444;font-size: 26px;font-weight: 600;line-height: 16px;}

    .container {
        margin: 0px 24px;
        padding: 10px 26px;
        margin-top:-26px;
    }

    .time-box {
        margin: 8px 0;
    }
    .pure-control-group {
        margin-bottom: 0.5rem;
    }

    .button-group .pure-button {
        padding: 6px 12px !important;
        font-size: 16px !important;
        border-radius: 6px;
    }

    .pure-button-primary {
        background-color: #57b509 !important;
    }

    .pure-button-primary:hover {
        background-color: #4a9c08 !important;
    }    
}

/* 나이 입력 버튼 스타일 */
.death-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-input-button {
    background-color: #57b509;
    color: white;
    border: none;
    border-radius: 4px;
    width: 100px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.age-input-button:hover {
    background-color: #3b8300;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    margin: 0;
    color: #5c9f20;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    padding:12px 0 25px 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #57b509;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff0000;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    /* 모달 스타일 */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #eee;
    }

    .modal-header h2 {
        margin: 0;
        color: #57b509;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .modal-content {
        background-color: white;
        padding: 1.6rem;
        border-radius: 10px;
        width: 100%;
        max-width: 280px;
        max-height: 60vh;
        position: relative;
    }
    .modal-content .modal-close {display: none;}

    .modal-content h2 {
        margin: 0;
        color: #5c9f20;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        padding:12px 0 0px 0;
    }

    .age-input-button {
        background-color: #57b509;
        color: white;
        border: none;
        border-radius: 4px;
        width: 90px !important;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.3s;
    }    

}
/* 폼 스타일 */
.pure-form {
    margin-bottom: 1rem;
}

.pure-control-group {
    margin-bottom: 1rem;
}

.pure-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.pure-form label i {
    color: #57b509;
}

.pure-form input[type="text"],
.pure-form input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.pure-form input:focus {
    border-color: #57b509;
    outline: none;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}


/* 날짜 입력 그룹 */
.birth-input-group,
.death-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-input-container {
    flex: 1;
    position: relative;
}

.age-input-button {
    background-color: #57b509;
    color: white;
    border: none;
    border-radius: 4px;
    width: 100px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.age-input-button:hover {
    background-color: #4a9c08;
}

/* 타이탄 카운터 결과 화면 스타일 */
.titan-counter {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    margin: 0;
}

#death-date {color:#57b509;font-weight: 600;}
#birth-date {color:#57b509;font-weight: 600;}

.counter-content {
    max-width: 500px;
    margin: 85px auto 20px auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.counter-content h2 {color:#57b509;text-align: center;margin:10px 0 30px 0;}

.counter-main {
    position: relative;
    padding-right: 20px;
}

.birth-info, .death-info {
    margin-bottom: 8px;
    margin-right:-20px;
    color:#70b137
}

.death-info .death_lab {color:#444;}

.birth-info p, .death-info p {
    margin: 0;
    font-size: 1.1rem;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 480px) {
    .counter-content {
        max-width: 100%;
        margin: 25px 0;
        padding: 20px 10px;
        background-color: white;
        overflow-y: auto;
    }

    #death-date {color:#57b509;font-weight: 600 !important;}
    #birth-date {color:#57b509;font-weight: 600 !important;}

    .counter-content h2 {color:#57b509;text-align: center;margin:26px 0 20px 0;}

    .counter-main {
        position: relative;
    }

    .titan-counter {
        width:94%;
        background-color: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        position: relative;
        margin: 0 0px 0 10px;
    }    

    .birth-info, .death-info {
        margin-bottom: 0px;
        letter-spacing: -0.5;
        color:#70b137
    }

    .birth-info p, .death-info p {
        margin: 0;
        font-size: 1.1rem;
        justify-content: space-between;
        align-items: center;
    }
}


.birth-info p, .death-info p i {padding-right:6px;color:#888;}

.birth-info p i {padding-right:6px;color:#888;}

.birth-info p span {font-weight: 600;}

.total-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.total-time span {
    color:#70b137;
    font-weight: 600;
}

.total-time p {
    margin: 0;
    font-size: 1.1rem;
}

.total-time p i {color:#888;margin-right:6px;}

@media (max-width: 480px) {
    .total-time {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 2px 0;
    }

    .total-time span {
        padding-left:20px;
        color:#70b137;
    }

    .total-time p {
        margin: 0;
        font-size: 1.1rem;
    }

    .total-time p i {color:#888;margin-right:4px;}
}

.toggle-time-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #5fa324;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.toggle-time-button:hover {
    color: #0052a3;
}

.toggle-time-button i {
    font-size: 20px;
}

@media (max-width: 480px) {
    .toggle-time-button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        color: #5fa324;
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-top:-26px;
        margin-right:-20px;
    }

    .toggle-time-button:hover {
        color: #5fa324;
    }

    .toggle-time-button i {
        font-size: 20px;
    }
}

.passed-time {
    background-color: #f8f8f8;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
    border-radius: 5px;
    display: flex;
    align-items: center;
    touch-action: pan-y pinch-zoom;
}

.time-nav-button {
    background: none;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.time-nav-button:hover {
    color: #70b137;
}

.time-display {
    flex: 1;
    transition: transform 0.3s ease;
}

.time-title {
    color: #70b137;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.days {
    color: #ff0000;
    font-size: 2.3rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.hours {
    color: #ff0000;
    font-size: 1.8rem;
    margin: 0;
}

@media (max-width: 480px) {
    .passed-time {
        background-color: #eef8e6;
        padding: 10px;
        margin: 20px 30px 20px 0;
        width:100%;
        text-align: center;
        border-radius: 5px;
        align-items: center;
        touch-action: pan-y pinch-zoom;
    }

    .time-nav-button {
        background: none;
        border: none;
        color: #ccc;
        font-size: 2rem;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }

    .time-nav-button {margin-left:-10px !important}

    .time-nav-button:hover {
        color: #70b137;
    }

    .time-display {
        transition: transform 0.3s ease;
    }

    .time-title {
        color: #70b137;
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .days {
        color: #ff0000;
        font-size: 28px;
        font-weight: bold;
        width:190px !important;
        margin: 0 -20px 0 10px;
        text-align: center;
    }

    .hours {
        color: #ff0000;
        font-size: 1.8rem;
        width:200px !important;
        margin: 0 -20px 0 10px;
        text-align: center;
    }
}

/* 5년단위 계획 섹션 */
.five-year-plan {
    margin-top: 2rem;
}

.five-year-plan h3 {
    color: #ff0000;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.plan-list {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 1rem;
    max-height: 120px;
    overflow-y: auto;
}

.plan-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.plan-item:last-child {
    border-bottom: none;
}

.plan-year {
    min-width: 120px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.plan-period {
    color: #70b137;
    font-weight: 500;
}

.plan-age {
    color: #666;
}

.plan-content {
    flex: 1;
    color: #333;
}

@media (max-width: 480px) {

    .plan-list {
        background-color: #f5f5f5;
        border-radius: 5px;
        padding: 10px;
        max-height: 160px;
        overflow-y: auto;
        margin-bottom:30px;
        margin-right:-20px;
    }
    .plan-item {
        display: flex;
        gap: 0.5rem;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .plan-item:last-child {
        border-bottom: none;
    }

    .plan-year {
        min-width: 60px;
        display: flex;
        gap: 6px;
        align-items: center;
    }

    .plan-period {
        color: #70b137;
        line-height: 20px;
        font-weight: 500;
    }

    .plan-age {
        color: #666;
    }

    .plan-content {
        flex: 1;
        color: #333;
        line-height: 20px;
    }
}

/* 프로그레스바 스타일 */
.titan-progress {
    width: 96%;
    margin: 10px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.progress-container {
    width: 100%;
    padding: 0 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #ff0000;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    position: relative;
    width: 100%;
}

.progress-labels .label-start {
    position: absolute;
    font-size:12px;font-weight: 300;
    left: 10px;
}

.progress-labels .label-current {
    position: absolute;
    left: var(--progress-percent);
    transform: translateX(-50%);
}

.progress-labels .label-end {
    position: absolute;
    font-size:12px;font-weight: 300;
    right: -10px;
}

.label-start {
    color: #ff0000;
}

.label-current {
    color: #ff0000;
    font-weight: 500;
    position: absolute;
    transform: translateX(-50%);
    top: -5px;
    left: var(--progress-percent);
}

.label-end {
    color: #666;
}

/* 하단 버튼 */
.counter-buttons {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
}

.counter-button {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.counter-button.refresh {
    background-color: #7ab80e;
    color: white;
    border: none;
}

/* 카운터 페이지 스타일 */
.counter-page .container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0;
    background: none;
    box-shadow: none;
}

.counter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.counter-buttons .pure-button {
    padding: 0.8rem 2rem;
    font-size: 1.1em;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.counter-buttons .pure-button i {
    font-size: 1.2em;
}

/* 카운터 메인 레이아웃 */
.counter-main {
    position: relative;
    padding-right: 20px;
}

.counter-info {
    padding:20px 0px 20px 20px;
}

/* 모바일 대응 */
@media (max-width: 480px) {

    .counter-main {

        padding-right: 28px;
    }

    .counter-info {
        padding:12px;
    }
    .progress-labels {
        font-size: 12px;
    }
}

/* 5년단위 계획 섹션 */
.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-header h3 {
    color: #70b137;
    font-size: 1.2rem;
    margin: 0;
}

.plan-manage-button {
    background: none;
    border: none;
    color: #70b137;
    cursor: pointer;
    padding: 5px;
    font-size: 1.6rem;
    display: flex;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.plan-manage-button:hover {
    color: #ff0000;
}
@media (max-width: 480px) {
    .plan-manage-button {
        background: none;
        border: none;
        color: #70b137;
        cursor: pointer;
        padding: 5px;
        font-size: 1.6rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
        margin-right:-20px;
    }
}

/* 계획 관리 모달 */
.plan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.plan-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.plan-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.plan-modal-header h2 {
    margin: 0;
    color: #57b509;
    font-size: 1.5rem;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.plan-table th,
.plan-table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

.plan-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.plan-table input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.plan-table input[type="text"]:focus {
    border-color: #57b509;
    outline: none;
}

.plan-table input::placeholder {
    color:#ccc;
}

.plan-save-button {
    background-color: #57b509;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: block;
    margin: 0 auto;
}

.plan-save-button:hover {
    background-color: #3d8303;
}

@media (max-width: 480px) {

    /* 계획 관리 모달 */
    .plan-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }

    .plan-modal-content {
        background-color: white;
        padding: 12px;
        border-radius: 10px;
        width: 90%;
        max-width: 600px;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
    }

    .plan-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #eee;
    }

    .plan-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1.5rem;
        font-size: 15px !important;
    }

    .plan-table th,
    .plan-table td {
        padding: 0.6rem;
        border: 1px solid #ddd;
        text-align: left;
    }

    .plan-table th {
        background-color: #f5f5f5;
        font-weight: 500;
    }

    .plan-table input[type="text"] {
        width: 100%;
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
    }

    .plan-table input[type="text"]:focus {
        border-color: #ff0000;
        outline: none;
    }
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #7ab80e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #679a0b;
}

/* 로딩 오버레이 스타일 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    font-size: 48px;
    color: #333;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 