@charset "utf-8";

body {
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

header {
    height: 40px; 
    display: flex;
    justify-content: space-between;
}

/* 제목 */
#titleText {
    height: 40px;
    line-height: 40px;
    text-align: left;
    padding-left: 15px;
    color: #999999;
    font-size: 15px;
}

#nowLocation {
    /* border: 1px solid red; */
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

#nowLocation span::before {
    content: attr(data-tooltip-text); /* MODIFIED: data-* 속성 값을 사용 */
    font-size: 12px;
    display: none; 
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
    top: 5px; 
    left: 30%;
    transform: translateX(-110%);
}

#nowLocation span:hover::before {
    display: block;
}


#loading {
    display: none; 
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 4000;
}



#loading div {    
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-items: center;
    text-align: center;
    font-size: 16px;    
    color: #ffffff; 
}


#loading div p {    
    width: 450px;
    height: 50px;
}



/* 로딩 애니메이션 */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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




.custom_typecontrol {
    position: fixed;
    top: 50px;
    right: 10px;
    overflow: hidden;
    width: 130px;
    height: 30px;
    margin: 0;
    padding: 0;
    z-index: 1;
    font-size: 12px;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
}

.custom_typecontrol span {
    display: block;
    width: 65px;
    height: 30px;
    float: left;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

.custom_typecontrol .btn {
    background: #fff;
    background: linear-gradient(#fff, #e6e6e6);
}

.custom_typecontrol .btn:hover {
    background: #f5f5f5;
    background: linear-gradient(#f5f5f5, #e3e3e3);
}

.custom_typecontrol .btn:active {
    background: #e6e6e6;
    background: linear-gradient(#e6e6e6, #fff);
}

.custom_typecontrol .selected_btn {
    color: #fff;
    background: #425470;
    background: linear-gradient(#425470, #5b6d8a);
}

.custom_typecontrol .selected_btn:hover {
    color: #fff;
}

.custom_zoomcontrol {
    position: fixed;
    top: 90px;
    right: 10px;
    width: 36px;
    height: 80px;
    overflow: hidden;
    z-index: 200;
    background-color: #f5f5f5;
}

.custom_zoomcontrol span {
    display: block;
    width: 36px;
    height: 40px;
    text-align: center;
    cursor: pointer;
}

.custom_zoomcontrol span:hover {
    background-color: #dddddd;
}

.custom_zoomcontrol span img {
    width: 45%;
    height: 100%;
    padding: 12px 0;
    border: none;
}

.custom_zoomcontrol span:first-child {
    border-bottom: 1px solid #bfbfbf;
}


.custom_zoomcontrol.radius_border {
    border: 1px solid #919191;
    border-radius: 5px;
}



.mapOption {
    position: absolute;
    top: calc(65vh + 50px - 50px);
    right: 10px;
    z-index: 1;
    /* background-color: red; */
    width: 400px;
    max-width: 100%;
    height: 25px;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    display: flex;
    justify-content: right;
}



.mapOption input[type='checkbox'] {
    display: none;
}

.mapOption label {
    background: linear-gradient(#a3daff, #8ed2ff);
    cursor: pointer;
    padding: 4px 10px;
    display: block;
    text-align: center;
    margin-left: 5px;
    font-size: 12px;
    border-radius: 5px;
    max-width: 150px;
}

.mapOption label.active {
    background: linear-gradient(#8ed2ff, #55b9fb);
    color: #ffffff;
    border-radius: 5px;
  }


  #VisitCoordinates {
    /* background: linear-gradient(#ffa3a3, #ff8e8e); */
    cursor: pointer;
    /* padding: 4px; */
    display: block;
    text-align: center;
    margin-left: 5px;
    font-size: 12px;
}






#VisitCoordinatesKakaoLink {
    background: linear-gradient(#ffa3a3, #ff8e8e);
    cursor: pointer;    
    padding: 4px;
    display: none;
    text-align: center;
    margin-left: 5px;
}




#map {
    margin-top: 0px;
    width: 100%;
    height: 65vh;
}






#VisitCoordinates {
    text-align: center;
    /* margin-top: 5px; */
    max-width: 230px;
    height: 35px;
}


#VisitCoordinates a {
    display: inline-block;
    width: 100%;
    padding: 4px 10px;
    font-size: 12px;
    /* font-weight: bold; */
    color: white;
    background-color: #dc3545; /* 빨간색 */
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


#VisitCoordinates a:hover {
    background-color: #c82333; /* 어두운 빨강 */
    transform: scale(1.05);
}

#VisitCoordinates a:active {
    background-color: #a71d2a; /* 더 어두운 빨강 */
    transform: scale(0.95);
}











#appointmentTableListBox {
    margin-top: 5px;
    width: 100%;
    height: calc(100vh - 70px - 65vh - 30px);
    overflow: auto;
}


/* 약속 목록 내보내기 버튼 박스 스타일 */
#appointmentTableListBtnBox {
    /* margin-top: 15px; */
    /* margin-bottom: 10px; */
    text-align: right;
    width: 100%;
    min-width: calc(120px * 13);
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    /* display: flex; */
    /* justify-content: right; */
}

#appointmentTableListBtnBox button {
    font-size: 12px;
    padding: 5px 12px; /* 버튼 내부 여백 */
    margin-left: 8px; /* 버튼 사이의 여백 */
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 4px;
    min-width: 120px; /* 버튼 최소 너비 (텍스트 길이에 맞게 조정) */
    height: 28px; /* 버튼 높이 */
    line-height: normal; /* 버튼 텍스트 수직 정렬 */
}

#appointmentTableListBtnBox button:hover {
    background-color: #e0e0e0; /* 마우스 올렸을 때 배경색 변경 */
    border-color: #bbb;
}

/* 만약 map-mode-control 내부 버튼과 동일한 스타일을 원하신다면,
   해당 스타일(.map-mode-control button)을 복사하거나,
   공통 버튼 클래스를 만들어 적용할 수 있습니다. */


#appointmentTableListBtnBox button a {
    display: inline-block;
    width: 100%;
}



#appointmentTableListBox h3 {
    text-align: center;
}


#appointmentTable {
    min-width: calc(120px * 13);
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 12px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#appointmentTable thead {
    background-color: #007bff;
    color: white;
}

#appointmentTable th, 
#appointmentTable td {
    border: 1px solid #ddd;
    padding: 4px 12px;
}

#appointmentTable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#appointmentTable tbody tr:hover {
    background-color: #e9ecef;
}

#appointmentTable button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#appointmentTable button:hover {
    background-color: #c82333;
}









footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 10px;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #a5a5a5; 
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ebebeb;
}














/* 모달 스타일 */
#appointmentModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1020;
    width: 320px;
}

#appointmentModal h3 {
    margin-top: 0;
    text-align: center;
    font-size: 18px;
}

#appointmentModal input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#appointmentModal button {
    width: 48%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#appointmentModal button:first-of-type {
    background-color: #4CAF50;
    color: white;
}

#appointmentModal button:last-of-type {
    background-color: #f44336;
    color: white;
}





/* 모달 스타일 */
#saveToServerModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1020;
    width: 320px;
}

#saveToServerModal h3 {
    margin-top: 0;
    text-align: center;
    font-size: 18px;
}

#saveToServerModal input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#saveToServerModal button {
    width: 48%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#saveToServerModal button:first-of-type {
    background-color: #4CAF50;
    color: white;
}

#saveToServerModal button:last-of-type {
    background-color: #f44336;
    color: white;
}



/* 모달 스타일 */
#loadFromServerModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1020;
    width: 320px;
}

#loadFromServerModal h3 {
    margin-top: 0;
    text-align: center;
    font-size: 18px;
}

#loadFromServerModal input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#loadFromServerModal button {
    width: 48%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#loadFromServerModal button:first-of-type {
    background-color: #4CAF50;
    color: white;
}

#loadFromServerModal button:last-of-type {
    background-color: #f44336;
    color: white;
}




/* 모달 스타일 */
#securityKeyModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1020;
    width: 320px;
}

#securityKeyModal h3 {
    margin-top: 0;
    text-align: center;
    font-size: 18px;
}

#securityKeyModal input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#securityKeyModal button {
    width: 48%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#securityKeyModal button:first-of-type {
    background-color: #4CAF50;
    color: white;
}

#securityKeyModal button:last-of-type {
    background-color: #f44336;
    color: white;
}






/* 모달 스타일 */
#deleteFromServerModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1020;
    width: 320px;
}

#deleteFromServerModal h3 {
    margin-top: 0;
    text-align: center;
    font-size: 18px;
}

#deleteFromServerModal input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#deleteFromServerModal button {
    width: 48%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#deleteFromServerModal button:first-of-type {
    background-color: #4CAF50;
    color: white;
}

#deleteFromServerModal button:last-of-type {
    background-color: #f44336;
    color: white;
}







/* 모달 스타일 */
#localStorageModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1020;
    width: 775px;
}

#localStorageModal h3 {
    margin-top: 0;
    text-align: center;
    font-size: 18px;
}

#localStorageModal input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#localStorageModal button {
    /* width: 48%; */
    padding: 5px 5px;
    /* margin-top: 10px; */
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 2px;
}

#localStorageModal .slot-actions button {
    /* background-color: #4CAF50; */
    /* color: white; */
    min-width: 100px;
    max-width: 100px;
}

#localStorageModal #closeLocalStorageModalBtn {
    background-color: #f44336;
    color: white;
}













#modalBackground {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010;
}



/* 공지 모달 */

/* 모달 스타일 */
.modal {
    display: block;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* 기존 스타일 유지 */
  }
  
  .modal.show {
    opacity: 1;
    visibility: visible;
  }

  .modal h3 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .modal p {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .modal-content {
    background-color: #fefefe;        
    border: 1px solid #888;    
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }
  
  .close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover {
    color: red;
  }


#myModal .modal-content {
    margin: 10px auto;
    padding: 20px;
    width: 570px;
  }

#myModal .modal-content img {
    width: 100%;
}

#myModal .modal-content a {
    color: #007bff;
}



  @media (max-width: 992px) {
    header {
        height: 40px; 
        display: flex;
        justify-content: space-between;
    }
    


    #appointmentTableListBox {
        margin-top: 5px;
        width: 100%;
        /* height: calc(100vh - 50px - 65vh - 55px); */
        overflow: auto;
    }



    #appointmentTable {
        width: 100%;
        border-collapse: collapse;
        margin-top: 0px;
        font-size: 12px;
        text-align: center;
        background-color: #fff;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }








    .mapOption label:hover {
        background-color: #55b9fb;
        background: linear-gradient(#8ed2ff, #55b9fb);
        color: #ffffff;
    }
    
    
    #VisitCoordinates:hover {
        background: linear-gradient(#ff8e8e, #ff4e4e);
        color: #ffffff;
    }
    
    #VisitCoordinatesKakaoLink:hover {
        background: linear-gradient(#ff8e8e, #ff4e4e);
        color: #ffffff;
    }


    
    #nowLocation {
        /* border: 1px solid red; */
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        position: relative;
    }



    /* 공지 모달 */
    #myModal .modal-content {
        margin: 70px auto;
        width: 70%;
      }

    #myModal .modal-content img {
        width: 90%;
    }

}


@media (max-width: 750px) {   

    #map {
        margin-top: 40px;
        width: 100%;
        height: 65vh;
        max-height: 375px;
    }

    .custom_typecontrol {        
        top: 90px;
    }

    .custom_zoomcontrol {
        top: 130px;
    }

    .mapOption {
        top: calc(375px + 50px - 10px);
    }

    #appointmentTableListBox {                        
        height: calc(100vh - 375px - 50px - 40px - 100px);
        min-height: calc(100vh - 375px - 50px - 40px - 150px);
        overflow: auto;
        /* max-height: calc(100vh - (375px + 50px + 20px)); */
    }

    #appointmentTable{
        width: 600px;
    }

}

