/* 自定义样式 */
.terminal {
    background-color: #1a1a1a;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    padding: 1rem;
    border-radius: 0.25rem;
    height: 400px;
    overflow-y: auto;
}

.terminal-line {
    margin: 0;
    padding: 0.25rem 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    padding: 0.25rem;
}

.terminal-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.server-card {
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.plugin-card {
    transition: all 0.3s ease;
}

.plugin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 动画效果 */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式设计补充 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* 状态指示器 */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online {
    background-color: #10B981;
}

.status-offline {
    background-color: #EF4444;
}

.status-warning {
    background-color: #F59E0B;
}

/* 代码块样式 */
.code-block {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre;
}

/* 按钮悬停效果 */
.btn-hover-effect {
    transition: all 0.2s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 模态框样式 */
.modal-overlay {
    display: none;  /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay[v-show="true"] {
    display: flex;  /* 只在显示时使用 flex 布局 */
}

.modal-content {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
} 