/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    height: 100vh;
    overflow: hidden;
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 顶部导航栏 */
.top-header {
    background: white;
    border-bottom: 1px solid #e8eaed;
    height: 64px;
    flex-shrink: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 43px;  /* 增大Logo高度以便更清晰 */
    width: auto;   /* 自动计算宽度，保持宽高比，避免压缩变形 */
    max-width: 100%;
    object-fit: contain;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    color: #4285f4;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #f1f3f4;
    color: #202124;
}

.nav-link.active {
    background: #e8f0fe;
    color: #4285f4;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.publish-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.publish-btn:hover {
    background: #3367d6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f1f3f4;
    border-radius: 8px;
    cursor: pointer;
}

.username {
    font-size: 14px;
    color: #202124;
}

/* 主内容区域 */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧边栏 */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e8eaed;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e8eaed;
}

.sidebar-header h3 {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.collapse-btn {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.collapse-btn:hover {
    background: #f1f3f4;
}

.server-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.server-item:hover {
    background: #f1f3f4;
}

.server-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4285f4;
}

.server-item label {
    flex: 1;
    font-size: 14px;
    color: #202124;
    cursor: pointer;
}

.server-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.server-item:hover .server-actions {
    opacity: 1;
}

.server-action-btn {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.server-action-btn:hover {
    background: #e8eaed;
    color: #202124;
}

/* 聊天区域 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e8eaed;
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-selector {
    margin-left: 16px;
}

.model-select {
    padding: 6px 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 13px;
    color: #202124;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.model-select:hover {
    border-color: #4285f4;
}

.model-select:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.back-btn {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.chat-title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
}

.chat-header-right {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: none;
    border: 1px solid #dadce0;
    border-radius: 6px;
    color: #5f6368;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    background: #f1f3f4;
    border-color: #c4c6c9;
}

/* 消息区域 */
.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

.messages-area::-webkit-scrollbar {
    width: 8px;
}

.messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.messages-area::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

/* 欢迎区域 */
.welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
}

.welcome-text {
    font-size: 15px;
    color: #5f6368;
    margin-bottom: 8px;
}

.welcome-subtext {
    font-size: 14px;
    color: #80868b;
}

.welcome-subtitle {
    font-size: 16px;
    color: #3c4043;
    margin-bottom: 20px;
    font-weight: 500;
}

.welcome-steps {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 24px;
    padding-left: 24px;
}

.welcome-steps li {
    font-size: 15px;
    color: #3c4043;
    margin-bottom: 16px;
    line-height: 1.6;
}

.welcome-steps li strong {
    color: #202124;
    font-weight: 600;
}

.welcome-steps .step-hint {
    display: block;
    font-size: 13px;
    color: #5f6368;
    margin-top: 4px;
    font-weight: normal;
}

.welcome-hint {
    font-size: 14px;
    color: #5f6368;
    margin-top: 16px;
    line-height: 1.5;
}

.welcome-link {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

.welcome-link:hover {
    text-decoration: underline;
}

/* MCP状态指示器 */
.mcp-status-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

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

.mcp-status-indicator.warning {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
}

.mcp-status-indicator.active {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mcp-status-indicator .indicator-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.mcp-status-indicator .indicator-text {
    flex: 1;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 32px 16px;
}

.empty-message {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
}

.empty-action-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.empty-action-btn:hover {
    background: #357ae8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* 消息气泡 */
.message {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease-out;
}

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

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: #4285f4;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .message-bubble {
    background: white;
    color: #202124;
    border: 1px solid #e8eaed;
    border-bottom-left-radius: 4px;
}

/* 打字指示器 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bdc1c6;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* 输入区域 */
.input-area {
    padding: 16px 24px 20px;
    background: white;
    border-top: 1px solid #e8eaed;
    flex-shrink: 0;
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 24px;
    transition: all 0.2s;
}

.input-container:focus-within {
    background: white;
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
}

.message-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #202124;
    resize: none;
    outline: none;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.message-input::placeholder {
    color: #80868b;
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4285f4;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-button:hover {
    background: #3367d6;
    transform: scale(1.05);
}

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

.send-button:disabled {
    background: #dadce0;
    cursor: not-allowed;
    transform: none;
}

.input-footer {
    margin-top: 12px;
    text-align: center;
}

.input-hint {
    font-size: 12px;
    color: #80868b;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .header-nav .nav-link span {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 64px;
        height: calc(100vh - 64px);
        z-index: 100;
        transition: left 0.3s;
    }

    .sidebar.show {
        left: 0;
    }

    .publish-btn span {
        display: none;
    }

    .chat-header {
        padding: 12px 16px;
    }

    .messages-area {
        padding: 16px;
    }

    .input-area {
        padding: 12px 16px 16px;
    }

    .chat-action-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 16px;
    }

    .header-content {
        padding: 0 12px;
    }

    .welcome-icon {
        font-size: 56px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .message-bubble {
        max-width: 85%;
    }
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    body {
        background: #202124;
    }

    .top-header {
        background: #292a2d;
        border-bottom-color: #3c4043;
    }

    .sidebar {
        background: #292a2d;
        border-right-color: #3c4043;
    }

    .chat-area {
        background: #202124;
    }

    .messages-area {
        background: #292a2d;
    }

    .input-area {
        background: #292a2d;
        border-top-color: #3c4043;
    }

    .input-container {
        background: #3c4043;
        border-color: #5f6368;
    }

    .message.bot .message-bubble {
        background: #3c4043;
        border-color: #5f6368;
        color: #e8eaed;
    }

    .chat-title,
    .welcome-title,
    .username {
        color: #e8eaed;
    }

    .welcome-text,
    .input-hint {
        color: #9aa0a6;
    }
}

/* ========== MCP Server Status Styles ========== */

/* 服务器条目加载状态 */
.server-item.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.server-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #ddd;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: mcp-spinner 0.8s linear infinite;
}

/* 加载动画 */
@keyframes mcp-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* 状态徽章基础样式 */
.status-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 1.4;
    vertical-align: middle;
}

/* 成功状态 */
.status-badge.status-success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #c6e1c6;
}

/* 错误状态 */
.status-badge.status-error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #f4b8b6;
}

/* 信息状态 */
.status-badge.status-info {
    background-color: #e8f0fe;
    color: #1967d2;
    border: 1px solid #aecbfa;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .server-item.loading::after {
        border-color: #5f6368;
        border-top-color: #8ab4f8;
    }

    .status-badge.status-success {
        background-color: #1e3a2e;
        color: #81c995;
        border-color: #2d5a3f;
    }

    .status-badge.status-error {
        background-color: #3a1e1e;
        color: #f28b82;
        border-color: #5a2d2d;
    }

    .status-badge.status-info {
        background-color: #1e2a3a;
        color: #8ab4f8;
        border-color: #2d3f5a;
    }
}

/* 工具调用样式 (Enhanced from evol) */
.tool-calls-message {
    margin: 16px 0;
}

.tool-calls-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
}

.tool-call-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tool-call-item.success {
    border-color: #d4edda;
}

.tool-call-item.error {
    border-color: #f8d7da;
}

.tool-call-item:hover {
    border-color: #c0c0c0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tool-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
    transition: background 0.2s;
}

.tool-call-header:hover {
    background: #f5f5f5;
}

.tool-call-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-icon {
    color: #666;
    flex-shrink: 0;
}

.tool-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.tool-call-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-info {
    font-size: 11px;
    color: #666;
    background: #e8eaed;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.status-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon.success {
    background: #4caf50;
}

.status-icon.success svg {
    stroke: white;
}

.status-icon.error {
    background: #f44336;
}

.status-icon.error svg {
    stroke: white;
}

.expand-icon {
    color: #666;
    transition: transform 0.2s;
}

.tool-call-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.tool-call-details {
    display: none;
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
}

.tool-call-item.expanded .tool-call-details {
    display: block;
}

.detail-section {
    margin: 8px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #666;
}

.section-header svg {
    flex-shrink: 0;
}

.section-title {
    font-weight: 500;
    font-size: 12px;
    color: #666;
}

.section-content {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.section-content.error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
}

.section-content pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

.section-content code {
    display: block;
}

.detail-divider {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 12px 0;
}

/* 消息操作按钮样式 (from evol MessageToolbar) */
.message.bot {
    position: relative;
}

.message-toolbar {
    display: none;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    margin-top: 8px;
    padding: 4px 0;
    justify-content: flex-start;
}

.message.bot:hover .message-toolbar {
    display: flex;
}

.message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.message-btn:hover {
    background: #edefef;
    color: #333;
}

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

.message-btn svg {
    stroke: currentColor;
}

.message-btn[title]::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.message-btn:hover::after {
    opacity: 1;
}

/* Toast 动画 */
@keyframes slideInUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}


/* ========== Configuration Modal Styles ========== */
.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.config-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.config-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.config-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.config-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.config-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.config-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

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

.config-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.config-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #f8f9fa;
}

.config-form-input:focus {
    outline: none;
    border-color: #4285f4;
    background: white;
}

.config-form-input:disabled {
    background: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

.config-json-editor {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.config-json-editor:focus {
    outline: none;
    border-color: #4285f4;
}

.config-json-editor.error {
    border-color: #dc3545;
}

.config-error-message {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    font-size: 12px;
    color: #c33;
}

.config-info-text {
    margin-top: 16px;
    padding: 12px;
    background: #f0f7ff;
    border: 1px solid #d0e8ff;
    border-radius: 6px;
    font-size: 13px;
    color: #0066cc;
}

.config-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.config-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.config-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.config-btn-secondary:hover {
    background: #e8e8e8;
}

.config-btn-primary {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
}

.config-btn-primary:hover {
    background: linear-gradient(135deg, #3367d6, #2a56c6);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.config-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Server Actions Buttons ========== */
.server-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.server-item:hover .server-actions {
    opacity: 1;
}

.server-action-btn {
    padding: 4px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.server-action-btn:hover {
    background: #e8eaed;
    color: #202124;
}

.server-action-btn svg {
    width: 14px;
    height: 14px;
}

.server-config-btn:hover {
    background: #e3f2fd;
    color: #1976d2;
}
