:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #34495e;
    --border-radius: 12px;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
}

/* 顶部标题样式 */
.header h1 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.minecraft-icon {
    color: #52a235;
    margin-right: 0.2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

/* 卡片通用样式 */
.dashboard-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    height: 100%;
    transition: all var(--transition-speed);
    border: none;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

/* 状态卡片样式 */
.status-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

.status-badge {
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

.status-online {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-offline {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.server-info {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: 500;
    color: #7f8c8d;
}

.info-value {
    font-weight: 600;
    color: var(--dark-color);
}

/* 控制按钮样式 */
.control-buttons {
    display: grid;
    gap: 1rem;
}

.control-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.control-btn i {
    margin-right: 0.5rem;
}

.start-btn {
    background-color: var(--accent-color);
    color: white;
}

.stop-btn {
    background-color: var(--danger-color);
    color: white;
}

.refresh-btn {
    background-color: var(--info-color);
    color: white;
}

.control-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.control-btn:active {
    transform: translateY(1px);
}

.control-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 玩家列表样式 */
.player-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.players-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.player-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(236, 240, 241, 0.5);
    transition: all var(--transition-speed);
}

.player-item:hover {
    background-color: rgba(236, 240, 241, 0.8);
    transform: translateX(5px);
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.player-name {
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}

.player-time {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 加载动画 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .container {
        padding: 15px;
    }
    
    .dashboard-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* 日志显示样式 */
.logs-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.server-log {
    background-color: #2b2b2b;
    color: #f8f8f2;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 8px;
    height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-entry {
    margin: 0;
    padding: 2px 0;
}

.log-entry:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.log-info {
    color: #8be9fd;
}

.log-warning {
    color: #ffb86c;
}

.log-error {
    color: #ff5555;
}

.log-success {
    color: #50fa7b;
}

.log-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-time {
    color: #6272a4;
    font-weight: bold;
    margin-right: 5px;
}

.log-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #6272a4;
}

/* 连接状态指示器 */
.socket-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.socket-connected {
    background-color: #50fa7b;
}

.socket-disconnected {
    background-color: #ff5555;
}

.socket-connecting {
    background-color: #ffb86c;
    animation: pulse 1.5s infinite;
}

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

/* 日志文件信息样式 */
.log-file-info {
    padding: 8px;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 10px;
}

.log-file-info .badge {
    font-size: 0.9rem;
    padding: 5px 10px;
}

/* 历史日志选择器样式 */
#logBackupSelect {
    min-width: 250px;
} 