/* ========================================
   AI Features UI (Chat, Video, Realtime Avatar)
   - Chat 버튼 및 슬라이드 패널
   - Video & Realtime Avatar 아이콘 버튼
   ======================================== */

/* ========================================
   1. Chat Button (메인 이미지 하단 오버레이)
   프리미엄 투명 + 블러 효과 디자인
   ======================================== */
.chat-trigger-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px 24px;
    margin: 0;
    background: linear-gradient(135deg, rgba(94, 66, 166, 0.35) 0%, rgba(183, 78, 145, 0.35) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    border: 1px solid rgba(183, 78, 145, 0.35);
    border-radius: 0 0 var(--radius-md, 12px) var(--radius-md, 12px);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(94, 66, 166, 0.15);
    z-index: 5;
    overflow: hidden;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.chat-trigger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.chat-trigger-btn:hover::before {
    left: 100%;
}

.chat-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(94, 66, 166, 0.5) 0%, rgba(183, 78, 145, 0.5) 100%);
    border-color: rgba(183, 78, 145, 0.6);
    box-shadow: 0 12px 40px rgba(94, 66, 166, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.chat-trigger-btn:active {
    background: linear-gradient(135deg, rgba(94, 66, 166, 0.4) 0%, rgba(183, 78, 145, 0.4) 100%);
    box-shadow: 0 4px 16px rgba(94, 66, 166, 0.2);
    transform: translateY(0);
}

.chat-trigger-btn i {
    font-size: 15px;
    opacity: 0.95;
}

/* ========================================
   2. Video & Realtime Avatar Icons (메인 이미지 우측 중앙)
   ======================================== */
.ai-feature-icons {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.ai-feature-icon-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
}

.ai-feature-icon-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ai-feature-icon-btn:active {
    transform: scale(0.95);
}

.ai-feature-icon-btn i {
    font-size: 22px;
    color: #667eea;
    transition: all 0.3s ease;
}

.ai-feature-icon-btn:hover i {
    color: #764ba2;
}

/* Video Icon (위) */
.ai-feature-icon-btn.video-icon i {
    color: #e74c3c;
}

.ai-feature-icon-btn.video-icon:hover i {
    color: #c0392b;
}

/* Realtime Avatar Icon (아래) - 프리미엄 느낌 */
.ai-feature-icon-btn.realtime-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 165, 0, 0.95) 100%);
    border-color: rgba(255, 215, 0, 0.5);
}

.ai-feature-icon-btn.realtime-icon i {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.ai-feature-icon-btn.realtime-icon:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 1) 0%, rgba(255, 165, 0, 1) 100%);
    border-color: rgba(255, 215, 0, 0.8);
}

/* 툴팁 (호버 시 설명) */
.ai-feature-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ai-feature-icon-btn:hover::after {
    opacity: 1;
}

/* ========================================
   3. Chat Slide Panel (우측에서 슬라이드)
   ======================================== */
.chat-slide-panel {
    position: fixed; /* 일단 fixed 유지하되, body가 flex일 때 제대로 작동하도록 */
    top: 0;
    right: 0;
    width: 30%; /* 데스크톱: 30% - 서비스 콘텐츠에 더 집중 */
    height: 100vh;
    /* 기본 배경 + 미묘한 주홍빛 그라데이션 (3.png 참고) */
    background: 
        radial-gradient(ellipse at 70% 30%, rgba(255, 87, 51, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 99, 71, 0.06) 0%, transparent 50%),
        #1c1c1c;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.chat-slide-panel.active {
    transform: translateX(0);
}

/* 🔥 핵심: Body를 Flexbox로 변경하여 진짜 좌우 분할 */
body.chat-active {
    display: flex;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

/* 좌측 콘텐츠 영역 - Flexbox로 70% 차지 */
body.chat-active #wrapper,
body.chat-active #sidebar {
    flex: 0 0 70% !important; /* 좌측 70% 고정 */
    width: 70% !important;
    max-width: 70% !important;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: flex 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* getstyle.html, getavata.html 구조 (.avatar-container) */
body.chat-active .avatar-container {
    flex: 0 0 70% !important;
    width: 70% !important;
    max-width: 70% !important;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: flex 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 채팅 패널도 Flexbox의 일부로 */
body.chat-active .chat-slide-panel {
    position: relative !important; /* fixed → relative로 변경 */
    flex: 0 0 30% !important;
    width: 30% !important;
    transform: translateX(0) !important; /* 슬라이드 애니메이션 비활성화 */
}

/* 모바일 햄버거 메뉴 위치 조정 (chat-active와 chat-open 둘 다 지원) */
body.chat-active .mobile-hamburger-wrapper,
body.chat-open .mobile-hamburger-wrapper {
    z-index: 10000; /* 채팅보다 위에 */
}

/* 태블릿 (769px ~ 1024px): 60:40 균형 */
@media (max-width: 1024px) {
    body.chat-active #wrapper,
    body.chat-active #sidebar,
    body.chat-active .avatar-container {
        flex: 0 0 60% !important;
        width: 60% !important;
        max-width: 60% !important;
    }
    
    body.chat-active .chat-slide-panel {
        flex: 0 0 40% !important;
        width: 40% !important;
    }
}

/* 모바일 (≤768px): 채팅 전체 화면, 좌측 콘텐츠 숨김 */
@media (max-width: 768px) {
    body.chat-active {
        display: block !important; /* Flexbox 해제 */
        overflow: hidden;
        /* 동적 뷰포트 높이: 키보드 출입 시 유동적으로 조정됨 */
        height: 100vh;
        height: 100dvh;
        position: fixed;
        width: 100%;
    }
    
    body.chat-active .chat-slide-panel {
        position: fixed !important;
        flex: none !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        transform: translateX(0) !important;
        display: flex;
        flex-direction: column;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Safe Area insets (노치/세이프 에어리어 지원) */
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    /* 모바일에서는 좌측 화면 완전히 숨김 */
    body.chat-active #wrapper,
    body.chat-active #sidebar,
    body.chat-active .avatar-container {
        display: none !important;
    }
    
    /* ✅ 모바일 채팅창: 햄버거 버튼을 좌측 상단으로 이동 (X 버튼과 겹침 방지) */
    /* chat-active, chat-open, 그리고 chat-slide-panel.active 모두 지원 */
    body.chat-active .mobile-hamburger-wrapper,
    body.chat-open .mobile-hamburger-wrapper,
    body:has(.chat-slide-panel.active) .mobile-hamburger-wrapper {
        display: block !important;
        left: 1.2rem !important;
        right: auto !important;
        top: 1.2rem !important;
        z-index: 10001 !important;
    }
    
    /* 모바일: 헤더 고정 (항상 맨 위) */
    .chat-panel-header {
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 100;
        background: #1c1c1c;
    }
    
    /* 모바일: 메시지 영역 스크롤 가능 (flex-grow로 확장) */
    .chat-panel-body {
        flex: 1 1 auto;
        min-height: 0; /* flex 컨테이너에서 스크롤이 작동하도록 필수 */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 12px 10px;
    }
    
    /* 모바일: 입력창 고정 + 키보드 위에 보이기 */
    .chat-panel-footer {
        flex-shrink: 0;
        position: relative;
        padding: 12px 14px;
        gap: 8px;
        background: #2a2a2a;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 50;
        /* Safe Area insets (세이프 에어리어 지원) */
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* Chat Header */
.chat-panel-header {
    background: #1c1c1c;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chat-profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.chat-profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.chat-profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-profile-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.chat-profile-status {
    font-size: 13px;
    color: #8e8e93;
    line-height: 1.2;
}

.chat-panel-close {
    background: transparent;
    border: none;
    color: #8e8e93;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 20px;
    padding: 0;
    flex-shrink: 0;
}

.chat-panel-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: scale(1.05);
}

.chat-panel-close:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.95);
}

/* Chat Body */
.chat-panel-body {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 75%;
    animation: slideIn 0.3s ease;
}

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

.chat-message.user {
    align-self: flex-end;
}

.chat-message.ai {
    align-self: flex-start;
}

.chat-bubble {
    padding: 12px 14px 12px 14px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.45;
    word-wrap: break-word;
    position: relative;
}

.chat-message.user .chat-bubble {
    background: #6B5B95;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-message.ai .chat-bubble {
    background: #2a2a2a;
    color: #ffffff;
    border-bottom-left-radius: 4px;
}

.chat-timestamp {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    padding: 0;
}

.chat-message.user .chat-timestamp {
    right: 10px;
}

.chat-message.ai .chat-timestamp {
    right: auto;
    left: 10px;
}

/* Empty State */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    text-align: center;
    gap: 12px;
}

.chat-empty-state i {
    font-size: 48px;
    opacity: 0.3;
}

.chat-empty-state p {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.6;
}

/* Chat Footer (Input Area) - b.png 정확한 스타일 */
.chat-panel-footer {
    padding: 16px 20px;
    background: #2a2a2a; /* 어두운 회색 배경 */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

/* 입력창 래퍼 (클립 + 입력창 + 전송 아이콘을 하나의 둥근 입력창으로 통합) */
.chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #3a3a3a !important; /* 입력창 배경색 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px;
    padding: 0 16px; /* 양쪽 균등 패딩 */
    gap: 12px;
    outline: none !important;
    box-shadow: none !important;
    flex-shrink: 0; /* 크기 축소 방지 */
    min-height: 48px; /* 최소 높이 보장 */
}

/* 포커스 시에도 테두리 완전 고정 - 브라우저 기본 스타일 무력화 */
.chat-input-wrapper:focus,
.chat-input-wrapper:focus-within,
.chat-input-wrapper:active {
    background: #3a3a3a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 클립 아이콘 버튼 (입력창 안 왼쪽, 배경 없음) */
.chat-attach-btn {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    width: 24px;
    height: 24px;
}

.chat-attach-btn:hover {
    color: #b0b0b0;
    transform: scale(1.15);
}

.chat-attach-btn:active {
    transform: scale(0.95);
}

/* 입력창 (배경 투명, 테두리 없음) */
.chat-input-field {
    flex: 1;
    padding: 14px 8px;
    background: transparent;
    border: none;
    font-size: 15px;
    color: #ffffff;
    outline: none !important;
    min-height: 24px; /* 입력창 최소 높이 */
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.chat-input-field:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.chat-input-field::placeholder {
    color: #888888;
}

/* 전송 버튼 (입력창 안 오른쪽, 흰색 종이비행기 아이콘, 배경 없음) */
.chat-send-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    width: 24px;
    height: 24px;
}

.chat-send-btn:hover {
    color: #8B74B3;
    transform: scale(1.15);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    background: #4a4a4a;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* Overlay (채팅 패널 열렸을 때 배경) - 비활성화 */
.chat-panel-overlay {
    display: none; /* 오버레이 완전히 숨김 */
}

.chat-panel-overlay.active {
    display: none; /* 활성화 시에도 숨김 유지 */
}

/* ========================================
   4. Responsive Design
   ======================================== */

/* 태블릿 */
@media (max-width: 768px) {
    .ai-feature-icons {
        right: 14px;
        gap: 10px;
    }
    
    .ai-feature-icon-btn {
        width: 45px;
        height: 45px;
    }
    
    .ai-feature-icon-btn i {
        font-size: 20px;
    }
    
    .chat-trigger-btn {
        padding: 9px 16px;
        font-size: 13px;
        letter-spacing: 0.3px;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    .ai-feature-icons {
        right: 12px;
        gap: 10px;
    }
    
    .ai-feature-icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .ai-feature-icon-btn i {
        font-size: 18px;
    }
    
    .chat-trigger-btn {
        padding: 8px 12px;
        font-size: 12px;
        letter-spacing: 0.2px;
    }
    
    .chat-panel-header {
        padding: 12px 14px;
    }
    
    .chat-profile-img {
        width: 38px;
        height: 38px;
    }
    
    .chat-profile-name {
        font-size: 15px;
    }
    
    .chat-profile-status {
        font-size: 12px;
    }
    
    .chat-panel-body {
        padding: 12px 10px;
    }
    
    /* 모바일: 입력 영역 최적화 */
    .chat-panel-footer {
        padding: 12px 14px;
        gap: 8px;
        min-height: 64px; /* 입력 영역 최소 높이 */
    }
    
    .chat-attach-btn {
        width: 20px;
        height: 20px;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .chat-send-btn {
        width: 20px;
        height: 20px;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .chat-input-wrapper {
        padding: 0 14px;
        gap: 10px;
        min-height: 44px; /* 모바일 터치 타깃 최소 높이 */
    }
    
    .chat-input-field {
        font-size: 14px;
        padding: 12px 6px;
        min-height: 20px;
    }
    
    .chat-message {
        max-width: 80%;
    }
    
    .chat-bubble {
        font-size: 14px;
        padding: 9px 12px 20px 12px;
    }
    
    /* 툴팁 모바일에서는 숨김 */
    .ai-feature-icon-btn::after {
        display: none;
    }
    
    /* 📱 모바일 특화: Webkit을 위한 입력 필드 스타일 정규화 */
    .chat-input-field {
        -webkit-appearance: none;
        appearance: none;
        -webkit-border-radius: 0;
        border-radius: 0;
        font-size: 16px; /* iOS에서 확대 방지 */
    }
    
    .chat-input-wrapper {
        -webkit-appearance: none;
        appearance: none;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
}

/* ========================================
   Icon Menu (우측 중앙, 세로 배치)
   Video, Clapper, Chat 아이콘
   ======================================== */
.icon-menu-container {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
    background: linear-gradient(135deg, rgba(94, 66, 166, 0.45) 0%, rgba(183, 78, 145, 0.45) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 8px;
    border-radius: 50px;
    border: 1px solid rgba(183, 78, 145, 0.4);
    box-shadow: 0 8px 32px rgba(94, 66, 166, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-menu-container:hover {
    background: linear-gradient(135deg, rgba(94, 66, 166, 0.65) 0%, rgba(183, 78, 145, 0.65) 100%);
    border-color: rgba(183, 78, 145, 0.6);
    box-shadow: 0 12px 40px rgba(94, 66, 166, 0.35);
}

.icon-menu-btn {
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    padding: 0;
    margin: 0;
}

/* main.css의 button:hover 스타일 완전 무효화 */
.icon-menu-btn:hover,
.icon-menu-btn:focus,
.icon-menu-btn:active,
button.icon-menu-btn:hover,
button.icon-menu-btn:focus,
button.icon-menu-btn:active {
    color: #fff !important;
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.12) !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ::after pseudo-element 완전 제거 (main.css 오버레이 무효화) */
.icon-menu-btn::after,
.icon-menu-btn:hover::after,
.icon-menu-btn:active::after,
button.icon-menu-btn::after,
button.icon-menu-btn:hover::after,
button.icon-menu-btn:active::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    background: transparent !important;
}

.icon-menu-btn:active {
    transform: scale(0.95);
}

/* 툴팁 스타일 - 텍스트만 (배경 없음) */
.icon-menu-btn[data-tooltip] {
    position: relative;
}

.icon-menu-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 1000;
    pointer-events: none;
    border: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 화살표 제거 - 더 미니멀하게 */
.icon-menu-btn[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .icon-menu-container {
        right: 12px;
        padding: 8px 5px;
        gap: 12px;
    }
    
    .icon-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* 태블릿 반응형 */
@media (min-width: 769px) and (max-width: 1024px) {
    .icon-menu-container {
        right: 14px;
        padding: 10px 6px;
        gap: 13px;
    }
    
    .icon-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}

