/* font */
@font-face {
    font-family: 'pretendard';
    src: url('../PretendardVariable.woff2') format('woff2');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'pretendard', '맑은 고딕', sans-serif;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    display: block;
    text-align: center;
}

ul,
li {
    list-style: none;
    text-decoration: none;
}

body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.m_wrap {
    height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 440px;
    background: #f5f5f5;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/********************* 로그인 *************************/

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 440px;
    height: 95vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.container::-webkit-scrollbar {
    display: none;
}

.logo-section {
    text-align: center;
}

.logo-section img {
    margin-top: 40px
}

#loginForm {
    padding: 0 30px;
    margin-bottom: 100px
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    font-size: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    background: #f8f9fa;
    text-align: center;
}

.input-field::placeholder {
    color: #aaa;
}

.login-btn {
    width: 100%;
    padding: 16px 18px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.login-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30px
}

.login-bottom img {
    width: 100px
}

.logo-title {
    font-size: 24px;
    font-weight: bold;
    padding: 20px 0;
    border-bottom: solid #5568d3 2px;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .container {
        height: 100vh;
        border-radius: 0;
    }

    .logo-title {
        font-size: 20px;
        font-weight: bold;
        width: 100%;
        background: #5568d3;
        color: #fff;
        padding: 12px 0;
        border: none
    }

    #loginForm {
        padding: 0 20px;
    }

    body {
        padding: 0
    }

    .m_wrap {
        height: 100vh;
        border-radius: 0;
        width: 100%;
    }
}


/******************* 메인 *************************/

/* 상단 헤더 */
.header {
    background: #000;
    padding: 12px 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex: 1
}

.user-details {
    display: flex;
    align-items: center;
    gap: 10px
}

.user-name {
    font-size: 28px;
    font-weight: bold;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 메인 컨텐츠 영역 */
.main-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 20px 0 20px;
}

.main-content::-webkit-scrollbar {
    display: none;
}

/* 상태 카드 */
.status-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.status-title {
    font-size: 20px;
    color: #111;
    font-weight: bold;
    text-align: center;
}

.status-info {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.status-item {
    text-align: center;
}

.status-label {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
    background: #f0f0f0;
    border-radius: 50px;
    padding: 5px 20px;
}

.status-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.status-value.active {
    color: #ff0000
}

.status-value.none {
    color: #666;
    display: none;
}

.work-btn {
    border: none;
    font-size: 28px;
    font-weight: bold;
    width: 100%;
    margin-top: 40px;
    border-radius: 10px;
    padding: 13px 0;
    background: #5568d3;
    color: #fff;
    box-shadow: #05104999 0px 3px 0px 2px, rgba(0, 0, 0, 0.3) 5px 8px 5px 0px;
    cursor: pointer;
}

.work-btn.start {
    background: #ff0000;
    box-shadow: rgb(133, 0, 0) 0px 3px 0px 2px, rgba(0, 0, 0, 0.3) 5px 8px 5px 0px;
}

.work-btn.disable {
    background: #ccc;
    box-shadow: rgb(0, 0, 0, 0.1) 0px 3px 0px 2px, rgba(0, 0, 0, 0.2) 5px 8px 5px 0px
}

.status-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    ;
}

/* 날씨 및 만보기 정보 행 */
.info-row.weather {
    margin-top: 20px;
}

.weather-info,
.pedometer-info {
    background: white;
    border-radius: 12px;
    padding: 15px 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.weather-icon,
.pedometer-icon-small {
    font-size: 32px;
    margin-right: 10px;
}

.weather-details,
.pedometer-details {
    display: flex;
    align-items: center;
    width: 100%;
}

.weather-temp,
.pedometer-steps-small {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.weather-desc,
.pedometer-goal-small {
    font-size: 20px;
    color: #666;
    margin-left: 20px;
}

/* 기상 특보 */
.special-weather {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    border: solid #ff0000 2px;
    box-sizing: border-box
}

.sw-title {
    font-size: 28px;
    font-weight: bold;
    color: #ff0000
}

.sw-sub {
    font-size: 20px;
    color: #666;
}

.go-report {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px 12px;
    box-shadow: #05104999 0px 3px 0px 2px, rgba(0, 0, 0, 0.3) 5px 8px 5px 0px;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    margin-top: 20px;
    cursor: pointer;
}

.go-report.disable {
    background: #ccc;
    box-shadow: rgb(0, 0, 0, 0.1) 0px 3px 0px 2px, rgba(0, 0, 0, 0.2) 5px 8px 5px 0px
}


/* 메뉴 모달 */
.menu-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.menu-modal.show {
    display: flex;
    justify-content: flex-end;
}

.menu-content {
    background: white;
    width: 80%;
    max-width: 300px;
    height: 100%;
    padding: 20px;
    animation: slideIn 0.3s;
    overflow-y: auto;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.menu-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #767676;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    width: 100%;
    text-align: left;
}

.menu-item-icon {
    font-size: 24px;
}

.menu-item-text {
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

.menu-item.active {
    background: #f8f9fa;
}

.menu-item.active .menu-item-text {
    color: #5568d3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* 반응형 */
@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }

    .nav-label {
        font-size: 14px;
    }
}


/********************* 공지사항 ************************/

.main-content.mc3 {
    padding: 0;
    background: #eee;
}

/* 공지사항 리스트 */
.notice-item {
    background: white;
    padding: 18px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notice-date {
    font-size: 20px;
    color: #767676;
}

.notice-badge {
    background: #ff5252;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.notice-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notice-author {
    font-size: 18px;
    color: #666;
}

.notice-author-icon {
    margin-right: 4px;
}

/* 상세보기 모달 */
.detail-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s;
    padding: 0;
}

.detail-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-content {
    background: white;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.detail-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.detail-body {
    overflow-y: auto;
    flex: 1;
}

.detail-info {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 16px 20px;
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-info-label {
    font-size: 20px;
    color: #666;
}

.detail-info-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.detail-content-text {
    font-size: 20px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    padding: 20px
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination-btn {
    background: white;
    border: 2px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/************************* 보고서 *******************************/

.header-title {
    font-size: 28px;
    font-weight: bold;
}

.main-content.mc2 {
    padding: 0;
    background: white;
}

/* 폼 섹션 */
.form-section {
    background: white;
    padding: 20px;
}

.form-row-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.form-label-inline {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    min-width: 80px;
    flex-shrink: 0;
}

.form-input-inline {
    flex: 1;
    padding: 10px 12px;
    font-size: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    width: 100%
}

.form-input:disabled,
.form-input-inline:disabled {
    background: #f5f5f5;
    color: #666;
}

.form-row-inline select {
    flex: 1;
    padding: 10px;
    font-size: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    width: 100%
}

option[value=""][disabled] {
    display: none;
}

/* 제출 버튼 */
.report-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px
}

.report-bottom button {
    width: 50%;
    padding: 14px 16px;
    color: #111;
    border: none;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    background: #ccc;
    box-shadow: rgb(0, 0, 0, 0.3) 0px 3px 0px 2px, rgba(0, 0, 0, 0.2) 5px 8px 5px 0px
}

.report-bottom .submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: #05104999 0px 3px 0px 2px, rgba(0, 0, 0, 0.3) 5px 8px 5px 0px;
}

/************************** 팝업 ********************************/
.popup {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    display: none;
}

.p_con {
    background: #fff;
    border-radius: 12px;
    width: 90%;
}

.p_header {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
}

.p_text {
    font-size: 28px;
    padding: 0 20px;
    text-align: center;
    min-height: 50px;
    margin-bottom: 25px;
    line-height: 140%;
    display: flex;
    justify-content: space-around;
}

.p_text button {
	width: 45%;
    height: 200px;
    border-radius: 12px;
    border: none;
    padding: 15px 12px;
    color: white;
    font-size: 2rem;
}

.p_text .crt {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: #05104999 0px 3px 0px 2px, rgba(0, 0, 0, 0.3) 5px 8px 5px 0px;
}

.p_text .mdf {
	background: linear-gradient(135deg, #09c7a7 0%, #0f6fec 100%);
    box-shadow: #053b53a8 0px 3px 0px 2px, rgba(0, 0, 0, 0.3) 5px 8px 5px 0px;
}

.p_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px
}

.p_btn button {
    border: none;
    font-size: 24px;
    width: 40%;
    padding: 10px 0;
    border-radius: 6px;
    background: #e0e0e0;
    font-weight: bold;
}

.p_btn button.p_ok {
    background: #667eea;
    color: #fff
}

/* 황준 추가 2026-01-14 */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border: none;
  margin-left : 20px;
}

.marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 10s linear infinite;
  margin-left : 0px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.loading-modal {
	position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.loading-modal .loading_main {
	width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-modal .loading_background {
    background: black;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.loading-modal .loadingImage {
    position: absolute;
    width: 8rem;
}

.small_modal {
	display: none;
    width: calc(100% - 40px);
    margin-left: -12px;
    height: 76px;
    border-radius: 10px;
	position: absolute;
}

.small_bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(0,0,0,0.6);
    z-index:999;
}

.small_modal .small_img_div {
	width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
}

.small_modal img{
    width:6rem;
}

.terms-popup {
	visibility: hidden;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateY(100%);
    transition: transform 0.3s ease, visibility 0s linear 0.3s; ;
}

.terms-popup.show {
    visibility: visible;
	transform: translateY(0);
	transition: 
        transform 0.3s ease,
        visibility 0s linear 0s; 
}

.terms-title {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid lightgray;
    font-size: 1.1rem;
    padding: 10px 10px;
    font-weight: bold;
}

.terms-close-button {
	background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.terms-button-area {
	text-align: center;
}

.terms-check-button {
	width: 80%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px 12px;
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    border: none;
    margin: 20px auto;
}

.terms-check-button a{
	color: white;
}

.terms-final-button-area {
	text-align: center;
}

.terms-final-button-area .final-button {
	width: 80%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px 12px;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    transition: all 1s ease;
}

.terms-final-button-area .final-button.button-disabled {
	background: lightgray;
}

.terms-checkbox-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}

.terms-checkbox-area div{
	margin: 5px 0;
}

/* 개인정보 처리방침 */
.terms{background:#fff; font-size:14px; }
.terms .header{justify-content:center; line-height:42px; }
.terms .terms-title{font-size:20px; font-weight:bold; text-align:center;}

.terms .main-content {line-height:1.4; overflow-y:visible;}
.terms-text {margin-bottom:10px;}
.terms-ul1>li>span{margin-right:5px;}

.terms-list{margin-top:30px;}
.terms-li{margin-bottom:20px;}
.tl-title{font-weight:bold; margin-bottom:4px; font-size:16px;}
.tl-text{ color:#555;}
.tl-text p{margin-bottom:4px;}
.terms-table{margin-top:10px;}
.terms-table>p{color:#111}
.terms-table table{width:100%; border-collapse: collapse;border-spacing: 0; margin-bottom:10px}
.terms-table thead th{border:solid #dbdbdb 1px; padding:8px 4px; color:#111}
.terms-table td{border:solid #dbdbdb 1px; padding:10px 4px}

.terms-agree{display:flex; align-items:center; justify-content:center; gap:10px; margin-top:30px; margin-bottom:30px;}
.terms-agree input{width:24px; height:24px;}
.terms-agree label{font-size:16px; font-weight:bold;}
.terms-agree span{color:#ff5252; margin-left:5px}

.wrapper{position:relative; overflow-y: auto; scrollbar-width: none;}
.go-bottom{position:sticky; ;left:0; bottom:0; z-index:100; background:#fff; line-height:62px;}
.go-bottom a{font-size:18px; font-weight:bold; background:#fff; box-shadow:rgba(0,0,0,0.15) -5px 0 10px; color:#5568d3}

.tt-title{font-size:18px; font-weight:bold; color:#5568d3; margin-top:20px; margin-bottom:10px;}
.first{margin-top:0;}
.terms2{margin-top:0;}

.tl-last{font-size:20px; font-weight:bold; text-align:center; color:#111; margin-bottom:10px; margin-top:30px}
.vacation-btn{margin-top: 60px; margin-bottom: 60px; background: linear-gradient(135deg, #09c7a7 0%, #0f6fec 100%); box-shadow: #053b53a8 0px 3px 0px 2px, rgba(0, 0, 0, 0.3) 5px 8px 5px 0px;}

.p_report_list {min-height: 150px; max-height: 500px; overflow-y: auto; padding: 10px; height: calc(100vh - 400px);}
.p_report_list ul{border-bottom: 1px solid black; margin-bottom: 5px; padding-bottom: 5px;}