/* 사용자 메뉴얼 모달 스타일 */

/* 모달 오버레이 기본 스타일 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 메뉴얼 아이콘 버튼 */
.manual-icon-btn {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 18px;
    margin-left: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.manual-icon-btn:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
    color: #4f46e5;
}

/* 사용자 메뉴얼 모달 */
.user-manual-modal {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    overflow: hidden;
}

.user-manual-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-manual-modal .modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.user-manual-modal .modal-header h2 i {
    margin-right: 12px;
    color: #fbbf24;
}

.user-manual-modal .close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-manual-modal .close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 메뉴얼 네비게이션 */
.manual-nav {
    display: flex;
    background: #f8fafc;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

.manual-tab {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.manual-tab:hover {
    background: #f1f5f9;
    color: #334155;
}

.manual-tab.active {
    color: #6366f1;
    background: white;
    border-bottom-color: #6366f1;
}

/* 메뉴얼 컨텐츠 */
.modal-body {
    padding: 0;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.manual-content {
    padding: 30px;
}

.manual-section {
    display: none;
}

.manual-section.active {
    display: block;
}

.manual-section h3 {
    color: #1e293b;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.manual-section h3 i {
    color: #6366f1;
    margin-right: 10px;
}

/* 메뉴얼 카드 */
.manual-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.manual-card h4 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.manual-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.manual-card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.manual-card li {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 8px;
}

.manual-card ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.manual-card ol li {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 배지 스타일 */
.badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* 단계별 가이드 */
.step-guide {
    margin: 20px 0;
}

.step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    background: #6366f1;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #374151;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.step-content p {
    margin: 0;
}

.step-content ul {
    margin-top: 8px;
    margin-bottom: 0;
}

/* 기능 하이라이트 */
.feature-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.feature-highlight i {
    font-size: 24px;
    color: #0ea5e9;
    margin-right: 15px;
}

.feature-highlight strong {
    color: #0c4a6e;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.feature-highlight p {
    margin: 0;
    color: #075985;
}

/* 경고 박스 */
.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.warning-box i {
    color: #d97706;
    margin-right: 10px;
    font-size: 18px;
}

.warning-box strong {
    color: #92400e;
}

/* 정보 박스 */
.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.info-box i {
    color: #2563eb;
    margin-right: 10px;
    font-size: 18px;
}

.info-box strong {
    color: #1d4ed8;
}

/* 메뉴얼 푸터 */
.manual-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.manual-tips {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #16a34a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.manual-tips h4 {
    color: #15803d;
    margin-bottom: 15px;
    font-size: 18px;
}

.manual-tips h4 i {
    color: #facc15;
    margin-right: 10px;
}

.manual-tips ul {
    margin: 0;
    padding-left: 20px;
}

.manual-tips li {
    color: #166534;
    line-height: 1.6;
    margin-bottom: 8px;
}

.manual-contact {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #9ca3af;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.manual-contact h4 {
    color: #374151;
    margin-bottom: 10px;
    font-size: 18px;
}

.manual-contact h4 i {
    color: #6366f1;
    margin-right: 10px;
}

.manual-contact p {
    margin: 0;
    color: #6b7280;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .user-manual-modal {
        width: 95%;
        max-height: 95vh;
    }

    .user-manual-modal .modal-header {
        padding: 15px 20px;
    }

    .user-manual-modal .modal-header h2 {
        font-size: 20px;
    }

    .manual-content {
        padding: 20px;
    }

    .manual-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .manual-tab {
        padding: 12px 16px;
        font-size: 13px;
    }

    .manual-card {
        padding: 20px;
    }

    .step {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-number {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }

    .feature-highlight i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 스크롤바 스타일링 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}