/* =============================================
   클래스 코드 크게 보기 — js/modules/teacher/classCodeDisplay.js
   프로젝터로 교실 뒤에서도 읽히게 크게. 앱 대화상자(20000) 아래, 채팅·메모 패널 위
   ============================================= */

.class-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s ease;
}

.class-code-btn:hover,
.class-code-btn.active {
    background: rgba(74, 158, 255, 0.18);
}

.class-code-btn {
    position: relative;
}

/* 코드 없음은 아이콘을 흐리게 (열림/닫힘은 아이콘 모양으로만 구분) */
.class-code-btn.no-code i { opacity: 0.45; }

.class-code-overlay {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 10, 16, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.class-code-overlay[hidden] {
    display: none;
}

.class-code-panel {
    position: relative;
    width: min(800px, 100%);
    padding: 36px 40px 30px;
    border-radius: 18px;
    background: #141a22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    color: #e8edf3;
    text-align: center;
}

/* 닫기 버튼은 공용 .close-btn (마우스를 올리면 빨간색) */

.class-code-label {
    font-size: 20px;
    color: #9fc3ff;
    letter-spacing: 0.04em;
}

.class-code-value {
    margin: 10px 0 8px;
    font-family: Consolas, "D2Coding", "Courier New", monospace;
    font-size: clamp(52px, 7vw, 100px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.12em;
    /* 마지막 글자 뒤 간격만큼 왼쪽으로 당겨 가운데 맞춤 */
    margin-right: -0.12em;
    color: #fff;
    cursor: copy;
    user-select: all;
    transition: color 0.2s ease;
    /* 0 과 O 구분 */
    font-variant-numeric: slashed-zero;
}

.class-code-value.copied {
    color: #7ee2a8;
}

.class-code-value.is-empty {
    color: #6b7785;
    cursor: default;
}

.class-code-address {
    font-size: 18px;
    color: #b8c4d2;
    margin-bottom: 22px;
}

.class-code-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 18px;
    margin-bottom: 6px;
}

.class-code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.class-code-dot.is-open { background: #34c77b; box-shadow: 0 0 8px rgba(52, 199, 123, 0.7); }
.class-code-dot.is-closed { background: #e5534b; }

.class-code-small {
    margin: 0 0 0 6px !important;
    padding: 4px 14px !important;
    min-height: 0 !important;
    font-size: 14px !important;
}

.class-code-actions .control-button {
    margin: 0;
}

@media (max-width: 600px) {
    .class-code-panel {
        padding: 30px 18px 22px;
    }
}
