
       .container {
            display: flex;
            gap:28px;
            width: 1300px;
            height: 595px;
            background: transparent;
        }
        
        /* 좌측 메뉴 영역 */
        .sidebar {
            width: 354px;
            padding: 0;            
            display: grid;
			  grid-template-columns: repeat(2, 1fr); /* 2열 */
			  grid-template-rows: repeat(4, auto);  /* 4행 */
			  gap: 10px; /* 버튼 사이 간격 */
			/*   width: max-content; 내용에 맞는 너비 */
       	 }
        
        .category-item {
            display: flex;
            align-items: center;
            flex-direction: column;
            justify-content: center;
            gap:12px;
            padding: 0 10px;
            background: transparent;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.18);
            width: 100%;
            text-align: left;
            color: #e2e8f0;
        }
        
        .category-item:hover {
         /*    transform: translateY(-2px);
            background: rgba(74, 85, 104, 0.8);
            border-color: rgba(129, 140, 248, 0.5);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3); */
            border-color: rgba(255, 255, 255, 1);
        }
        
        .category-item.active {            
            color: #fff;
            border-color: rgba(255, 255, 255, 1);
        }
        
        .category-item .category-icon {
            width: 25px;
            height: 25px;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .category-item .category-icon:before {content: "";width:25px;height:25px;display:inline-block;background:url("/resources/images/icon_mirvo.png") no-repeat;background-size: 200px 50px;}
        .category-item .category-icon.cate1:before {background-position:0 0;}
        .category-item .category-icon.cate2:before {background-position:-25px 0;}
        .category-item .category-icon.cate3:before {background-position:-50px 0;}
        .category-item .category-icon.cate4:before {background-position:-75px 0;}
        .category-item .category-icon.cate5:before {background-position:-100px 0;}
        .category-item .category-icon.cate6:before {background-position:-125px 0;}
        .category-item .category-icon.cate7:before {background-position:-150px 0;}
        .category-item .category-icon.cate8:before {background-position:-175px 0;}
        
        .category-item.active .category-icon.cate1:before,
        .category-item:hover .category-icon.cate1:before {background-position:0 -25px;}
        .category-item.active .category-icon.cate2:before,
        .category-item:hover .category-icon.cate2:before {background-position:-25px -25px;} 
        .category-item.active .category-icon.cate3:before,
        .category-item:hover .category-icon.cate3:before {background-position:-50px -25px;} 
        .category-item.active .category-icon.cate4:before,
        .category-item:hover .category-icon.cate4:before {background-position:-75px -25px;} 
        .category-item.active .category-icon.cate5:before,
        .category-item:hover .category-icon.cate5:before {background-position:-100px -25px;} 
        .category-item.active .category-icon.cate6:before,
        .category-item:hover .category-icon.cate6:before {background-position:-125px -25px;} 
        .category-item.active .category-icon.cate7:before,
        .category-item:hover .category-icon.cate7:before {background-position:-150px -25px;} 
        .category-item.active .category-icon.cate8:before,
        .category-item:hover .category-icon.cate8:before {background-position:-175px -25px;} 
      
        
        .category-text {
            /* flex: 1; */
            text-align: center;
        }
        
       .category-title {
            font-weight: 500;
            color:#d1d1d1;
            font-size:20px;
            letter-spacing: -1px;
            line-height:1;
            margin-bottom: 8px;
            white-space: nowrap;
        }
        
        .category-desc {
            font-size: 15px;
            color: #64656b;
            line-height: 1;
            font-weight: 500 !important;
            letter-spacing: -1px;
        }
                
        .category-item.active .category-title,
        .category-item:hover .category-title,
        .category-item.active .category-desc,
        .category-item:hover .category-desc {color:#fff;}
        
        .category-item.active .category-desc,
        .category-item:hover .category-desc {font-weight: 400 !important;}
        
        .category-item.active .category-desc,
        .category-item:hover .category-desc {
            color: rgba(255,255,255,0.8) !important;
        }
        
        
        /* 우측 음성 영역 */
        .voice-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0 300px 0 0;
            position: relative;
            background: #13141b;
            border-radius: 25px;
        }
        
        .title {
            font-size: 23px;
			font-weight: 350;
            color: #d9dee1;
            text-align: center;
            margin-bottom: 24px;
            letter-spacing: -1px;
    		line-height: 1.45;
        }
        
        .title strong {
         	color:#fff;
        }
        
        /* 사용자 아바타 */
        .user-avatars {
            display: flex;
            gap: 20px;
            margin-bottom: 60px;          
        }
        
        .user-avatars .avatar:first-child {background: url(/resources/images/img_user02.png) center center no-repeat;}
        .user-avatars .avatar:nth-child(2) {background: url(/resources/images/img_user01.png) center center no-repeat;}
        .user-avatars .avatar:nth-child(3) {background: url(/resources/images/img_user04.png) center center no-repeat;}
        .user-avatars .avatar:nth-child(4) {background: url(/resources/images/img_user03.png) center center no-repeat;}
        
        .avatar {
            width: 90px;
            height: 90px;
            border-radius: 50%;           
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease;
            border: 5px solid #191b1f;
            opacity: .5;
            
            font-size: 0;
            text-indent: -9999px;
        }
        
        .avatar:hover {
          /*   transform: scale(1.1); */
            border-color: #f8f8f9;
            box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
            opacity: 1;
            user-select: none;
            transform: translateY(-4px);transition: all 0.4s;
            
        }
        
        .avatar.active {
            border-color: #f8f8f9;
            box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
            opacity: 1;
        }
        
       /*  .avatar.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid #4299e1;
        }
         */
        /* 음성 시각화 @@ */
        .voice-visualization {
            width: 100%;
    	    height: 120px;
            position: relative;
            margin-bottom: 80px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Lottie 애니메이션 컨테이너 @@ */
        .lottie-container {
            width: 500px;  /* 정확한 크기 지정 */
            height: 200px; /* 정확한 크기 지정 */
            position: relative; /* absolute에서 relative로 변경 */
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden; /* 컨테이너를 벗어나는 부분 숨김 */
            scale: .95;
        }

        /* Lottie 애니메이션 크기 수정 @@ */
        #lottie-animation {
            width: 500px !important;   /* !important로 우선순위 강제 */
            height: 200px !important;  /* !important로 우선순위 강제 */
            max-width: 500px;
            max-height: 200px;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }
        
        #lottie-animation.active {
            opacity: 1;
        }
        
        /* 컨트롤 버튼들 - 그림과 같은 스타일 */
        .control-buttons {
            display: flex;
            gap: 26px;
            align-items: center;
            justify-content: center;
            padding: 0;
            
        }
        
        .control-button {
            width: 62px;
            height: 62px;
            border: none;
            border-radius: 12px;
            background:transparent;
            font-size: 26px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .control-button:hover {
           transform: translateY(-4px);
           box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        }
        
        .control-button:active {
            transform: translateY(-2px);
        }
        
        /* 마이크 버튼 - 중앙, 원형, 흰색 배경 */
        .mic-control-button {
            border-radius: 14px;
            width: 76px;
            height: 76px;
            background:url("/resources/images/icon_mirvo_mic.png") center center no-repeat;background-size: 35px 35px;
            border: 4px solid rgba(255,255,255,.9);
        }
        
        .mic-control-button:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }
        
        .mic-control-button.active {           
            box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
            border: 4px solid rgba(255,255,255,1);
		}
        
        .mic-control-button.listening {        
            box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
        }
        
        /* 일시정지 버튼 - 왼쪽, 사각형, 어두운 배경 */
        .pause-button {border: 3px solid rgba(255, 255, 255, 0.8);}
        .pause-button:before {content: "";width: 34px;height: 34px;opacity:.8;background: transparent url("/resources/images/icon_mirvo_pause.png") center center no-repeat;background-size: 34px 34px;}
        .pause-button:hover {border-color:#fff;}        
        .pause-button:hover:before {opacity:1;}
        .pause-button:disabled {cursor: not-allowed;transform: none;border: 3px solid rgba(255, 255, 255, 0.2);}        
        .pause-button:disabled:before {opacity: .4;}
        
        /* 정지 버튼 - 오른쪽, 사각형, 어두운 배경 */
        .stop-control-button {border: 3px solid rgba(255, 255, 255, 0.8);}        
        .stop-control-button:before {content: "";width: 34px;height: 34px;opacity:.8;background: transparent url("/resources/images/icon_mirvo_stop.png") center center no-repeat;background-size: 34px 34px;}        
        .stop-control-button:hover {border-color:#fff;}
        .stop-control-button:hover:before {opacity:1;}
        
        .stop-control-button:disabled {cursor: not-allowed;transform: none;border: 3px solid rgba(255, 255, 255, 0.2);}        
        .stop-control-button:disabled:before {opacity: .4;}
        
      
        
        /* 기존 파동 효과는 백업용으로 유지 (숨김 처리) */
        .wave-circle {
            position: absolute;
            border-radius: 50%;
            border: 2px solid rgba(102, 126, 234, 0.6);
            opacity: 0;
            display: none;
        }
        
        .wave-1 {
            width: 100%;
            height: 100%;
            animation: pulse 2s ease-in-out infinite;
        }
        
        .wave-2 {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            animation: pulse 2s ease-in-out infinite 0.5s;
        }
        
        .wave-3 {
            width: 60%;
            height: 60%;
            top: 20%;
            left: 20%;
            animation: pulse 2s ease-in-out infinite 1s;
        }
        
        .wave-4 {
            width: 40%;
            height: 40%;
            top: 30%;
            left: 30%;
            animation: pulse 2s ease-in-out infinite 1.5s;
        }
        
        .dots-pattern {
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(circle, rgba(102, 126, 234, 0.4) 1px, transparent 1px);
            background-size: 15px 15px;
            border-radius: 50%;
            opacity: 0;
            display: none;
            animation: rotate 20s linear infinite;
        }
        
        .mic-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #e74c3c;
            border: none;
            color: white;
            font-size: 32px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            display: none; /* 기존 마이크 버튼 숨김 - 새로운 컨트롤 버튼으로 대체 */
        }
        
        .mic-button:hover {
            background: #c0392b;
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .mic-button.active {
            background: #27ae60;
            animation: pulse-mic 1s ease-in-out infinite;
        }
        
        .mic-button.listening {
            background: #f39c12;
            animation: pulse-mic 0.5s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.3;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.6;
            }
        }
        
        @keyframes pulse-mic {
            0%, 100% {
                transform: translate(-50%, -50%) scale(1);
            }
            50% {
                transform: translate(-50%, -50%) scale(1.1);
            }
        }
        
        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
        
        /* 상태 표시 */
        .status-display {
        	display:none !important;
        
            background: rgba(26, 32, 44, 0.9);
            color: #e2e8f0;
            padding: 18px 30px;
            border-radius: 30px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
            margin-bottom: 25px;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            max-width: 500px;
            width: 100%;
            border: 1px solid rgba(74, 85, 104, 0.3);
            backdrop-filter: blur(10px);
        }
        
        .status-text {
            font-size: 16px;
            color: #e2e8f0;
            text-align: center;
        }
        
        .transcription {
            background: rgba(33, 150, 243, 0.2);
            border-left: 4px solid #2196f3;
            color: #93c5fd;
        }
        
        .response {
            background: rgba(76, 175, 80, 0.2);
            border-left: 4px solid #4caf50;
            color: #86efac;
        }
        
        .error {
            background: rgba(244, 67, 54, 0.2);
            border-left: 4px solid #f44336;
            color: #fca5a5;
        }
        
        /* 로딩 애니메이션 */
        .loading-dots {
            display: inline-block;
        }
        
        .loading-dots::after {
            content: '';
            animation: loading 1.5s infinite;
        }
        
        @keyframes loading {
            0% { content: ''; }
            25% { content: '.'; }
            50% { content: '..'; }
            75% { content: '...'; }
            100% { content: ''; }
        }
        
        /* API 키 설정 영역 */
        .api-key-section {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(26, 32, 44, 0.95);
            color: #e2e8f0;
            padding: 15px 25px;
            z-index: 1000;
            font-size: 14px;
            border-bottom: 2px solid rgba(74, 85, 104, 0.5);
            backdrop-filter: blur(15px);
        }
        
        .api-key-section.hidden {
            display: none;
        }
        
        .api-key-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .api-key-input {
            padding: 10px 15px;
            border: 1px solid rgba(74, 85, 104, 0.5);
            border-radius: 8px;
            width: 400px;
            font-family: monospace;
            font-size: 12px;
            background: rgba(45, 55, 72, 0.8);
            color: #e2e8f0;
        }
        
        .api-key-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
        }
        
        .api-key-button {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            margin-left: 15px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .api-key-button:hover {
            background: linear-gradient(135deg, #5a67d8, #6b46c1);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }
        
        .api-key-status {
            font-size: 12px;
            margin-left: 20px;
        }
        
        .api-key-status.success {
            color: #86efac;
        }
        
        .api-key-status.error {
            color: #fca5a5;
        }
        
        .container.with-api-section {          
            /* height: 100%; */
        }
        
        .connection-box {
	        position: absolute;
		    top: 0;
		    left: 0;
		    width: calc(100% - 320px);
	    }
        
        /* 연결 상태 표시 */
        .connection-status {
            position: absolute;
            top: 320px;
            left: 50%;
    		margin-left: -35px;
            padding: 10px 18px;
            border-radius: 25px;
            font-size: 13px;
            font-weight: 400;
            backdrop-filter: blur(10px);
            z-index: 999;
        }
        
        .connected {
            background: rgba(76, 175, 80, 0.2);
            color: #86efac;
            border: 1px solid rgba(76, 175, 80, 0.3);
        }
        
        .connected {display: none;}
        
        .connecting {
            background: rgba(33, 134, 234, 0.2);
            color: #fff;
            border: 1px solid rgba(33, 134, 234, 0.3);
        }
        
        .disconnected {
        	display:none;
        	
            background: rgb(255, 255, 255, 0.2);
		    color: #fff;
		    border: 1px solid rgb(255, 255, 255, 0.3);
        }
        
         .alertMsg {
        	margin-left: -130px;
        	
            background: rgb(255, 255, 255, 0.1);
		    color: #fff;
		    border: 1px solid rgb(255, 255, 255, 0.1);
        }
        
        /* 대화 히스토리 */
        .conversation-history {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 320px;
            background: #15171c;
            border-radius: 0 20px 20px 0;
            padding: 25px;
            overflow: hidden; /* 컨테이너 자체는 오버플로우 숨김 */
            z-index: 5;
            border-left: 1px solid #2b2d31;            
            display: flex;
            flex-direction: column;
        }
        
        /* 대화 아이템 컨테이너 - 실제 스크롤 영역 */
        #conversationItems {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px; /* 스크롤바 공간 확보 */
            scroll-behavior: smooth; /* 부드러운 스크롤 */
        }
        
        /* 스크롤바 스타일링 */
        #conversationItems::-webkit-scrollbar {
            width: 6px;
        }
        
        #conversationItems::-webkit-scrollbar-track {
            background: rgba(45, 55, 72, 0.5);
            border-radius: 3px;
        }
        
        #conversationItems::-webkit-scrollbar-thumb {
            background: rgba(77, 80, 88, 0.6);
            border-radius: 3px;
        }
        
        #conversationItems::-webkit-scrollbar-thumb:hover {
            background: rgba(77, 80, 88, 0.8);
        }
        
        .conversation-history .tit {
            color: #80828c;
            font-size:15px;
            font-weight:400;
            margin-bottom: 15px;
            flex-shrink: 0; /* 제목은 스크롤 영역에서 제외 */
        }
        
        .conversation-item {
            margin-bottom: 18px;
            padding: 12px;
            border-radius: 15px;
            animation: fadeInSlide 0.3s ease-out; /* 새 메시지 추가시 애니메이션 */
        }
        
        /* 새 메시지 추가 애니메이션 */
        @keyframes fadeInSlide {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .user-message {
            background: #4a55f9;
            margin-left: 25px;
            border-radius: 15px 0 15px 15px;
        }
        
        .assistant-message {
            background: #2b2f3a;
            margin-right: 25px;
            border-radius: 0 15px 15px 15px;
        }
        
        .message-role {
            font-weight: 400;
            font-size: 12px;
            margin-bottom: 6px;
            color: #aeb1be;
            line-height: 1.2;
        }
        
        .user-message .message-role{
        	color: #b4b7fc;
        } 
        
        
        .message-content {
            font-size: 14px;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.7);
        }
    
    
    @media (max-width: 1300px) {
   .container{width:100%;}
	}
    
    @media (max-width:1199px) { 
    .voice-area {padding: 20px 300px 30px 10px;}
    .container{flex-direction: column;width: 100%;height: auto;gap: 14px;}
    .sidebar {width:100%;grid-template-columns: repeat(4, 1fr);grid-template-rows: repeat(2, auto);}   
    .category-item {flex-direction: row;justify-content: start;gap: 0;padding: 10px 10px;border-radius: 15px;}
    .category-icon {width: 25% !important;}
    .category-title {font-size:19px;margin-bottom:5px;}
    .category-text{text-align: left;}
    .category-desc {font-size:14px;}
    .title {margin-bottom: 16px;}
    .user-avatars  {scale:.9;gap: 10px;}
    
    .connection-status{top: 290px;margin-left: -30px;}
   
    }
    
    @media (max-width: 760px) {
    .voice-area {padding: 30px 20px 30px 20px;background: transparent;}    
    .demoWrap .txt{font-size: 29px;}
    .demoWrap strong.tit {font-size: 33px;}
	.category-item {gap:8px;}
	.conversation-history{display:none;}
	.user-avatars {scale:.8;gap: 16px;}
	
	.category-title {font-size:18px;}
	.category-desc {font-size:13px;}
  /*   
    .category-title {font-size: 17px;}
    .category-item {border-radius: 50px;}
    .category-item .category-icon {margin-right:5px;margin-bottom:0;}
    .category-desc {display: none !important;} */
    
    .connection-box {width:100%;}
    .connected,
 	.connecting,
    .disconnected{left: 50%;top:300px;margin-left:-45px;}
    
    }
 	
 	@media (max-width: 480px) { 	
 	.voice-area {padding-top:25px;border-radius: 0px;} 
 	.container {gap:10px;}
 	.sidebar {gap:7px;}
 	.demoWrap .txt{font-size: 22px;padding: 0;}
    .demoWrap strong.tit {font-size: 24px;}
 	.category-item {padding: 6px 5px 10px 5px;gap: 0px;flex-direction: column;justify-content: center;border: 1px solid rgba(255, 255, 255, 0.2);border-radius: 10px;}
 	.category-title {font-size:15px;margin-bottom: 0;}
 	.category-desc {display: none !important;}
    .title {font-size: 19px;margin-bottom: 0;line-height: 1.35;}
    .user-avatars {scale:.65;margin-bottom: 30px;}   
 	.category-item .category-icon {scale: .8;width: 100% !important;margin-right:0px;margin-bottom:4px;}
 	.category-item .category-text {line-height: 1}
 	.lottie-container {scale:.7} 
 	.voice-visualization {margin-bottom:30px;margin-top: -20px;}
 	.control-buttons {gap:13px} 	
 	.control-button {border-width: 1px;width:54px;height:54px;border-radius: 8px;}
 	.mic-control-button {border-width: 3px;width:70px;height:70px;background-size: 55%;border-radius: 10px;}
 	.stop-control-button:before,
 	.pause-button:disabled:before {background-size: 76%;}
 	.connected,
 	.connecting,
 	.disconnected{top: 220px;margin-left:-45px;}
 	
	}
    
    