@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dynamic-gradient);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    color: #2d3748;
    overflow-x: hidden;
    transition: background 1s ease;
}

:root {
    --dynamic-gradient: linear-gradient(135deg, #ffeef8 0%, #f0f4ff 25%, #fff0f5 50%, #f5f9ff 75%, #fef7f0 100%);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}


/* 다크모드 스타일 */
body.dark-mode {
    color: #e2e8f0;
}

body.dark-mode::before {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .main-content {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .welcome-text h1 {
    color: #e2e8f0;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 50%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .welcome-text p {
    color: rgba(226, 232, 240, 0.8);
}

body.dark-mode .quick-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .quick-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .input-container input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-mode .input-container input::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

body.dark-mode .input-container input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* AI 대화 시스템 스타일 */
.temporary-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95em;
    line-height: 1.5;
    animation: slideInUp 0.3s ease-out;
}

.user-message {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
}

.ai-message {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

.message-content {
    flex: 1;
    word-wrap: break-word;
}

.message-close {
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 0 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* 로딩 스피너 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* 다크모드 메시지 스타일 */
body.dark-mode .temporary-message {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .user-message {
    background: rgba(102, 126, 234, 0.2);
    color: #9f7aea;
    border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .ai-message {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.4);
}

body.dark-mode .error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

body.dark-mode .message-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 버튼 비활성화 상태 */
.input-container button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-container input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 승인 모달 스타일 */
.approval-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.approval-modal.active {
    opacity: 1;
}

.approval-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.approval-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.approval-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
}

.approval-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.approval-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.approval-body {
    padding: 24px;
}

.ai-message-preview {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
}

.ai-avatar {
    font-size: 1.5em;
    flex-shrink: 0;
}

.ai-response {
    color: #16a34a;
    font-size: 0.95em;
    line-height: 1.5;
    font-weight: 500;
}

.approval-action-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

.action-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.action-details h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.1em;
    font-weight: 600;
}

.action-details p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95em;
    line-height: 1.4;
}

.approval-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
}

.approval-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.cancel-btn:hover {
    background: rgba(156, 163, 175, 0.2);
    border-color: rgba(156, 163, 175, 0.5);
    transform: translateY(-1px);
}

.approve-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.approve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* 다크모드 승인 모달 */
body.dark-mode .approval-modal-content {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .approval-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .approval-header h3 {
    color: #e2e8f0;
}

body.dark-mode .approval-close {
    color: #a0aec0;
}

body.dark-mode .ai-message-preview {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

body.dark-mode .ai-response {
    color: #4ade80;
}

body.dark-mode .approval-action-info {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .action-details h4 {
    color: #e2e8f0;
}

body.dark-mode .action-details p {
    color: #a0aec0;
}

body.dark-mode .cancel-btn {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.4);
}

body.dark-mode .cancel-btn:hover {
    background: rgba(156, 163, 175, 0.3);
    border-color: rgba(156, 163, 175, 0.6);
}

/* 반응형 승인 모달 */
@media (max-width: 768px) {
    .approval-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .approval-body {
        padding: 20px;
    }
    
    .approval-action-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .approval-footer {
        flex-direction: column;
    }
    
    .approval-btn {
        width: 100%;
        justify-content: center;
    }
}

body.dark-mode .page-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .chat-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .chat-header {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .chat-close {
    color: #e2e8f0;
}

body.dark-mode .chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .chat-input {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .chat-input input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-mode .chat-input input::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

body.dark-mode .chat-input input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

/* 상단 제어 패널 */
.top-controls {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 1001;
}

/* 페이지 콘텐츠가 표시될 때 연결된 Agent 창 숨기기 */
.page-content[style*="display: block"] ~ .top-controls .proxy-status,
.page-content[style*="display: block"] ~ .top-controls .proxy-panel {
    display: none !important;
}

/* 다크모드 토글 버튼 */
.theme-toggle {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: #2d3748;
    transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg);
    position: absolute;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* 다크모드일 때 아이콘 전환 */
body.dark-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .theme-toggle svg {
    color: #e2e8f0;
}

body.dark-mode .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

body.dark-mode .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* MCP 상태 표시 */
.proxy-status {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 8px 16px 8px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 80px;
}

.proxy-status:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.proxy-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
}

.status-light.connected.green {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-light.connecting.orange {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    animation: blink 1s infinite;
}

.status-light.error.red {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulse-red {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    }
}

.status-text {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    transition: color 0.3s ease;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.proxy-status.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* MCP 정보 패널 */
.proxy-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 1000;
}

.proxy-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.proxy-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.proxy-panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.refresh-btn {
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    transform: rotate(90deg);
}

.refresh-btn svg {
    width: 16px;
    height: 16px;
    color: #667eea;
}

.proxy-servers,
.mcp-tools {
    padding: 16px 20px;
}

.proxy-servers h4,
.mcp-tools h4 {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.server-item:hover {
    background: rgba(241, 245, 249, 1);
    border-color: rgba(203, 213, 225, 0.8);
}

.server-item.expanded {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.server-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 4px 0;
}

.server-main-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.server-toggle {
    cursor: pointer;
    padding: 4px;
}

.server-expand-arrow {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.server-item.expanded .server-expand-arrow {
    transform: rotate(180deg);
}

.server-tools {
    margin-top: 8px;
    padding: 0 12px 8px 12px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.server-tools::-webkit-scrollbar {
    width: 4px;
}

.server-tools::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.server-tools::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
}

.server-tools::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.4);
}

.server-item.expanded .server-tools {
    opacity: 1;
    max-height: none;
    overflow-y: visible;
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.3);
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

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

.server-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.server-status.off {
    display: none; /* 완전히 숨김 */
}

.server-status.orange {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    animation: blink 1s infinite;
}

.server-status.green {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.server-status.red {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* 비활성화된 서버는 기본 스타일 유지 - 라이트만 숨김 */

.server-info {
    flex: 1;
}

.server-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 2px;
}

.server-url {
    font-size: 11px;
    color: #64748b;
    font-family: 'Monaco', 'Menlo', monospace;
}

.tool-icon {
    width: 16px;
    height: 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #667eea;
    font-weight: 600;
}

.tool-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a202c;
}

.tool-description {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* 다크모드 MCP 패널 스타일 */
body.dark-mode .proxy-status {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .proxy-status:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .status-text {
    color: #e2e8f0;
}

body.dark-mode .dropdown-arrow {
    color: #94a3b8;
}

body.dark-mode .proxy-panel {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .proxy-panel-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .proxy-panel-header h3 {
    color: #e2e8f0;
}

body.dark-mode .refresh-btn {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .refresh-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .proxy-servers h4,
body.dark-mode .mcp-tools h4 {
    color: #cbd5e0;
}

/* 다크모드에서 Agent 및 MCP 서버 텍스트 색상 */
body.dark-mode .agent-name {
    color: #e2e8f0;
}

body.dark-mode .agent-description {
    color: #a0aec0;
}

body.dark-mode .mcp-server-name {
    color: #cbd5e0;
}

body.dark-mode .mcp-server-url {
    color: #718096;
}

body.dark-mode .agent-expand-arrow {
    color: #a0aec0;
}

body.dark-mode .mcp-server-expand-arrow {
    color: #718096;
}

body.dark-mode .agent-header:hover .agent-expand-arrow {
    color: #e2e8f0;
}

body.dark-mode .mcp-server-header:hover .mcp-server-expand-arrow {
    color: #cbd5e0;
}

body.dark-mode .server-item {
    background: rgba(45, 55, 72, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .server-item:hover {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .server-item.expanded {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .server-expand-arrow {
    color: #94a3b8;
}

body.dark-mode .server-tools {
    border-left-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .tool-item {
    background: rgba(26, 32, 44, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .tool-item:hover {
    background: rgba(26, 32, 44, 1);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .server-name,
body.dark-mode .tool-name {
    color: #e2e8f0;
}

body.dark-mode .server-url,
body.dark-mode .tool-description {
    color: #94a3b8;
}

body.dark-mode .tool-icon {
    background: rgba(102, 126, 234, 0.2);
}

.empty-state {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

/* 연결 실패 시 컴팩트한 스타일 */
.proxy-panel .empty-state {
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    font-style: normal;
}

body.dark-mode .empty-state {
    color: #94a3b8;
}

body.dark-mode .proxy-panel .empty-state {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.tool-info {
    flex: 1;
}



/* 페이지 콘텐츠 영역 스타일 */
.page-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dynamic-gradient);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.page-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    z-index: 101;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.95em;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-body {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    
    /* 강제로 세로 레이아웃 적용 */
    flex-direction: column;
    align-items: stretch;
}

/* 마크다운 콘텐츠 스타일링 */
.page-body * {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal !important;
    display: block;
    width: auto;
}

.page-body {
    /* 모든 자식 요소를 강제로 블록 레벨로 */
}

.page-body > * {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    position: static !important;
}

.page-body h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 30px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #718096 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    width: 100%;
}

.page-body h2 {
    font-size: 2em;
    font-weight: 600;
    color: #2d3748;
    margin: 40px 0 20px 0;
    line-height: 1.3;
    border-bottom: 2px solid rgba(45, 55, 72, 0.1);
    padding-bottom: 10px;
    display: block;
    width: 100%;
}

.page-body h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #4a5568;
    margin: 30px 0 15px 0;
    line-height: 1.4;
    display: block;
    width: 100%;
}

.page-body h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #4a5568;
    margin: 25px 0 12px 0;
}

.page-body p {
    color: #4a5568;
    margin-bottom: 18px;
    font-size: 1.1em;
    line-height: 1.7;
    width: 100%;
    display: block;
    white-space: normal;
    word-wrap: break-word;
}

.page-body ul, .page-body ol {
    color: #4a5568;
    margin: 15px 0 15px 25px;
    font-size: 1.05em;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

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

.page-body strong {
    font-weight: 600;
    color: #2d3748;
}

.page-body em {
    font-style: italic;
    color: #718096;
}

.page-body code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 3px 6px;
    border-radius: 5px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

.page-body pre {
    background: rgba(45, 55, 72, 0.05);
    border: 1px solid rgba(45, 55, 72, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.page-body pre code {
    background: none;
    color: #2d3748;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.page-body a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.page-body a:hover {
    color: #553c9a;
    border-bottom-color: #667eea;
}

.page-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(45, 55, 72, 0.2), transparent);
    margin: 40px 0;
}

.page-body blockquote {
    border-left: 4px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
}

/* 다크모드 페이지 콘텐츠 스타일 */
body.dark-mode .page-content {
    color: #e2e8f0;
}

body.dark-mode .page-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .back-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-mode .back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .page-body h1 {
    color: #e2e8f0;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 50%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .page-body h2 {
    color: #e2e8f0;
    border-bottom-color: rgba(226, 232, 240, 0.2);
}

body.dark-mode .page-body h3,
body.dark-mode .page-body h4 {
    color: #cbd5e0;
}

body.dark-mode .page-body p,
body.dark-mode .page-body ul,
body.dark-mode .page-body ol,
body.dark-mode .page-body li {
    color: #a0aec0;
}

body.dark-mode .page-body strong {
    color: #e2e8f0;
}

body.dark-mode .page-body em {
    color: #718096;
}

body.dark-mode .page-body code {
    background: rgba(102, 126, 234, 0.2);
    color: #9f7aea;
}

body.dark-mode .page-body pre {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .page-body pre code {
    color: #e2e8f0;
}

body.dark-mode .page-body a {
    color: #9f7aea;
}

body.dark-mode .page-body a:hover {
    color: #b794f6;
    border-bottom-color: #9f7aea;
}

body.dark-mode .page-body hr {
    background: linear-gradient(to right, transparent, rgba(226, 232, 240, 0.2), transparent);
}

body.dark-mode .page-body blockquote {
    border-left-color: #9f7aea;
    background: rgba(159, 122, 234, 0.1);
    color: #a0aec0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-body {
        padding: 20px 15px;
    }
    
    .page-body h1 {
        font-size: 2em;
    }
    
    .page-body h2 {
        font-size: 1.6em;
    }
    
    .page-body h3 {
        font-size: 1.3em;
    }
    
    .page-body p,
    .page-body ul,
    .page-body ol {
        font-size: 1em;
    }
}

/* 블로그 페이지 스타일 */
.blog-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px;
    min-height: calc(100vh - 120px);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.blog-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.new-post-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.new-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.new-post-btn svg {
    width: 18px;
    height: 18px;
}

.empty-state {
    text-align: center;
    padding: 120px 40px;
    color: #4a5568;
}

.empty-state h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2d3748;
}

.empty-state p {
    font-size: 1.2em;
    color: #718096;
}

.blog-posts {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    margin-top: 20px;
}

.blog-post {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-height: 280px;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.post-date {
    font-size: 0.85em;
    color: #718096;
    font-weight: 500;
}

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

.edit-btn, .delete-btn {
    padding: 4px 8px;
    font-size: 0.75em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.edit-btn {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.edit-btn:hover {
    background: rgba(52, 152, 219, 0.3);
}

.delete-btn {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.delete-btn:hover {
    background: rgba(231, 76, 60, 0.3);
}

.post-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    line-height: 1.4;
}

.post-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    overflow: hidden;
    font-size: 1em;
    max-height: 120px;
}

.post-excerpt h1 {
    font-size: 1.4em;
    font-weight: 600;
    margin: 8px 0;
    color: #2d3748;
}

.post-excerpt h2 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 6px 0;
    color: #2d3748;
}

.post-excerpt h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 4px 0;
    color: #2d3748;
}

.post-excerpt strong {
    font-weight: 600;
    color: #2d3748;
}

.post-excerpt em {
    font-style: italic;
    color: #4a5568;
}

.post-excerpt code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.post-excerpt a {
    color: #667eea;
    text-decoration: none;
}

.post-excerpt a:hover {
    text-decoration: underline;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 500;
}

/* 다크모드 블로그 스타일 */
body.dark-mode .blog-header h1 {
    color: #e2e8f0;
}

body.dark-mode .empty-state h3 {
    color: #e2e8f0;
}

body.dark-mode .empty-state {
    color: #a0aec0;
}

body.dark-mode .empty-state p {
    color: #718096;
}

body.dark-mode .blog-post {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .blog-post:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .post-title {
    color: #e2e8f0;
}

body.dark-mode .post-excerpt {
    color: #a0aec0;
}

body.dark-mode .post-date {
    color: #718096;
}

body.dark-mode .post-excerpt h1,
body.dark-mode .post-excerpt h2,
body.dark-mode .post-excerpt h3 {
    color: #e2e8f0;
}

body.dark-mode .post-excerpt strong {
    color: #e2e8f0;
}

body.dark-mode .post-excerpt em {
    color: #a0aec0;
}

body.dark-mode .post-excerpt code {
    background: rgba(102, 126, 234, 0.2);
    color: #9f7aea;
}

body.dark-mode .post-excerpt a {
    color: #9f7aea;
}

/* 블로그 에디터 스타일 */
.editor-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px;
    min-height: 100vh;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.editor-header h2 {
    color: #2d3748;
    margin: 0;
    font-size: 1.8em;
}

.editor-actions {
    display: flex;
    gap: 12px;
}

.editor-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
}

.preview-btn, .save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.preview-btn:hover, .save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cancel-btn {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.cancel-btn:hover {
    background: rgba(231, 76, 60, 0.2);
}

.editor-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.title-input, .tags-input {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    color: #2d3748;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.title-input {
    font-size: 1.2em;
    font-weight: 600;
}

.title-input:focus, .tags-input:focus {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.editor-wrapper {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.editor-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.editor-content {
    position: relative;
    min-height: 600px;
}

.markdown-editor {
    width: 100%;
    height: 600px;
    padding: 24px;
    border: none;
    outline: none;
    background: transparent;
    color: #2d3748;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1em;
    line-height: 1.6;
    resize: vertical;
}

.preview-content {
    padding: 24px;
    min-height: 560px;
    color: #2d3748;
    line-height: 1.6;
}

.preview-content h1, .preview-content h2, .preview-content h3 {
    margin-top: 24px;
    margin-bottom: 16px;
    color: #2d3748;
}

.preview-content h1 {
    font-size: 2em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.preview-content h2 {
    font-size: 1.5em;
}

.preview-content h3 {
    font-size: 1.2em;
}

.preview-content p {
    margin-bottom: 16px;
}

.preview-content code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.preview-content pre {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.preview-content pre code {
    background: none;
    color: #2d3748;
    padding: 0;
}

.preview-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.preview-content li {
    margin-bottom: 8px;
}

/* 포스트 뷰어 스타일 */
.post-viewer {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    min-height: 100vh;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-list-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.3);
    color: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.back-to-list-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.post-content .post-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-content .post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #718096;
}

.post-content .post-tags {
    margin-bottom: 30px;
}

.post-body {
    font-size: 1.3em;
    line-height: 1.8;
    color: #2d3748;
    max-width: none;
}

.post-body h1, .post-body h2, .post-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2d3748;
}

.post-body h1 {
    font-size: 2.2em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 12px;
}

.post-body h2 {
    font-size: 1.8em;
}

.post-body h3 {
    font-size: 1.5em;
}

.post-body p {
    margin-bottom: 24px;
}

.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 12px;
}

.post-body code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-body pre code {
    background: none;
    color: #2d3748;
    padding: 0;
    font-size: 1em;
}

/* 다크모드 에디터 스타일 */
body.dark-mode .editor-header h2 {
    color: #e2e8f0;
}

body.dark-mode .title-input, 
body.dark-mode .tags-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-mode .title-input::placeholder,
body.dark-mode .tags-input::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

body.dark-mode .editor-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .editor-tabs {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .tab-btn {
    color: #a0aec0;
}

body.dark-mode .tab-btn.active {
    background: rgba(102, 126, 234, 0.2);
    color: #9f7aea;
}

body.dark-mode .markdown-editor {
    color: #e2e8f0;
}

body.dark-mode .preview-content {
    color: #e2e8f0;
}

body.dark-mode .preview-content h1,
body.dark-mode .preview-content h2,
body.dark-mode .preview-content h3 {
    color: #e2e8f0;
}

body.dark-mode .back-to-list-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .post-content .post-title {
    color: #e2e8f0;
}

body.dark-mode .post-body {
    color: #e2e8f0;
}

body.dark-mode .post-body h1,
body.dark-mode .post-body h2,
body.dark-mode .post-body h3 {
    color: #e2e8f0;
}

body.dark-mode .post-body code {
    background: rgba(102, 126, 234, 0.2);
    color: #9f7aea;
}

body.dark-mode .post-body pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .post-body pre code {
    background: none;
    color: #e2e8f0;
}

body.dark-mode .post-body a {
    color: #9f7aea;
}

body.dark-mode .post-body a:hover {
    color: #b794f6;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.main-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 80px 60px;
    border-radius: 32px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    max-width: 700px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.welcome-text h1 {
    font-size: 3.2em;
    margin-bottom: 24px;
    color: #2d3748;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(45, 55, 72, 0.3);
}

.welcome-text p {
    font-size: 1.1em;
    margin-bottom: 48px;
    color: #4a5568;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.quick-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.4);
    color: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.input-container {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.input-container input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-size: 0.95em;
    color: #2d3748;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.input-container input::placeholder {
    color: rgba(45, 55, 72, 0.6);
}

.input-container input:focus {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.input-container button {
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.input-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* 페이지 콘텐츠 스타일 */
.page-content {
    min-height: 100vh;
    background: inherit;
    position: relative;
}

.page-header {
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.back-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.3);
    color: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-body {
    padding: 80px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

/* 플로팅 채팅 버튼 */
.chat-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-float-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.chat-float-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* 채팅창 스타일 */
.chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-container.active {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.chat-header {
    background: rgba(255, 255, 255, 0.1);
    color: #2d3748;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: #2d3748;
    font-size: 1.2em;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: transparent;
}

.chat-input {
    padding: 20px;
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: #2d3748;
    outline: none;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
}

.chat-input input::placeholder {
    color: rgba(45, 55, 72, 0.6);
}

.chat-input input:focus {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.chat-input button {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.chat-input button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .main-content {
        padding: 60px 32px;
        margin: 0;
        border-radius: 20px;
    }
    
    .welcome-text h1 {
        font-size: 2.4em;
        margin-bottom: 20px;
    }
    
    .welcome-text p {
        font-size: 1em;
        margin-bottom: 36px;
    }
    
    .quick-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .quick-btn {
        width: 240px;
        padding: 16px 32px;
    }
    
    .input-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-container input {
        width: 100%;
    }
    
    .input-container button {
        width: 100%;
    }
    
    .chat-float-btn {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .chat-container {
        width: calc(100vw - 32px);
        height: 400px;
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    
    .page-header {
        padding: 20px 24px;
    }
    
    .page-body {
        padding: 60px 24px;
    }
    
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .blog-container {
        padding: 24px 16px;
    }
    
    .blog-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .blog-header h1 {
        font-size: 2em;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-post {
        min-height: 240px;
        padding: 24px;
    }
    
    .empty-state {
        padding: 80px 20px;
    }
    
    .empty-state h3 {
        font-size: 1.6em;
    }
    
    .empty-state p {
        font-size: 1.1em;
    }
    
    .editor-container {
        padding: 20px 16px;
    }
    
    .editor-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .editor-actions {
        justify-content: center;
    }
    
    .editor-content {
        min-height: 400px;
    }
    
    .markdown-editor {
        height: 400px;
        padding: 16px;
        font-size: 0.95em;
    }
    
    .preview-content {
        padding: 16px;
        min-height: 360px;
    }
    
    .post-viewer {
        padding: 20px 16px;
    }
    
    .post-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .post-content .post-title {
        font-size: 2em;
    }
    
    .post-content .post-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* 타이핑 커서 효과 */
.typing-cursor::after {
    content: '│';
    color: rgba(45, 55, 72, 0.8);
    animation: blink 1.2s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 부드러운 페이드인 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 스크롤바 스타일링 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* MCP 패널 스크롤바 스타일링 */
.proxy-panel::-webkit-scrollbar {
    width: 6px;
}

.proxy-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.proxy-panel::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.proxy-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* 컴팩트 승인 UI */
.compact-approval {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    max-width: 320px;
    z-index: 10000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.compact-approval.active {
    transform: translateY(0);
    opacity: 1;
}

.compact-approval-message {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 14px;
    color: #2d3748;
}

.compact-approval-message .action-icon {
    font-size: 16px;
}

.compact-approval-message .action-text {
    font-weight: 500;
}

.compact-approval-buttons {
    display: flex;
    gap: 8px;
}

.compact-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compact-btn.reject-btn {
    background: #fee2e2;
    color: #dc2626;
}

.compact-btn.reject-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.compact-btn.approve-btn {
    background: #dcfce7;
    color: #16a34a;
}

.compact-btn.approve-btn:hover {
    background: #bbf7d0;
    transform: scale(1.1);
}

/* 다크모드 컴팩트 승인 UI */
body.dark-mode .compact-approval {
    background: rgba(45, 55, 72, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .compact-approval-message {
    color: #e2e8f0;
}

body.dark-mode .compact-btn.reject-btn {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

body.dark-mode .compact-btn.reject-btn:hover {
    background: rgba(220, 38, 38, 0.3);
}

body.dark-mode .compact-btn.approve-btn {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}

body.dark-mode .compact-btn.approve-btn:hover {
    background: rgba(22, 163, 74, 0.3);
}

/* 인라인 승인 UI (AI 메시지 바로 밑) */
.inline-approval {
    margin: 8px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.inline-approval.active {
    opacity: 1;
    transform: translateY(0);
}

.inline-approval-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inline-approval .approval-message {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 14px;
    color: #2d3748;
}

.inline-approval .action-icon {
    font-size: 16px;
}

.inline-approval .action-text {
    font-weight: 500;
}

.inline-approval .approval-buttons {
    display: flex;
    gap: 6px;
}

.inline-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inline-btn.reject-btn {
    background: #fee2e2;
    color: #dc2626;
}

.inline-btn.reject-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.inline-btn.approve-btn {
    background: #dcfce7;
    color: #16a34a;
}

.inline-btn.approve-btn:hover {
    background: #bbf7d0;
    transform: scale(1.1);
}

/* 다크모드 인라인 승인 UI */
body.dark-mode .inline-approval {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .inline-approval .approval-message {
    color: #e2e8f0;
}

body.dark-mode .inline-btn.reject-btn {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

body.dark-mode .inline-btn.reject-btn:hover {
    background: rgba(220, 38, 38, 0.3);
}

body.dark-mode .inline-btn.approve-btn {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}

body.dark-mode .inline-btn.approve-btn:hover {
    background: rgba(22, 163, 74, 0.3);
}

/* Cursor 스타일 도구 목록 */
.tool-item-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    font-size: 13px;
}

.tool-item-simple:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(102, 126, 234, 0.2);
}

.tool-item-simple.disabled {
    opacity: 0.6;
}

.tool-item-simple.disabled .tool-name {
    color: #9ca3af;
}

.tool-content {
    flex: 1;
}

.tool-item-simple .tool-name {
    font-weight: 500;
    color: #374151;
}

.tool-toggle {
    cursor: pointer;
    padding: 2px;
}

.toggle-switch {
    width: 32px;
    height: 18px;
    background: #e5e7eb;
    border-radius: 9px;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.toggle-switch.on {
    background: #3b82f6;
    border-color: #2563eb;
}

.toggle-knob {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.on .toggle-knob {
    transform: translateX(14px);
}

/* 다크모드 도구 목록 */
body.dark-mode .tool-item-simple {
    background: rgba(55, 65, 81, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tool-item-simple:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .tool-item-simple .tool-name {
    color: #e5e7eb;
}

body.dark-mode .tool-item-simple.disabled .tool-name {
    color: #6b7280;
}

body.dark-mode .toggle-switch {
    background: #4b5563;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .toggle-switch.on {
    background: #3b82f6;
    border-color: #2563eb;
}

/* 도구 그리드 (태그 형태) */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tool-tag {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-tag:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* 다크모드 도구 태그 */
body.dark-mode .tool-tag {
    background: rgba(102, 126, 234, 0.2);
    color: #8b9cf7;
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .tool-tag:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

/* 다크모드 비활성화된 서버 스타일 */
body.dark-mode .server-item.server-disabled .server-name,
body.dark-mode .server-item.server-disabled .server-url {
    color: #6b7280;
}

/* Agent 계층 구조 스타일 */
.agent-item {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.agent-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.agent-header:hover .agent-expand-arrow {
    color: #2d3748;
    transform: scale(1.1);
}

.agent-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.agent-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
    transition: all 0.3s ease;
}

.agent-info {
    flex: 1;
}

.agent-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 2px;
}

.agent-description {
    font-size: 12px;
    color: #718096;
}

.agent-expand-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: #4a5568;
}

.agent-item.expanded .agent-expand-arrow {
    transform: rotate(180deg);
}

.agent-mcp-servers {
    padding: 0 16px 12px 16px;
    display: none;
}

.agent-item.expanded .agent-mcp-servers {
    display: block;
}

/* MCP 서버 스타일 */
.mcp-server-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-left: 20px;
    overflow: hidden;
}

.mcp-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mcp-server-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mcp-server-header:hover .mcp-server-expand-arrow {
    color: #4a5568;
    transform: scale(1.1);
}

.mcp-server-main-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.mcp-server-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
}

.mcp-server-info {
    flex: 1;
}

.mcp-server-name {
    font-weight: 500;
    color: #4a5568;
    font-size: 13px;
    margin-bottom: 1px;
}

.mcp-server-url {
    font-size: 11px;
    color: #a0aec0;
}

.mcp-server-expand-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    color: #718096;
}

.mcp-server-item.expanded .mcp-server-expand-arrow {
    transform: rotate(180deg);
}

.mcp-server-tools {
    padding: 0 12px 10px 12px;
    display: none;
}

.mcp-server-item.expanded .mcp-server-tools {
    display: block;
}

.agent-toggle, .mcp-server-toggle {
    margin-left: 8px;
}