/* popup_list.css, popup_new.css 통합예정 */

/* 애니메이션 모음 */
@keyframes moveDownFadeIn {
    0% {
        transform: translate(-50%, -53%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}
.popup_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.popup_back,
.popup_alert_back,
.popup_st_back,
.popup_upload_back,
.popup_floor_back,
.popup_drone_back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* 숨기기 */
    z-index: -1;
    opacity: 0;
}

.del_show,
.alert_show,
.popup_show {
    opacity: 1;
    z-index: 1000;
}



.alert_msg_show {
    opacity: 1;
    z-index: 2000;
}

/* 삭제, 경고 pop up - 시작 */
.popup_del_window,
.del_popup,
.popup_alert_window,
.alert_popup {
    width: 100%;
    height: 100%;
}

.del_popup,
.alert_popup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 435px;
    height: 230px;
    transform: translate(-50%, -50%);
}

.del_content,
.alert_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.del_content p,
.alert_content p {
    text-align: center;
}

.del_content .btn_box,
.alert_content .btn_box {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.del_content .btn_box button,
.alert_content .btn_box button {
    padding: 10px 15px;
    border-radius: 21px;
    font-weight: bold;
    cursor: pointer;
}

.popup_article {
    width: 100%;
    height: 100%;
}

.popup_content_section {
    height: 100%;
    padding: 30px;
}

.popup_content_top_div {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 5%;
}

.popup_top_div {
    height: 5%;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.popup_close_box {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 5%;
}

.popup_close_item {
    align-self: flex-end;
}

.popup_close_btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 35px;
    max-width: 120px;
    background-color: var(--btn-cancel);
    color: white;
    border: none;
    cursor: pointer;
}

.popup_gray_line {
    display: flex;
    width: 90%;
    margin: 20px auto;
}

.popup_title {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    height: 80px;
    font-weight: 600;
    align-items: center;
    padding: 30px 40px 20px 40px;
    border-bottom: 1px solid #EBEBEB;
}

.popup_title div {
    min-height: 30px;
}

/* list pop up - 끝 */

/* .popup_content_section .btn_box 시작 */
.popup_content_section .btn_box {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

/* .popup_content_section .btn_box 끝 */

/* popup_content 시작 */
.popup_content_section {
    display: flex;
    flex-direction: column;
}

.popup_close_item {
    align-self: flex-end;
}
/* popup_content 끝 */

/* popup_container 시작 */
.popup_container {
    margin: 30px;
}
/* popup_container 끝 */

/* popup_table_container 시작 */
.popup_table_container {
    margin: 40px 60px 15px 60px;
}
/* popup_table_container 끝 */

.popup_cancel_btn {
    width: 35px;
    height: 35px;
    color: #222222;
    border-top-right-radius: 8px;
    border: none;
}

.popup_cancel_btn img{
    width: 24px;
    height: 24px;
}

/* alert 팝업 */
.alert_popup_back,
.input_popup_back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: -1;
    opacity: 0;
}

.alert_msg_show {
    opacity: 1;
    z-index: 2000;
    transition: all 0.5s;
}

.alert_popup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 435px;
    height: 230px;
    transform: translate(-50%, -50%);
}

.alert_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.alert_content p {
    text-align: center;
}

.alert_content .btn_box {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.alert_content .btn_box button {
    padding: 8px 30px;
    border-radius: 4px;
    cursor: pointer;
}

/* alert 팝업 끝 */

/* -------------- */
.confirm_popWrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    padding: 50px;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 1000;
    background-color: transparent; /* 회색 투명 배경 */
}

/* 투명 배경을 위한 클래스 */
.confirm_popWrap.transparent {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.4);
}

.confirm_popup {
    position: relative;
    width: 443px;
    height: 149px;
    font-size: 14px;
    background-color: var(--color-white);
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    border-radius: 10px;
    padding: 30px 40px;
}

.confirm_popup .text {
    margin-bottom: 35px;
    display: inline-block;
}

.confirm_popWrap .confirm_popup_btn {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm_popup .confirm_btn_sel {
    font-weight: 700;
    padding: 10px 25px;
    border: 2px solid var(--btn-permit);
    border-radius: 8px;
    background-color: var(--btn-permit);
    color: white;
    cursor: pointer;
    font-size: 16px;
    outline: none;
}

.confirm_popup .confirm_btn_cancel {
    font-weight: 700;
    padding: 10px 25px;
    border: 2px solid var(--btn-cancel);
    border-radius: 8px;
    background-color: white;
    color: var(--btn-cancel);
    cursor: pointer;
    font-size: 16px;
    outline: none;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.modal_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    width: 500px;
    min-width: 500px;
    max-width: 1200px;
    min-height: 300px;
    border-radius: 12px;
    animation: moveDownFadeIn 0.4s;
}

.popup_input_div {
    width: 100%;
    height: 80%;
    padding: 5px 40px 20px 40px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.popup_input_div div .popup_input_div_label {
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 700;
    min-height: 19px;
    display: inline-block;
}

.popup_input_div > div {
    padding: 10px 0;
}

.popup_input_div > div > div {
    display: flex;
    align-items: center;
}

.popup_input_div .common_field input {
    width: 100%;
    outline: none;
}

.middle_modal {
    width: 600px;
}

.wide_modal {
    /* width: 100%; */
    width: 1200px;
}

.type_select {
    width: 100%;
    height: 100%;
    padding: 5px 10px;
    outline: none;
    border: 1px solid gray;
}

.popup_btn_div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 5px 40px 30px 40px;
}