/* tools.html — loading/content 전환 */
#tools-loading { display: block; }
#tools-content  { display: none; }
#tools-footer   { display: none; }

body.tools-enabled #tools-loading { display: none; }
body.tools-enabled #tools-content  { display: block; }
body.tools-enabled #tools-footer   { display: block; }

/* 로딩 플레이스홀더 */
.tools-loading-wrap {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #000d1a 0%, #001F3F 100%);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* 계산기 섹션 기본 여백 */
.tools-section {
    padding: 80px 0;
    min-height: 400px;
}

/* 개별 계산기 — JS가 style.display로 ON/OFF */
.calc-section { display: none; }

/* 공개된 계산기 없을 때 메시지 */
.tools-empty {
    display: none;
    text-align: center;
    padding: 80px 0;
    color: #aaa;
    font-size: 16px;
}

/* 계산기 플레이스홀더 */
.calc-placeholder {
    text-align: center;
    padding: 60px 40px;
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
    margin-bottom: 32px;
    background: #fafafa;
}

.calc-placeholder-icon { font-size: 48px; margin-bottom: 16px; }
.calc-placeholder-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; }
.calc-placeholder-desc  { font-size: 15px; color: #aaa; margin: 0; }

/* 관리자 플로팅 버튼 */
.admin-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(0, 31, 63, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    cursor: pointer;
    z-index: 900;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-float-btn:hover {
    background: rgba(0, 31, 63, 0.6);
    color: rgba(255, 255, 255, 0.7);
}

/* 관리자 플로팅 패널 */
.admin-float-panel {
    display: none;
    position: fixed;
    bottom: 74px;
    right: 24px;
    width: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    padding: 20px;
    z-index: 901;
    font-family: 'Noto Sans KR', sans-serif;
}

.admin-float-panel.is-open { display: block; }

.admin-float-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.admin-float-title { font-size: 14px; font-weight: 700; color: #001F3F; }

.admin-float-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #aaa;
    padding: 0;
    line-height: 1;
    font-family: inherit;
}

.admin-float-close:hover { color: #333; }

/* 비밀번호 입력 */
.admin-float-pw-wrap {
    position: relative;
    margin-bottom: 14px;
}

.admin-float-input {
    width: 100%;
    padding: 9px 38px 9px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.admin-float-input:focus { border-color: #FF6B35; }

.btn-eye-sm {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.45;
    padding: 2px;
    line-height: 1;
    transition: opacity 0.15s;
}

.btn-eye-sm:hover { opacity: 1; }

/* 계산기 행 */
.admin-float-list { margin-bottom: 4px; }

.admin-float-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 7px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
}

.admin-float-row:last-child { border-bottom: none; }
.admin-float-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }

.admin-float-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* btn-sm, btn-on-sm, btn-off-sm (tools-admin.css 와 공유) */
.btn-sm {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.btn-sm:hover { opacity: 0.8; }
.btn-on-sm  { background: #001F3F; color: #fff; }
.btn-off-sm { background: #FF6B35; color: #fff; }

/* badge */
.badge-on  { background: #d1fae5; color: #065f46; }
.badge-off { background: #fee2e2; color: #991b1b; }

/* 메시지 */
.admin-float-msg { font-size: 13px; min-height: 18px; text-align: center; margin-top: 8px; }
.admin-msg-ok  { color: #065f46; }
.admin-msg-err { color: #991b1b; }
