/* 전체 탭 콘텐츠 스타일 */
.ohaeng-all-content {
    display: none !important; /* 기본 숨김, active 클래스로 표시 */
    flex-direction: column;
    gap: 0;
}

.ohaeng-all-content.active {
    display: flex !important; /* active일 때만 flex로 표시 */
}

.ohaeng-all-section {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0;
    background-color: var(--bg-primary);
    page-break-inside: avoid;
    margin-bottom: 20px;
}

.ohaeng-all-section:last-child {
    margin-bottom: 0;
}

.ohaeng-all-section-title {
    margin: 0;
    padding: 15px 20px 12px 20px;
    border-bottom: 2px solid var(--link-color);
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.ohaeng-all-section-content {
    margin: 0;
    padding: 15px 20px 20px 20px;
    color: var(--text-primary);
}

/* 일간 강약 카드 */
.dayGanStrength-card {
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    background-color: var(--bg-primary);
}

.dayGanStrength-card.strength-strong {
    border-left: 4px solid #e74c3c;
}

.dayGanStrength-card.strength-weak {
    border-left: 4px solid var(--link-color);
}

.dayGanStrength-card.strength-neutral {
    border-left: 4px solid var(--bg-gray);
}

.dayGanStrength-level {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.dayGanStrength-details {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.dayGanStrength-details div {
    margin-bottom: 5px;
}

.dayGanStrength-explanation {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 용신 카드 */
.yongshen-card {
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    background-color: var(--bg-primary);
}

.yongshen-main {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.yongshen-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.yongshen-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.yongshen-type {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 3px 8px;
    background-color: var(--bg-secondary);
    display: inline-block;
    border-radius: 3px;
}

.yongshen-xishen,
.yongshen-jishen,
.yongshen-gushen {
    margin-bottom: 10px;
}

.yongshen-explanation {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 오행 분포 표 */
.fiveElements-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    background-color: transparent;
    margin: 0 auto;
}

.fiveElements-table th,
.fiveElements-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: center;
    background-color: transparent;
    color: var(--text-primary);
}

.fiveElements-table thead th {
    background-color: transparent;
    font-weight: bold;
    font-size: 13px;
    color: var(--text-primary);
}

.fiveElements-bar-container {
    width: 100%;
    background-color: #888;
    /* border: 1px solid #777; */
    height: 20px;
    position: relative;
}

.fiveElements-bar {
    height: 100%;
    min-width: 2px;
    transition: width 0.3s ease;
}

/* 십성 표 */
.tenGods-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    background-color: transparent;
    margin: 0 auto;
}

.tenGods-table th,
.tenGods-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    background-color: transparent;
    color: var(--text-primary);
}

.tenGods-table thead th {
    background-color: transparent;
    font-weight: bold;
    font-size: 13px;
    color: var(--text-primary);
}

/* 십이운성 표 */
.twelveFortune-container {
    padding: 15px;
}

.twelveFortune-dayGan {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.twelveFortune-saju,
.twelveFortune-all {
    margin-bottom: 20px;
}

.twelveFortune-saju h5,
.twelveFortune-all h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.twelveFortune-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    background-color: transparent;
    margin: 0 auto;
}

.twelveFortune-table th,
.twelveFortune-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    background-color: transparent;
    color: var(--text-primary);
}

.twelveFortune-table thead th {
    background-color: transparent;
    font-weight: bold;
    font-size: 13px;
    color: var(--text-primary);
}

/* 재물 구조 분석 */
.wealthStructure-container {
    padding: 15px;
}

.wealthStructure-section {
    margin-bottom: 20px;
}

.wealthStructure-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.wealthStructure-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    background-color: transparent;
    margin: 0 auto;
}

.wealthStructure-table th,
.wealthStructure-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    background-color: transparent;
    color: var(--text-primary);
}

.wealthStructure-table thead th {
    background-color: transparent;
    font-weight: bold;
    font-size: 13px;
    color: var(--text-primary);
}

.wealthStructure-info {
    padding: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.wealthStructure-info div {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.wealthStructure-info div:last-child {
    margin-bottom: 0;
}

/* 식신·상관 구조 분석 */
.shishenShangguanStructure-container {
    padding: 15px;
}

.shishenShangguanStructure-section {
    margin-bottom: 20px;
}

.shishenShangguanStructure-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.shishenShangguanStructure-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    background-color: transparent;
    margin: 0 auto;
}

.shishenShangguanStructure-table th,
.shishenShangguanStructure-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    background-color: transparent;
    color: var(--text-primary);
}

.shishenShangguanStructure-table thead th {
    background-color: transparent;
    font-weight: bold;
    font-size: 13px;
    color: var(--text-primary);
}

.shishenShangguanStructure-info {
    padding: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.shishenShangguanStructure-info div {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.shishenShangguanStructure-info div:last-child {
    margin-bottom: 0;
}

/* 직업 구조 분석 */
.careerStructure-container {
    padding: 15px;
}

.careerStructure-section {
    margin-bottom: 20px;
}

.careerStructure-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.careerStructure-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    background-color: transparent;
    margin: 0 auto;
}

.careerStructure-table th,
.careerStructure-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    background-color: transparent;
    color: var(--text-primary);
}

.careerStructure-table thead th {
    background-color: transparent;
    font-weight: bold;
    font-size: 13px;
    color: var(--text-primary);
}

.careerStructure-info {
    padding: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 10px;
}

.careerStructure-info div {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.careerStructure-info div:last-child {
    margin-bottom: 0;
}

/* 가족 관계 분석 */
.familyRelationships-container {
    padding: 15px;
}

.familyRelationships-section {
    margin-bottom: 20px;
}

.familyRelationships-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.familyRelationships-info {
    padding: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

.familyRelationships-info div {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.familyRelationships-info div:last-child {
    margin-bottom: 0;
}

.familyRelationships-info strong {
    color: var(--text-primary);
    font-weight: bold;
}

/* 관계 분석 */
.relationships-container {
    padding: 15px;
}

.relationships-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.relationships-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.relationships-section div {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 공망 */
.kongwang-container {
    padding: 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    margin-bottom: 15px;
}

.kongwang-container h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.kongwang-zhi {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
}

.kongwang-explanation {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 신살 */
.shensha-container {
    padding: 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.shensha-container h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.shensha-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shensha-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.shensha-list li:last-child {
    border-bottom: none;
}

.shensha-list li strong {
    color: var(--text-primary);
    margin-right: 8px;
}

.window-panel {
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    margin-bottom: 20px;
    overflow: visible; /* hidden에서 visible로 변경: 내용이 잘리지 않도록 */
}

.window-panel-header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 15px;
    border-bottom: 1px solid var(--bg-tertiary);
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-panel-body {
    padding: 15px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    /* 높이 제한 없음: 전체 내용이 보이도록 */
}

/* 레이아웃 그리드 (기존 2단) */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* 3단 레이아웃 그리드 (권장 방안) */
.layout-grid-3col {
    display: grid;
    grid-template-columns: 300px 1fr 1fr; /* 데스크톱: 3단 (고정 너비 + 반응형) */
    gap: 20px;
    margin-bottom: 20px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* 좌측 1단 (레이어) */
.vertical-section-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    /* max-height 제거: 생년월일시 영역 전체가 보이도록 */
    padding-right: 10px;
    background-color: var(--bg-primary);
    border-right: 1px solid var(--bg-tertiary);
}

/* 고객관리 레이어 상단 user_menu 영역 */
.client-layer-user-menu {
    background-color: var(--bg-secondary, #f8f9fa);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    padding: 15px;
    margin-bottom: 15px;
}

.client-layer-user-menu .user_menu_header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.client-layer-user-menu .user_greeting {
    font-size: 14px;
    color: var(--text-primary, #333);
    flex: 1;
}

.client-layer-user-menu .user_level {
    font-weight: bold;
    color: var(--link-color, #007bff);
}

.client-layer-user-menu .user_header_buttons {
    display: flex;
    gap: 8px;
}

.client-layer-user-menu .user_header_btn {
    padding: 6px 12px;
    font-size: 12px;
    background-color: var(--button-bg, #007bff);
    color: var(--button-text, #fff);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.client-layer-user-menu .user_header_btn:hover {
    background-color: var(--link-color, #0056b3);
}

/* 고객관리 레이어 내 서비스 사용 정보 */
.client-layer-user-menu .service-usage-info {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 10px;
    background-color: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    font-size: 12px;
}

/* 중앙 2단 */
.vertical-section-center {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 우측 3단 */
.vertical-section-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 레이어 토글 버튼 */
.layer-toggle-btn {
    position: fixed;
    top: 150px; /* top-bar 아래 */
    left: 0;
    z-index: 1000;
    padding: 10px 5px; /* 가로폭 좁게, 세로로 길게 */
    background-color: #0a82d288;
    color: #fff;
    border: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
    display: none; /* 데스크톱에서는 숨김 */
    transition: background-color 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* min-width: 50px; */
    width: 31px;
}

.layer-toggle-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.layer-toggle-icon {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.layer-toggle-text {
    display: block;
    text-align: center;
    font-size: 16px;
    /* font-weight: bold; */
    color: #fff;
    /* line-height: 2; */
    writing-mode: vertical-rl; /* 세로 텍스트 (오른쪽에서 왼쪽으로) */
    text-orientation: upright; /* 글자가 세로로 똑바로 서도록 */
    letter-spacing: 0.4em; /* 글자 간격 */
}

/* 레이어 오버레이 */
.layer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.layer-overlay.active {
    display: block;
}

/* 태블릿 반응형 (방안 B: 레이어 방식) */
@media (min-width: 769px) and (max-width: 1200px) {
    .layout-grid-3col {
        grid-template-columns: 1fr 1fr; /* 2단 구성 */
    }
    
    .layer-toggle-btn {
        display: block; /* 토글 버튼 표시 */
    }
    
    .vertical-section-left {
        position: fixed;
        top: 55px; /* top-bar 높이 */
        left: -320px; /* 기본 숨김 */
        width: 300px;
        height: calc(100vh - 55px);
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        /* max-height 제거: 생년월일시 영역 전체가 보이도록 */
    }
    
    /* 태블릿에서 좌측 레이어 내부 패널 높이 제한 제거 */
    .vertical-section-left .window-panel {
        overflow: visible;
    }
    
    .vertical-section-left.active {
        left: 0; /* 열림 */
    }
    
    .vertical-section-right {
        grid-column: 2; /* 중앙과 합침 */
    }
    
    /* 태블릿에서 메모 입력 창이 레이어 스크롤바보다 위에 표시되도록 */
    .consultation-form-modal {
        z-index: 10001 !important;
    }
    
    .consultation-form-content {
        z-index: 10002 !important;
    }
}

/* 모바일 반응형 (방안 B: 레이어 방식) */
@media (max-width: 768px) {
    .layout-grid-3col {
        grid-template-columns: 1fr; /* 1열 배치 */
    }
    
    .layer-toggle-btn {
        display: block; /* 토글 버튼 표시 */
        top: 55px; /* top-bar 높이에 맞춤 */
    }
    
    .vertical-section-left {
        position: fixed;
        top: 55px;
        left: -100%; /* 기본 완전 숨김 */
        width: 280px;
        max-width: 85vw; /* 화면 너비의 85% */
        height: calc(100vh - 55px);
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        /* max-height 제거: 생년월일시 영역 전체가 보이도록 */
    }
    
    .vertical-section-left.active {
        left: 0; /* 열림 */
    }
    
    /* 모바일에서 좌측 레이어 내부 패널 높이 제한 제거 */
    .vertical-section-left .window-panel {
        overflow: visible;
    }
    
    /* 레이어 열림 시 리포트 영역 스크롤 방지 */
    body.layer-open {
        overflow: hidden;
    }
}

/* 세로 배치 영역 */
.vertical-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 출력 버튼 영역 */
.output-buttons {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    justify-content: center;
}

.output-btn {
    padding: 8px 16px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
    cursor: pointer;
    font-size: 14px;
}

.output-btn:hover {
    background-color: var(--bg-secondary);
}

.output-btn.secondary {
    background-color: var(--bg-tertiary);
    border-color: var(--bg-tertiary);
}

.output-btn.secondary:hover {
    background-color: var(--bg-secondary);
}

/* 데스크탑 프로그램 추가 스타일 */
.program-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--link-color);
}

/* 세로 배치 영역 */
.vertical-section-1 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vertical-section-2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 윈도우 패널 내부 스타일 */
.panel-content {
    min-height: 200px;
    /* 높이 제한 없음: 전체 내용이 보이도록 */
}

.panel-placeholder {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* 사주팔자 표시 스타일 (세로형) */
.saju-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.saju-column-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.saju-ganzhi-vertical {
    width: 100%;
    max-width: 80px;
    padding: 20px 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.saju-gan {
    font-size: 3.5em;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: none;
    line-height: 1.2;
    margin-bottom: 10px;
}

.saju-zhi {
    font-size: 3.5em;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: none;
    line-height: 1.2;
}

/* 사주팔자 표시 영역 */
#saju-display {
    display: none;
}

/* 입력 정보 표시 */
.saju-input-info {
    font-size: 0.75em;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 0;
    margin-bottom: 10px;
}

/* 사주팔자 테이블 */
.saju-display-wrapper {
    text-align: center;
    padding: 20px;
}

.saju-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color: transparent;
}

.saju-table th,
.saju-table td {
    border: 1px solid var(--border-color);
    padding: 15px 10px;
    text-align: center;
    background-color: transparent;
    color: var(--text-primary);
}

.saju-table th {
    font-size: 0.9em;
    color: var(--text-primary);
    font-weight: normal;
    background-color: transparent;
}

.saju-gan-cell {
    font-size: 3em;
    font-weight: bold;
    color: var(--text-primary);
    min-height: 60px;
    vertical-align: middle;
}

.saju-zhi-cell {
    font-size: 3em;
    font-weight: bold;
    color: var(--text-primary);
    min-height: 60px;
    vertical-align: middle;
}

.saju-hidden-gan-cell {
    font-size: 1.0em;
    color: var(--text-secondary);
    padding: 7px;
    vertical-align: middle;
}

.saju-column-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* 생년월일시 입력 폼 */
#saju-input-form {
    padding: 15px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    /* border-radius: 5px; */
    border: 1px solid var(--bg-tertiary);
    margin-bottom: 15px;
}

.saju-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.saju-input-label {
    display: block;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.saju-input-select {
    width: 100%;
    padding: 5px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.saju-radio-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.saju-radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.saju-radio-text {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.saju-leapmonth-select {
    padding: 5px;
}

.saju-calculate-btn {
    flex: 1;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    /* border-radius: 5px; */
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.saju-calculate-btn:hover {
    background: #2980b9;
}

/* 이름 입력 필드 */
.saju-input-text {
    width: 100%;
    padding: 5px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
}

.saju-input-text:focus {
    outline: none;
    border-color: #3498db;
}

/* 고객 선택 영역 */
.client-select-area {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--bg-tertiary);
}

.client-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.client-select-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.client-select {
    flex: 1;
    min-width: 150px;
    padding: 5px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
}

.client-load-btn {
    padding: 6px 15px;
    background: #757577;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.client-load-btn:hover {
    background: #838583;
}

/* 고객 목록 컨테이너 */
.client-list-container {
    margin-top: 15px;
    padding: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
    max-height: 300px;
    overflow-y: auto;
}

.client-list {
    width: 100%;
}

.client-list-title {
    font-weight: bold;
    font-size: 0.95em;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.client-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-list-item {
    padding: 10px;
    border-bottom: 1px solid var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-primary);
}

.client-list-item:last-child {
    border-bottom: none;
}

.client-list-item:hover {
    background-color: var(--bg-secondary);
}

.client-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.client-item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95em;
    flex: 1;
}

.client-item-info {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-align: left;
}

.client-owner-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background-color: #555;
    color: #fff;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    white-space: nowrap;
}

.client-item-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.client-item-btn {
    padding: 5px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.85em;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.client-item-btn:hover {
    background: #2980b9;
}

.client-item-btn.btn-edit {
    background: #27ae60;
}

.client-item-btn.btn-edit:hover {
    background: #229954;
}

.client-item-btn.btn-delete {
    background: #e74c3c;
}

.client-item-btn.btn-delete:hover {
    background: #c0392b;
}

.client-source-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 500;
    white-space: nowrap;
}

.badge-primary {
    background-color: #3498db;
    color: white;
}

.badge-secondary {
    background-color: #95a5a6;
    color: white;
}

.client-loading,
.client-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* 고객 정보 입력 폼 버튼 그룹 */
.client-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.client-save-btn {
    flex: 1;
    padding: 10px;
    background: #757577;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s;
}

.client-save-btn:hover {
    background: #838583;
}

/* 기타 정보 입력 영역 */
.saju-extra-info {
    padding: 15px;
}

.saju-extra-placeholder {
    padding: 20px;
}

/* 24절기 정보 */
#solar-term-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    /* border-radius: 5px; */
    display: none;
}

.solar-term-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.solar-term-content {
    font-size: 0.9em;
    color: #555;
}

.solar-term-exact {
    color: #e74c3c;
    font-weight: bold;
}

.solar-term-nearby {
    color: #3498db;
}

.solar-term-date {
    margin-top: 5px;
    color: #7f8c8d;
}

.solar-term-list-container {
    max-height: 300px;
    overflow-y: auto;
}

.solar-term-list-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
}

.solar-term-list-item {
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.solar-term-list-name {
    color: #e74c3c;
    font-weight: bold;
}

.solar-term-list-name-han {
    color: #7f8c8d;
}

.solar-term-list-date {
    color: #555;
}

/* 대운 표시 스타일 (표 형식, 우→좌 배치) */
.daeun-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
}

.daeun-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    background-color: transparent;
    margin: 0 auto;
}

.daeun-table th,
.daeun-table td {
    border: 1px solid var(--border-color);
    padding: 8px 4px;
    text-align: center;
    background-color: transparent;
    font-size: 14px;
    color: var(--text-primary);
}

.daeun-table thead th {
    font-weight: bold;
    font-size: 12px;
    color: var(--text-primary);
    background-color: transparent;
}

.daeun-gan-row td,
.daeun-zhi-row td {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.daeun-info {
    margin-top: 15px;
    padding: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.daeun-info-item {
    margin-bottom: 5px;
}

.daeun-info-item:last-child {
    margin-bottom: 0;
}

/* 대운 표시 영역 */
#daeun-display {
    display: none;
}

@media print {
    /* 헤더/푸터 제외 */
    .topbar-pc {
        display: none !important;
    }
    
    /* top-bar 영역 전체 제외 */
    .topbar,
    .topbar-left-buttons,
    .topbar-left-btn,
    .topbar-right,
    .topbar-visitor-count {
        display: none !important;
    }
    
    .output-buttons {
        display: none !important;
    }
    
    /* 좌측 고객관리 레이어 버튼 제외 */
    .layer-toggle-btn {
        display: none !important;
    }
    
    /* 레이어 오버레이 제외 */
    .layer-overlay {
        display: none !important;
    }
    
    /* 우하단 공유 버튼 및 상단 이동 버튼 제외 */
    .share,
    .dropup,
    #top_btn,
    .top-btn,
    .fixed-bottom-buttons {
        display: none !important;
    }
    
    /* 하단 서비스 이동 버튼 제외 */
    .pro-bottom-buttons,
    .pro-bottom-btn-left,
    .pro-bottom-btn-right {
        display: none !important;
    }
    
    /* tail.pro.php 하단 정보 제외 */
    .pro-footer {
        display: none !important;
    }
    
    /* tail.sub.php 내용 제외 (일반적인 푸터 요소들) */
    #ft,
    .ft,
    footer {
        display: none !important;
    }
    
    .saju-ganzhi-vertical {
        background: transparent !important;
        box-shadow: none !important;
        max-width: 80px;
        padding: 20px 10px;
        min-height: 150px;
    }
    .saju-gan, .saju-zhi {
        color: #000 !important;
        text-shadow: none !important;
        font-size: 3.5em;
    }
    .daeun-table {
        border: 1px solid #000 !important;
        background-color: transparent !important;
    }
    .daeun-table th,
    .daeun-table td {
        border: 1px solid #000 !important;
        background-color: transparent !important;
        color: #000 !important;
    }
}

/* 상담 메모 스타일 */
.consultation-toolbar {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* 상담 메모 요약 카드 */
.consultation-summary-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.consultation-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.consultation-summary-title-section {
    flex: 1;
}

.consultation-summary-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.consultation-summary-date {
    font-size: 0.85em;
    color: #666;
}

.consultation-summary-actions {
    display: flex;
    gap: 8px;
}

.consultation-summary-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background-color: #777;
    color: #eee;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.consultation-summary-btn:hover {
    background-color: #555;
    color: #eee;
}

.consultation-summary-content {
    margin-bottom: 12px;
    padding: 10px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 3px;
    min-height: 40px;
}

.consultation-summary-preview {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.9em;
}

.consultation-empty-text {
    margin: 0;
    color: #999;
    font-style: italic;
}

.consultation-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #666;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.consultation-summary-writer {
    flex: 1;
}

.consultation-summary-count {
    margin-right: 10px;
    color: #3498db;
}

.consultation-more-btn {
    padding: 4px 10px;
    border: 1px solid #3498db;
    background-color: #fff;
    color: #3498db;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.consultation-more-btn:hover {
    background-color: #3498db;
    color: #fff;
}

/* 현재 고객 내 검색 영역 */
.consultation-search-area {
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 4px;
}

.consultation-search-group,
.consultation-filter-group,
.consultation-action-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.consultation-search-input,
.consultation-date-filter {
    flex: 1;
    min-width: 150px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.consultation-search-btn,
.consultation-filter-btn,
.consultation-clear-btn,
.consultation-new-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--color-gray);
    color: var(--color-white);
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.consultation-search-btn:hover,
.consultation-filter-btn:hover,
.consultation-clear-btn:hover {
    background-color: var(--color-gray);
    color: var(--color-white);
}

.consultation-new-btn {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.consultation-new-btn:hover {
    background-color: #2980b9;
}

.consultation-list-container {
    max-height: 500px;
    overflow-y: auto;
}

.consultation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consultation-item {
    border: 1px solid #e0e0e0;
    padding: 12px;
    background-color: #fff;
    transition: box-shadow 0.2s;
}

.consultation-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.consultation-item.consultation-important {
    border-left: 4px solid #e74c3c;
}

.consultation-item-header {
    margin-bottom: 8px;
}

.consultation-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.consultation-important-badge {
    padding: 2px 6px;
    background-color: #e74c3c;
    color: white;
    font-size: 11px;
    border-radius: 3px;
    font-weight: bold;
}

.consultation-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.consultation-item-content {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.consultation-item-content p {
    margin: 0 0 8px 0;
}

.consultation-item-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.consultation-tag {
    padding: 2px 8px;
    background-color: #ecf0f1;
    color: #2c3e50;
    font-size: 11px;
    border-radius: 3px;
}

.consultation-item-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.consultation-edit-btn,
.consultation-delete-btn-small {
    padding: 4px 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.consultation-edit-btn:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.consultation-delete-btn-small:hover {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.consultation-loading,
.consultation-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 상담 메모 입력/수정 폼 모달 */
.consultation-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001; /* 레이어(z-index: 999) 및 스크롤바보다 훨씬 높게 설정 */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* 모달 외부 클릭 방지 */
}

.consultation-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(0, 0, 0, 0.1);  */
    background-color: none; /* 더 투명하게 */
    pointer-events: none; /* 오버레이 클릭 비활성화 */
}

.consultation-form-content {
    position: fixed;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    min-width: 500px;
    min-height: 400px;
    max-width: 90vw;
    max-height: 90vh;
    width: 90%;
    max-width: 700px;
    height: auto;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10002; /* 모달 및 모든 레이어 요소(스크롤바 포함)보다 높게 설정 */
    /* 초기 위치는 중앙 (JavaScript에서 조정) */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* 모달 내용은 클릭 가능 */
}

/* 모바일 화면에서 상담 메모 입력 창 너비 100% */
@media (max-width: 768px) {
    .consultation-form-content {
        /* width: 100% !important; */
        max-width: 100% !important;
        min-width: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        top: 50%;
        /* height: 100vh; */
        /* max-height: 100vh; */
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}

/* 크기 조절 핸들 영역 */
.consultation-form-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(-45deg, transparent 30%, #ccc 30%, #ccc 50%, transparent 50%, transparent 70%, #ccc 70%);
    cursor: nwse-resize;
    z-index: 1002;
    pointer-events: auto;
}

.consultation-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--border-color);
    color: var(--text-primary);
    cursor: move;
    user-select: none;
}

.consultation-form-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.consultation-form-close {
    padding: 5px 10px;
    border: none;
    background: none;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
}

.consultation-form-close:hover {
    color: var(--text-primary);
}

.consultation-form {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.consultation-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.consultation-form-group {
    flex: 1;
    min-width: 200px;
}

.consultation-form-group-full {
    flex: 100%;
}

.consultation-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-secondary);
}

.consultation-input,
.consultation-select,
.consultation-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--bg-tertiary);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.consultation-textarea {
    resize: vertical;
    min-height: 150px;
}

.consultation-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.consultation-checkbox-label input[type="checkbox"] {
    margin: 0;
}

.consultation-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.consultation-save-btn,
.consultation-cancel-btn,
.consultation-delete-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.consultation-save-btn {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.consultation-save-btn:hover {
    background-color: #2980b9;
}

.consultation-cancel-btn {
    background-color: #555;
    color: #eee;
}

.consultation-cancel-btn:hover {
    background-color: #777;
    color: #eee;
}

.consultation-delete-btn {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.consultation-delete-btn:hover {
    background-color: #c0392b;
}

/* AI 운세 리포트 탭 스타일 */
.fortune-report-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.fortune-report-tab {
    padding: 8px 15px;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.fortune-report-tab:hover {
    color: #3498db;
}

.fortune-report-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: bold;
}

.fortune-report-tab-content {
    display: none !important;
}

.fortune-report-tab-content.active {
    display: block !important;
}

/* 별난보고서 서브탭 스타일 */
.weirdreport-subtabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.weirdreport-subtab {
    padding: 8px 15px;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.weirdreport-subtab:hover {
    color: #3498db;
}

.weirdreport-subtab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: bold;
}

.weirdreport-subtab-content {
    display: none !important;
}

.weirdreport-subtab-content.active {
    display: block !important;
}

/* AI 종합 리포트 스타일 */
.ai-comprehensive-input {
    margin-bottom: 20px;
}

.ai-comprehensive-result {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    min-height: 100px;
}

/* 오행 분석 스타일 */
.ohaeng-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.ohaeng-tab {
    padding: 8px 15px;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.ohaeng-tab span {
    flex: 1;
}

.ohaeng-checkbox-label {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    cursor: pointer;
}

.ohaeng-checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.ohaeng-tab:hover {
    color: #3498db;
}

.ohaeng-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: bold;
}

.ohaeng-tab-content {
    display: none !important;
}

.ohaeng-tab-content.active {
    display: block !important;
}


/* 오행 분석 설정 버튼 */
.ohaeng-settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.ohaeng-settings-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #3498db;
}

.ohaeng-settings-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.ohaeng-settings-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

/* 오행 분석 설정 모달 */
.ohaeng-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ohaeng-settings-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.ohaeng-settings-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ohaeng-settings-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ohaeng-settings-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.ohaeng-settings-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.ohaeng-settings-modal-close:hover {
    color: #e74c3c;
}

.ohaeng-settings-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.ohaeng-settings-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.ohaeng-settings-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ohaeng-settings-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ohaeng-settings-checkbox-item:hover {
    background-color: #f8f9fa;
}

.ohaeng-settings-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.ohaeng-settings-checkbox-item span {
    font-size: 14px;
    color: #333;
    user-select: none;
}

.ohaeng-settings-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.ohaeng-settings-btn-select-all,
.ohaeng-settings-btn-deselect-all {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.ohaeng-settings-btn-select-all:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.ohaeng-settings-btn-deselect-all:hover {
    background-color: #95a5a6;
    color: #fff;
    border-color: #95a5a6;
}

.ohaeng-settings-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ohaeng-settings-btn-cancel,
.ohaeng-settings-btn-apply {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ohaeng-settings-btn-cancel {
    background-color: #ecf0f1;
    color: #666;
}

.ohaeng-settings-btn-cancel:hover {
    background-color: #bdc3c7;
}

.ohaeng-settings-btn-apply {
    background-color: #3498db;
    color: #fff;
}

.ohaeng-settings-btn-apply:hover {
    background-color: #2980b9;
}

/* AI 운세 리포트 설정 버튼 */
.fortune-report-settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.fortune-report-settings-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #3498db;
}

.fortune-report-settings-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.fortune-report-settings-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

/* AI 운세 리포트 설정 모달 */
.fortune-report-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.fortune-report-settings-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.fortune-report-settings-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

.fortune-report-settings-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fortune-report-settings-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.fortune-report-settings-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.fortune-report-settings-modal-close:hover {
    color: #e74c3c;
}

.fortune-report-settings-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.fortune-report-settings-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.fortune-report-settings-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.fortune-report-settings-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.fortune-report-settings-checkbox-item:hover {
    background-color: #f8f9fa;
}

.fortune-report-settings-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.fortune-report-settings-checkbox-item span {
    font-size: 14px;
    color: #333;
    user-select: none;
}

.fortune-report-settings-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.fortune-report-settings-btn-select-all,
.fortune-report-settings-btn-deselect-all {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.fortune-report-settings-btn-select-all:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.fortune-report-settings-btn-deselect-all:hover {
    background-color: #95a5a6;
    color: #fff;
    border-color: #95a5a6;
}

.fortune-report-settings-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.fortune-report-settings-btn-cancel,
.fortune-report-settings-btn-apply {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.fortune-report-settings-btn-cancel {
    background-color: #ecf0f1;
    color: #666;
}

.fortune-report-settings-btn-cancel:hover {
    background-color: #bdc3c7;
}

.fortune-report-settings-btn-apply {
    background-color: #3498db;
    color: #fff;
}

.fortune-report-settings-btn-apply:hover {
    background-color: #2980b9;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .ohaeng-settings-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .ohaeng-settings-modal-header {
        padding: 15px;
    }
    
    .ohaeng-settings-modal-body {
        padding: 15px;
    }
    
    .ohaeng-settings-modal-footer {
        padding: 15px;
    }
}

@media print {
    .ohaeng-tabs {
        display: none;
    }
    
    /* 체크박스 숨김 */
    .ohaeng-checkbox-label {
        display: none !important;
    }
    
    /* 전체 탭 콘텐츠는 항상 표시 */
    .ohaeng-all-content {
        display: block !important;
    }
    
    /* 개별 탭 콘텐츠는 프린트에서 숨김 */
    .ohaeng-tab-content:not(.ohaeng-all-content) {
        display: none !important;
    }
    
    /* 체크 해제된 섹션은 프린트에서도 숨김 */
    .ohaeng-all-section[data-section="strength"]:not(:has(+ *)) {
        display: none !important;
    }
    
    /* 체크박스 상태에 따라 섹션 표시/숨김 (JavaScript로 처리) */
    .ohaeng-all-section {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .fiveElements-table,
    .tenGods-table,
    .twelveFortune-table,
    .wealthStructure-table,
    .shishenShangguanStructure-table,
    .careerStructure-table {
        border: 1px solid #000 !important;
    }
    .fiveElements-table th,
    .fiveElements-table td,
    .tenGods-table th,
    .tenGods-table td,
    .twelveFortune-table th,
    .twelveFortune-table td,
    .wealthStructure-table th,
    .wealthStructure-table td,
    .shishenShangguanStructure-table th,
    .shishenShangguanStructure-table td,
    .careerStructure-table th,
    .careerStructure-table td {
        border: 1px solid #000 !important;
        background-color: transparent !important;
        color: #000 !important;
    }
}

/* 문의하기 페이지 스타일 */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.contact-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    padding: 20px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--bg-tertiary);
}

.contact-greeting {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-tertiary);
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--bg-tertiary);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #3498db;
    outline: 1px solid #3498db;
    outline-offset: -1px;
}

.contact-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    padding: 8px 16px;
    background-color: #eee;
    color: #000;
    border: 1px solid #bbb;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
}

.contact-submit-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* 허니팟 필드 숨김 */
.honeypot-field {
    display: none;
}

/* 메시지 스타일 */
.messageAi {
    background: #ecf0f1;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    position: relative;
}

.messageAi::after {
    display: none;
}

.messageAi p {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.messageHuman {
    background: #d5e8f7;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.messageHuman p {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.error-message {
    background: #fadbd8 !important;
}

.error-message p {
    color: #e74c3c !important;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
    .contact-container {
        padding: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* 전문가용 회원 페이지 스타일 - 딱딱한 디자인 */
#mb_login,
.register {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 0;
}

.register form > p {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 14px;
}

.register form > p .fa-check-circle {
    color: var(--text-primary);
    margin-right: 8px;
}

.mbskin_box {
    max-width: 100%;
}

.mb_log_cate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mb_log_cate h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.mb_log_cate .join {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}

.mb_log_cate .join:hover {
    text-decoration: underline;
    color: var(--link-color);
}

#login_fs {
    max-width: 100%;
}

.login_input_row {
    margin-bottom: 10px;
}

.login_input_row input[type="text"],
.login_input_row input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--bg-tertiary);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.login_input_row input[type="text"]:last-of-type,
.login_input_row input[type="password"]:last-of-type {
    margin-bottom: 0;
}

.login_input_row .login_btn {
    width: 100%;
    margin-top: 10px;
    min-width: auto;
}

.login_info_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.login_info_row .login_if_auto {
    margin: 0;
}

.login_info_row .login_if_lpl {
    margin: 0;
}

.login_info_row .login_if_lpl a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}

.login_info_row .login_if_lpl a:hover {
    text-decoration: underline;
    color: var(--link-color);
}

/* 버튼 스타일 통일 - 최소한의 디자인 */
.btn_submit,
.btn_close,
.reg_btn_submit {
    padding: 8px 16px;
    border: 1px solid #333;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.btn_submit:hover,
.reg_btn_submit:hover {
    background-color: #fafafa;
    color: #000;
}

/* 로그인 버튼 특별 스타일 */
.login_btn {
    background-color: #fafafa;
    color: #000;
}

.login_btn:hover {
    background-color: #f5f5f5;
    color: #000;
}

.btn_close {
    background-color: #f5f5f5;
    border-color: #999;
    color: #333;
    margin: 20px auto;
    display: block;
}

.btn_close:hover {
    background-color: #e0e0e0;
}

.btn_confirm {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn_confirm a,
.btn_confirm button {
    margin: 0;
    padding: 8px 16px !important;
    width: 150px !important;
    min-width: 150px !important;
    height: 36px !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #333;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.btn_confirm a.btn_close {
    background-color: #f5f5f5;
    border-color: #999;
    color: #333;
}

.btn_confirm a.btn_close:hover {
    background-color: #e0e0e0;
}

.btn_confirm button.btn_submit:hover {
    background-color: #f5f5f5;
}

/* 회원가입 폼 스타일 */
#register_form {
    padding: 0;
    margin: 0;
}

.register_form_inner {
    margin-bottom: 20px;
    padding: 0;
}

/* tbl_frm01, tbl_wrap 클래스의 패딩 제거 */
.tbl_frm01.register_form_inner,
.tbl_wrap.register_form_inner,
.tbl_frm01.tbl_wrap.register_form_inner {
    padding: 0 !important;
    margin: 0 0 20px 0;
}

.register_form_inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.register_form_inner li {
    margin-bottom: 15px;
    padding: 0;
}

.register_form_inner input[type="text"],
.register_form_inner input[type="password"],
.register_form_inner input[type="email"],
.register_form_inner input[type="tel"],
.register_form_inner textarea,
.register_form_inner select,
.register_form_inner .frm_input {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid var(--bg-tertiary);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
    margin: 0;
}

.register_form_inner .full_input {
    width: 100%;
    max-width: 100%;
}

/* half_input 스타일 (비밀번호, 비밀번호 확인 등) */
.register_form_inner .half_input {
    width: 48%;
    float: left;
}

.register_form_inner .half_input.left_input {
    margin-right: 4%;
}

.register_form_inner .half_input.margin_input {
    margin-bottom: 15px;
}

/* half_input이 있는 ul의 clearfix */
.register_form_inner ul:after {
    content: "";
    display: table;
    clear: both;
}

/* required 표시 수정 */
.register_form_inner .required::after {
    content: " *";
    color: #c00;
    margin-left: 2px;
}

/* tooltip_icon 위치 조정 */
.register_form_inner label .tooltip_icon {
    margin-left: 5px;
    vertical-align: middle;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: inline-block;
}

.register_form_inner textarea {
    min-height: 80px;
    resize: vertical;
}

/* 체크박스 스타일 - 최소한 */
.chk_box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
}

.chk_box input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

.chk_box label {
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.chk_box label span {
    display: none;
}

.chk_box .chk_li {
    margin: 0;
    display: inline-block;
    flex: 1;
}

/* ============================================
   Fortune 폴더 스타일 (pro/fortune)
   ============================================ */

/* 미디어 컨테이너 */
.mediaContainer {
    width: 100vw;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* 텍스트 컨테이너 */
.divText {
    margin: auto;
    padding: 10px;
    border: 1px solid black;
    max-width: 90%;
}

/* 제목 스타일 */
.divTitle0 {
    display: block;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(to right, 
        #d0d0d0 5%, rgb(165, 165, 165) 10%, black 15%, 
        #cfcbcb 25%, black 40%, #d0d0d0 95%);
}

.divTitle1 {
    display: block;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(to right, 
        rgb(255, 255, 255) 5%, #717fad 17%, black 27%, 
        rgb(168, 168, 168) 40%, black 60%, white 95%);
}

.divTitle2 {
    display: block;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(to right, 
        rgb(255, 255, 255) 5%, black 15%, #74a86e 33%, 
        #74a86e 40%, black 70%, white 95%);
}

.divTitle3 {
    display: block;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(to right, 
        rgb(255, 255, 255) 5%, black 38%, #a1915d 65%, 
        #d4cfc4 78%, black 85%, white 95%);
}

.divTitle4 {
    display: block;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(to right, 
        rgb(255, 255, 255) 5%, black 40%, rgb(143, 143, 143) 60%, 
        black 73%, #b38191 83%, white 95%);
}

/* 원형 색상 표시 */
.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(127, 127, 127);
    box-shadow: 3px 3px 5px rgb(133, 133, 133);
}

/* 오늘운 관련 스타일 */
.now_number,
.now_business,
.now_direct,
.now_nature,
.now_animal {
    white-space: nowrap;
    overflow: auto;
}

/* 애정운 관련 스타일 */
.love_mate {
    margin-left: auto;
    margin-right: auto;
    max-width: 80vw;
}

/* 나에 대한 리포트 관련 스타일 */
.me_nature {
    margin: 0 auto;
}

.me_animal {
    white-space: nowrap;
    overflow: auto;
}

.me_color {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: inset 1px 1px 20px #00000095;
    background-color: rgb(127, 127, 127);
}

/* 종합운 관련 스타일 */
.life_nature,
.life_animal {
    white-space: nowrap;
    overflow: auto;
}

/* 바이오리듬 스타일 */
.bio {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

/* 서비스 사용 정보 표시 영역 */
.service-usage-info {
    background-color: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-primary, #333);
}

.service-usage-info.usage-limit-exceeded {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.service-usage-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-usage-content span {
    font-weight: 500;
}

.bio canvas {
    margin-top: 20px;
}

/* 메인 이미지 스타일 */
.main_image {
    position: relative;
    min-height: 300px;
}

.main_image img {
    opacity: 0.7;
}

.main_image_text {
    position: absolute;
    width: 100%;
    max-width: 700px;
    height: auto;
    color: white;
    background: var(--button-bg);
    padding: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 별자리/기타 섹션 스타일 */
.zodiac-etc-section {
    margin-bottom: 30px;
}

/* 바이오리듬 컨테이너 스타일 */
.biorhythm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Fortune 리포트 콘텐츠 스타일 */
.fortune-report-content {
    padding: 15px;
}

/* 애니메이션 */
@keyframes birthCircle {
    0% {
        transform: translateX(0%);
    }
    25% {
        transform: translateX(16%);
    }
    50% {
        transform: translateX(0%);
    }
    75% {
        transform: translateX(8%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes nowCircle {
    0% {
        transform: translateX(0%);
    }
    25% {
        transform: translateX(16%);
    }
    50% {
        transform: translateX(0%);
    }
    75% {
        transform: translateX(8%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes meCircle {
    0% {
        transform: translateY(0%);
    }
    25% {
        transform: translateY(7%);
    }
    45% {
        transform: translateY(0%);
    }
    62% {
        transform: translateY(3%);
    }
    80% {
        transform: translateY(0%);
    }
    91% {
        transform: translateY(1%);
    }
    100% {
        transform: translateY(0%);
    }
}

/* 원형 애니메이션 적용 */
:is(#c1, #c2, #c3, #c4, #c5, #c6) {
    animation: birthCircle 1s ease;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#c1 { animation-delay: 0.5s; }
#c2 { animation-delay: 0.6s; }
#c3 { animation-delay: 0.7s; }
#c4 { animation-delay: 0.8s; }
#c5 { animation-delay: 0.9s; }
#c6 { animation-delay: 1.0s; }

:is(#nC1, #nC2, #nC3, #nC4, #nC5, #nC6) {
    animation: nowCircle 1s ease;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#nC1 { animation-delay: 0.5s; }
#nC2 { animation-delay: 0.6s; }
#nC3 { animation-delay: 0.7s; }
#nC4 { animation-delay: 0.8s; }
#nC5 { animation-delay: 0.9s; }
#nC6 { animation-delay: 1.0s; }

:is(#meC1) {
    animation: meCircle 1s ease;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
}

/* 로그인 유도 모달 */
.login-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-prompt-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.login-prompt-content {
    position: relative;
    background-color: var(--bg-secondary, #fff);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-prompt-modal.active .login-prompt-content {
    transform: scale(1);
}

.login-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.login-prompt-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary, #333);
}

.login-prompt-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary, #666);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.login-prompt-close:hover {
    color: var(--text-primary, #333);
}

.login-prompt-body {
    padding: 20px;
    color: var(--text-primary, #333);
}

.login-prompt-body p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.login-prompt-body ul {
    margin: 15px 0;
    padding-left: 25px;
    color: var(--text-secondary, #666);
    font-size: 14px;
}

.login-prompt-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.login-prompt-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border-color, #e0e0e0);
    justify-content: flex-end;
}

.login-prompt-btn-secondary,
.login-prompt-btn-primary {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-prompt-btn-secondary {
    background-color: var(--bg-tertiary, #f5f5f5);
    color: var(--text-primary, #333);
    border: 1px solid var(--border-color, #e0e0e0);
}

.login-prompt-btn-secondary:hover {
    background-color: var(--bg-secondary, #e0e0e0);
}

/* 고객관리 레이어 내 한/漢 전환 버튼 스타일 */
.ganzhi-toggle-area {
    margin-bottom: 15px;
}

.ganzhi-toggle-btn-client {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    background-color: var(--link-color, #3498db);
    color: #fff;
    border: 1px solid var(--link-color, #3498db);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    font-weight: 500;
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
}

.ganzhi-toggle-btn-client:hover {
    background-color: var(--link-hover-color, #2980b9);
    border-color: var(--link-hover-color, #2980b9);
    opacity: 0.9;
}

.ganzhi-toggle-btn-client:active {
    opacity: 0.8;
}

.login-prompt-btn-primary {
    background-color: var(--button-bg, #007bff);
    color: var(--button-text, #fff);
    border: none;
}

.login-prompt-btn-primary:hover {
    background-color: var(--link-color, #0056b3);
    color: var(--button-text, #fff);
}
