a {
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none;
}

.error-box {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.375rem;
    text-align: center;
}

/* overlay 배경 */
#global-loading {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 스피너 */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 5px solid #ccc;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lang-select-wrap {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 44px;
}

/* 실제 select 는 투명하게 해 원형 버튼처럼 보이게 함 */
#langSelect {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;                 /* 네이티브 드롭다운 사용 */
    cursor: pointer;
}

/* 원형 표시 (현재 언어 플래그) */
.lang-flag {
    position: absolute;
    inset: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;           /* 플래그 이모지 크기 */
    line-height: 1;
    user-select: none;
    pointer-events: none;      /* 클릭은 select 로 전달 */
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.lang-select-wrap:focus-within .lang-flag {
    outline: 2px solid #4c9ffe;
    outline-offset: 2px;
}

/* 고대 브라우저 대비 약간의 여백 */
option { padding: 4px 8px; }