/* 공통 ============================================================================================================= */
#modalContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 600px;
    z-index: -1; /* 로드 후 9999 로 변경됨 */
}

#modalContainer .modal,
#modalContainer .modal-backdrop {
    position: absolute !important;
}

#modalContainer .modal-backdrop {
    height: 100%;
}

#modalContainer .modal {
    inset: 0
}

#modalContainer .modal-dialog {
    width: 90%;
    left: 5%;
    margin: 0;
}

.modal-body hr {
    margin: 10px 0;
    opacity: 0.75;
    border-top: 2px solid;
}

.modal-content {
    background-color: #150f0f;
    /*opacity: 0.95;*/
    color: #F0E8EA;
}

.modal-header {
    padding: 5px 10px;
}

.modal-header .modal-title {
    font-size: 15px;
}

.modal-body {
    padding: 7px;
}

.modal-footer {
    padding: 5px 7px;
}

.modal-footer > * {
    margin: 0 0 0 10px;
}

.modal-footer .form-check {
    font-size: 14px;
}

.modal-dialog-scrollable .modal-body {
    overflow-x: hidden;
}

.modal-body::-webkit-scrollbar {
    width: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: #ddd;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #666;
}

/* 어빌리티(커맨드), 기타 무브 상세 정보 모달 ======================================================================================================== */
.ability-info-modal-button {
    display: none;
}

.command-metadata-info-modal-button {
    display: none;
}

.other-move-info-modal-button {
    display: none;
}

/*.command-info-container .modal-dialog {*/
/*    transition: transform 100ms ease-out;*/
/*}*/

#abilityInfoModal {
}

.command-info-container .status-effect-info-wrapper {
    margin-bottom: 10px;
}

.command-info-container .ability-info-wrapper {
    display: flex;
    padding: 5px;
    background-color: #3a3a3a;
    position: relative;
}

.command-info-container .ability-info-icon-wrapper {
    width: 13%;
    margin-right: 4%;
}

.command-info-container.no-icon .ability-info-icon-wrapper {
    width: 0;
    margin-right: 0;
}

.command-info-container .ability-info-text-wrapper {
    width: 82%;
}

.command-info-container.no-icon .ability-info-text-wrapper {
    width: 100%;
}

.command-info-container .ability-info-name{ /* 어빌리티 이름 */
    font-size: 13px;
    margin-bottom: 5px;
    background-color: #212121;
    padding: 2px;
    text-indent: 2px;
    border-radius: 3px;
    font-weight: 600;
}

.command-info-container .ability-info-text-wrapper .row > * {
    padding-right: 0;
}

.command-info-container .do-union-summon-check-wrapper {
    font-size: 12px;
    font-weight: 500;
    height: 20px;
    margin-top: 7px;
}

.command-info-container .form-check {
    position: relative;
    left: 140px;
}

.command-info-container .ability-info-text {
    font-size: 12px;
    line-height: 1.4;
}

.command-info-container .ability-info-text .status-info-icon-inline {
    width: 19px;
}

.command-info-container .ability-info-text .damage-info {
    margin-bottom: 2px;
}

.command-info-container .ability-info-text .additional-info {
    display: block;
    margin-top: 2px;
}

.command-info-container .ability-info-text.cooldown {
    text-align: right;
    font-weight: bold;
    margin-top: 3px;
}

.command-info-container .ability-info-icon {
    width: 100%;
}

.modal-content .modal-footer .show-status-effect-details-switch {
    margin: 0 auto 0 5px;
}

/* 상태효과 모달 ===================================================================================================== */

#statusInfoModal .modal-body {
    padding: 3px;
}

/* 스테이터스 */
.status-info-wrapper {
    text-align: center;
}

.status-info-wrapper .estimated-atk-wrapper {
    font-size: 11px;
}

.estimated-atk-wrapper .actor-estimated-atk .value {
    font-size: 13px;
}

.status-info-wrapper .estimated-atk-wrapper button {
    font-size: 11px;
}

.status-info-wrapper #estimatedAtkCollapse {
    font-size: 10px;
}

.status-info-wrapper .actor-name {
    font-size: 14px;
    font-weight: 200;
}

/* 상태효과 */
.status-effect-info-wrapper .status-info {
    display: flex;
    padding: 2.5px 1px;
    font-size: 9.5px;
    line-height: 1.4;
    font-weight: 300;
}

.status-effect-info-wrapper .status-info .status-name {
    margin-bottom: 1px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
}

.status-effect-info-wrapper .status-info.omen {
    padding: 2px 4px 3px;
    display: block;
    font-size: 10px;
    margin-bottom: 5px;
}

.status-effect-info-wrapper .status-info.omen .status-name {
    font-size: 13px;
    margin-top: 2px;
    text-indent: 3px;
    font-weight: normal;
}

.status-effect-info-wrapper .status-info.status-buff {
    background-color: rgba(52, 34, 32, 0.6);
    border-top: 1px #ca7652 solid;
    border-bottom: 1px #ca7652 solid;
}

.status-effect-info-wrapper .status-info.status-debuff {
    background-color: rgba(28, 46, 56, 0.8);
    border-top: 1px #7aaaaa solid;
    border-bottom: 1px #7aaaaa solid;
}

.status-effect-info-wrapper .status-info.status-display_passive {
    background-color: rgba(50, 50, 50, 0.8);
    border-top: 1px #555555 solid;
    border-bottom: 1px #555555 solid;
}

.status-effect-info-wrapper .omen.incant-attack {
    background-color: rgba(100, 30, 70, 0.3);
    border-top: solid 1px rgb(200, 60, 140);
    border-bottom: solid 1px rgb(200, 60, 140);
}

.status-effect-info-wrapper .omen.inline.incant-attack {
    background-color: rgba(200, 60, 140, 0.5);
    border: none;
}

.status-effect-info-wrapper .omen.hp-trigger {
    background-color: rgba(100, 100, 100, 0.3);
    border-top: solid 1px rgb(200, 200, 200);
    border-bottom: solid 1px rgb(200, 200, 200);
}

.status-effect-info-wrapper .omen.inline.hp-trigger {
    background-color: rgba(100, 100, 100, 0.5);
    border: none;
}

.status-effect-info-wrapper .omen.charge-attack{
    background-color: rgba(100, 100, 30, 0.3);
    border-top: solid 1px rgb(200, 200, 60);
    border-bottom: solid 1px rgb(200, 200, 60);
}

.status-effect-info-wrapper .omen.inline.charge-attack {
    background-color: rgba(200, 200, 60, 0.5);
    border: none;
}

.status-effect-info-wrapper .omen.inline {
    padding: 1px;
    margin: 0 1px;
    font-weight: 500;
}

.status-modal-button {
    display: none;
}

.status-effect-info-wrapper .status-info-icon-wrapper {
    width: 8%;
    margin-right: 1%;
}

.status-effect-info-wrapper .status-info-icon {
    width: 100%;
    position: relative;
    top: 2px;
}

.status-effect-info-wrapper .status-info-icon-inline {
    width: 20px;
}

.status-effect-info-wrapper .status-info-icon-inline.small {
    width: 12px;
}

.status-effect-info-wrapper .status-info .status-info-text {
    position: relative;
    width: 91%;
}

.status-effect-info-wrapper .status-info .additional-info {
    display: block;
    margin-top: 1px;
}

.status-effect-info-wrapper .status-info .status-info-duration {
    font-size: 10px;
}

.status-effect-info-wrapper .status-info .removable-info {
    font-size: 10px;
    margin-left: 2px;
    font-weight: 500 !important;
}


/* 포션 모달 ========================================================================================================== */
.potion-icon-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
}

.potion-icon-wrapper {
    position: relative;
    padding: 5px;
    width: 95px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
}

#potionModal .potion-overlay {
    height: 75%;
}

.potion-icon-wrapper.selected {
    border: 2px solid yellow;
}

.potion-icon-wrapper img {
    width: 100%;
}

.potion-detail-container {
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}

.potion-info {
}

.potion-target-radio-container {
    display: none;
    margin-top: 10px;
}

.potion-target-radio-container .form-check-inline {
    font-size: 14px;
}


#potionModal .modal-footer {
    margin-top: 10px;
}

/* 메뉴 모달 ========================================================================================================== */

#menuModal .modal-body {
    font-size: 12px;
}

.volume-range-container .volume-range {
    height: 1rem; /* bs 1.5rem */
    padding: 0 10px;
}

.volume-range-container-header {
    font-size: 14px;
    background-color: #333;
    padding: 3px 6px;
    border-radius: 5px;
    margin-bottom: 3px;
}

/* 채팅 모달 ========================================================================================================== */
#chatModal .chat-message-container {
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-message-container .chat-message {
    line-height: 1.3;
    padding: 2px 0;
    font-size: 12px;
}

.chat-message-container .chat-message .username {
    font-size: 13px;
}

.chat-message-container .chat-message .time {
    font-size: 11px;
}

#chatModal #shortMessagePanel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    padding: 4px;
    height: 40px;
    border-top: 1px solid #dee2e6;
}

#chatModal .short-message-button {
    font-size: 12px;
    flex-shrink: 0;
}

/* 채팅 숏메시지 스크롤바 */
#shortMessagePanel::-webkit-scrollbar {
    height: 5px;
}

#shortMessagePanel::-webkit-scrollbar-track {
    background: darkgray;
}

#shortMessagePanel::-webkit-scrollbar-thumb {
    background: #ced4da;
}

#shortMessagePanel::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* 튜토리얼 ========================================================================================================== */

#tutorialModal .modal-title {
    font-weight: bold;
}

#tutorialModal #tutorialContentWrapper {
    padding: 5px 15px;
}

/* 비디오 래퍼 및 진행도 바 */
.tutorial-video-wrapper {
    position: relative;
    width: 90%;
    left: 5%;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tutorial-video-wrapper video {
    width: 100%;
    display: block;
    pointer-events: none;
}

.tutorial-video-progress-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.tutorial-video-progress-bar {
    height: 100%;
    width: 0%;
    background: #0d6efd;
    transition: width 0.1s linear;
}

#tutorialModal ul {
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.3;
    margin: 0
}

#tutorialModal ul li {
    margin-bottom: 5px;
}

#tutorialModal ul li .omen-text {
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.5;
}

/* 튜토리얼 페이지 전환 애니메이션 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tutorial-page-active {
    animation: slideInRight 0.3s ease-out forwards;
}

/* 팝 오버 ============================================================================================================= */
#container .command-popover {
    background: transparent;
    color: white;
}

/*.command-popover.popover-0 .popover-body {*/
/*    transform: translateX(15%);*/
/*}*/
/*.command-popover.popover-1 .popover-body {*/
/*    transform: translateX(30%);*/
/*}*/
/*.command-popover.popover-2 .popover-body {*/
/*    transform: translateX(50%);*/
/*}*/
/*.command-popover.popover-3 .popover-body {*/
/*    transform: translateX(30%);*/
/*}*/

.command-popover .popover-body {
    min-width: 250px;
    background-color: #150f0f;
    padding: 5px;
    border-radius: 5px;
}

.command-popover .popover-arrow {
    /* auto-flip 제거로 인한 absolute, left 속성 누락 직접 설정 */
    /*position: absolute;*/
    /*left: 0;*/
}

.command-popover .popover-arrow::after {
    border-top-color: #150f0f !important;
    opacity: 0.95 !important;
}

.command-popover .command-info-container {
    color: white;
}

.command-popover .status-info-icon-inline {
    width: 20px;
}

.command-popover .move-popover-close {
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 15px;
    padding: 3px 5px;
    cursor: pointer;
}


