/* refining.css */

/* ── 제련 사이드바 ── */
.refine-box {
    display: flow-root;
    float: left;
    width: 180px;
    border: 1px solid rgb(198, 198, 198);
    border-radius: 3px;
    margin-top: 3px;
}

.refine-box__radio-group label {
    display: block;
    margin-left: 35px;
}

/* ── 레이아웃 ── */
#refinecontainer {
    display: block;
    margin-left: 170px;
    float: left;
}

#refineinfo {
    margin-left: 450px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 10px;
}

/* ── 제련 결과 정보 ── */
.refineresultinfo {
    width: 320px;
    border: 1px solid rgb(198, 198, 198);
    border-radius: 3px;
}

.refineresultinfo:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
    position: fixed;
}

.refineresultinfo:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
    position: fixed;
    margin-top: 70px;
}

#refinerate {
    text-align: center;
}

/* ── 히스토리 ── */
.refinehistory {
    border: 1px solid rgb(198, 198, 198);
    border-radius: 3px;
    width: 425px;
    overflow-y: auto;
    grid-column: 2;
    grid-row: 1 / 4;
    height: 100%;
}

.refinetable {
    text-align: center;
    width: 100%;
}

.refinetable tr:nth-child(even) {
    background-color: rgba(231, 239, 255, 1);
}

/* ── 제련 UI 컨테이너 ── */
.table-container {
    margin: 0 10px;
    border: 1px solid rgb(198, 198, 198);
    width: 260px;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 5px;
}

/* ── 제련 이미지 테이블 ── */
#refineimg {
    width: 260px;
    background-image: url('../images/refining/bg_refining_wait.png');
    border-collapse: separate;
    border-spacing: 3px;
}

#refineimg img {
    padding: 0;
}

/* ── 행 스타일 ── */
.title-row td {
    font-weight: bold;
}

.row-1         { height: 10px; }
.row-1 td      { text-align: center; padding-top: 10px; }
.row-2         { height: 52px; }
.row-3         { height: 85px; }
.row-4         { height: 50px; text-align: center; }
.row-5 td      { text-align: center; }

/* ── 버튼 컨테이너 ── */
.btn-container {
    position: relative;
    width: 46px;
    height: 52px;
}

.btn__bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.btn__icon {
    position: absolute;
    top: 14px;
    left: 10px;
    z-index: 2;
}

.btn__icon--event {
    position: absolute;
    top: 15px;
    left: 3px;
    z-index: 2;
}

.btn__overlay {
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
    position: absolute;
    left: 0;
    margin: 0;
}

/* ── 제련 버튼 ── */
.refine-btn {
    font-size: 12px;
    font-weight: bold;
    width: 95px;
    height: 32px;
    border: 1px solid rgb(102, 110, 113);
    border-radius: 3px;
    background: linear-gradient(to bottom,
        rgb(255, 255, 255) 0%,
        rgb(142, 187, 242) 25%,
        rgb(87, 111, 197) 100%
    );
}

.refine-btn:active {
    background: linear-gradient(to bottom,
        rgb(103, 132, 208) 0%,
        rgb(109, 142, 213) 25%,
        rgb(118, 156, 219) 100%
    );
}

/* ── 라디오 선택 이미지 변경 ── */
input[type="radio"]:checked + label .btn__bg {
    content: url('../images/refining/slot_select_blue0.png');
}
