/* simulator.css */

/* ── 직업 아이콘 ── */
.job__icon {
    opacity: 0.5;
}

.job__icon.active {
    opacity: 1;
}

/* ── 툴팁 ── */
#tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 7px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none;
    transform: translate(-50%, -150%);
    white-space: nowrap;
    display: none;
    z-index: 10;
}

/* ── 메인 컨테이너 ── */
#simulatorContainer {
    margin-left: 200px;
}

#charContainer {
    display: flex;
    clear: both;
    justify-content: space-between;
}

/* ── 캐릭터 정보 ── */
#charInfo {
    float: left;
}

#charInfo table {
    border: 1px solid rgb(206, 206, 206);
    width: 205px;
}

#HSPContainer table {
    border: 0;
}

#HSPContainer table tr td:nth-child(1) {
    width: 55px;
    text-indent: 10px;
}

#HSPContainer table tr td:nth-child(2) {
    text-align: center;
}

/* ── HP/SP/AP 바 ── */
.stat__bar--hp-sp {
    border: 1px solid rgb(206, 206, 206);
    border-radius: 50px;
    background-color: rgba(156, 181, 239, 0.5);
    display: block;
    height: 12px;
}

.stat__bar--ap {
    border: 1px solid rgb(206, 206, 206);
    border-radius: 50px;
    background-color: rgba(255, 73, 49, 0.3);
    display: block;
    height: 12px;
}

/* ── 레벨 컨테이너 ── */
#lvContainer {
    margin: 5px;
    padding: 3px;
    background-color: rgba(231, 231, 239, 1);
    border-radius: 8px;
}

#lvContainer table {
    border: 0;
}

#lvContainer table tr td:nth-child(1) {
    width: 55px;
}

#charName {
    border: 0;
    font-family: "Dotum";
}

/* ── 퀵슬롯 ── */
.quick-slot {
    border: 1px solid rgb(198, 198, 198);
    border-radius: 3px;
    padding: 1px 10px;
    background-image: linear-gradient(to bottom, rgb(247,247,247) 0%, rgb(247,247,247) 50%, rgb(255,255,255) 50%, rgb(255,255,255) 100%);
    background-size: 100% 4px;
    border-collapse: separate;
}

.quick-slot tr td {
    border: 1px solid rgb(198, 198, 198);
    width: 24px;
    height: 24px;
    background-color: white;
    text-align: center;
    font-size: 2px;
    padding: 0;
}

.quick-slot tr td img {
    width: 24px;
    height: 24px;
}

/* ── 장비 컨테이너 ── */
#equipmentContainer {
    text-align: center;
    width: 100%;
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 5px;
    align-items: center;
    justify-content: space-between;
}

.equipment-box {
    width: 150px;
    height: 30px;
    font-size: 12px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid rgb(198, 198, 198);
}

.equipment-box__selected {
    display: flex;
    align-items: center;
}

.equipment-box__selected img {
    width: 24px;
    height: 24px;
    margin: 0 10px;
}

.equipment-box__options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    background-color: white;
    z-index: 10;
}

.equipment-box__option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
}

.equipment-box__option img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.equipment-box__option:hover {
    background-color: rgba(134, 162, 220, 0.3);
}

#leftHand {
    text-align: right;
    direction: rtl;
}

#charImg {
    text-align: center;
    width: 100%;
}

/* ── 스테이터스 ── */
#statusContainer {
    float: left;
    width: 500px;
}

#charStatus {
    float: left;
    clear: both;
}

.status {
    width: 100%;
    border: 1px solid rgba(128, 128, 128, 0.5);
}

.status__blank {
    width: 5px !important;
}

.status__inc {
    color: #adbde7;
    -webkit-text-stroke: 0.5px #6b737b;
    width: 10px;
    text-align: center;
}

.status__bonus-job {
    color: rgba(128, 128, 128, 1);
    text-align: right;
}

.status td {
    width: 30px;
    font-family: "Dotum";
    font-size: 1em;
    text-align: right;
    padding: 1px;
}

/* ── 보더 유틸리티 ── */
.border__top    { border-top:    1px solid rgba(198, 198, 198, 1); }
.border__bottom { border-bottom: 1px solid rgba(198, 198, 198, 1); }
.border__left   { border-left:   1px solid rgba(198, 198, 198, 1); }
.border__right  { border-right:  1px solid rgba(198, 198, 198, 1); }

/* ── 스테이터스 셀 ── */
.status__arithmetic {
    width: 5px !important;
}

.status__background {
    background-color: rgba(240, 240, 240, 0.5);
}

.status__name {
    font-weight: bold;
    text-align: left !important;
}

.status__title {
    text-align: left;
}

.status__bonus {
    width: 12px !important;
    color: rgba(128, 128, 128, 1);
}

.status__script {
    display: none;
}

#charStatus #Tstatus__name {
    background-image: linear-gradient(to bottom, rgb(247,247,247) 0%, rgb(247,247,247) 50%, rgb(255,255,255) 50%, rgb(255,255,255) 100%);
    background-size: 100% 4px;
}

/* ── 스킬 컨테이너 ── */
#skill__container {
    float: left;
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#skill__container.grid {
    grid-template-columns: 1fr;
}

/* ── 직업별 스킬 ── */
.job__container {
    border: 1px solid rgb(198, 198, 198);
    border-radius: 5px;
    padding: 2px;
    width: 550px;
}

.job__name {
    font-weight: bold;
    background-image: linear-gradient(to bottom, rgb(247,247,247) 0%, rgb(247,247,247) 50%, rgb(255,255,255) 50%, rgb(255,255,255) 100%);
    background-size: 100% 4px;
}

.skill__table {
    border: 1px solid rgb(198, 198, 198);
    border-collapse: separate;
    width: 549px;
    margin: 0 auto;
}

.skill__block {
    display: table-cell;
    vertical-align: middle;
    width: 70px;
    height: 60px;
    text-align: center;
    border-radius: 5px;
}

.skill__block:hover {
    background-color: rgba(67, 111, 201, 0.3);
}

.skill__block .skill__name {
    font-size: 11px;
    color: rgb(99, 99, 99);
}

.skill__block .skill__level {
    font-weight: bold;
    font-size: 11px;
    color: rgb(99, 99, 99);
}

.skill__total-points {
    text-align: right;
    background-image: linear-gradient(to bottom, rgb(247,247,247) 0%, rgb(247,247,247) 50%, rgb(255,255,255) 50%, rgb(255,255,255) 100%);
    background-size: 100% 4px;
}

/* ── 스킬 설명 ── */
#skill__description-enable {
    position: absolute;
    margin-left: 450px;
    padding-bottom: 2px;
}

#skill__description {
    width: 280px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid rgb(198, 198, 198);
    padding: 7px;
    line-height: 16px;
}

#delay__description {
    display: block;
    padding: 0;
    background-color: white;
    border-radius: 5px;
    width: 320px;
    border: 1px solid rgb(198, 198, 198);
}

/* ── 딜레이 테이블 ── */
.delay__table-container {
    text-align: center;
}

.delay__table-container table {
    margin: 10px auto;
    width: calc(100% - 20px);
}

.delay__table-container table th {
    background-color: rgba(222, 231, 255, 1);
}

.delay__table-container table th,
.delay__table-container table td {
    border: 1px solid #ADB5D6;
    padding: 5px;
}

.delay__table-container table th:first-child,
.delay__table-container table td:first-child {
    background-color: rgba(222, 231, 255, 1);
    width: 20px;
}

.delay__table-container table th:nth-child(n+2),
.delay__table-container table td:nth-child(n+2) {
    width: 25%;
}
