/* 賽博風格戰情室 CSS */

/* ===== 基礎樣式 ===== */
body {
    background: #0a0a0a;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== 賽博背景效果 ===== */
.cyber-bg {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #000a1a 100%);
    min-height: 100vh;
}

/* 掃描線效果 - 優化版本（降低動畫頻率） */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 255, 0.01) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    will-change: transform;
    animation: scanlines 30s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

/* 電路板背景 - 優化版本（使用靜態背景） */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 999;
    opacity: 0.7;
}

/* ===== 導航欄 ===== */
.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    border-bottom: 2px solid #00ffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.navbar-brand {
    color: #00ffff !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-link {
    color: #00ffff !important;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff00ff !important;
    border-color: #ff00ff;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.nav-link.active {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* ===== 卡片樣式 - 優化版本 ===== */
.cyber-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.cyber-card:hover {
    transform: translateY(-2px);
    border-color: #ff00ff;
}

.card-header {
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 2px solid #00ffff;
    color: #00ffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== 標題樣式 - 優化版本 ===== */
.cyber-title {
    color: #00ffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
}

.cyber-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ffff);
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== 按鈕樣式 - 優化版本 ===== */
.cyber-btn {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.cyber-btn:hover {
    transform: scale(1.02);
}

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

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

/* ===== 表格樣式 ===== */
.table {
    color: #00ffff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
}

.table th {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table td {
    border-color: #00ffff;
}

/* ===== 輸入框樣式 ===== */
.form-control {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    color: #00ffff;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.9);
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    color: #ff00ff;
}

.form-control::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

/* ===== 狀態指示器 ===== */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.status-offline {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.status-warning {
    background: #ffff00;
    box-shadow: 0 0 10px #ffff00;
}

/* ===== 數據卡片 - 優化版本 ===== */
.data-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #00ffff;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.data-card:hover {
    transform: scale(1.02);
    border-color: #ff00ff;
}

.data-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.data-label {
    color: rgba(0, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9em;
}

/* ===== 動畫效果 - 優化版本 ===== */
.glow-text {
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
    }
    to {
        text-shadow: 0 0 10px #00ffff, 0 0 15px #00ffff;
    }
}

/* Matrix rain 效果已移除以提升效能 */
.matrix-rain {
    display: none;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .cyber-title {
        font-size: 1.5em;
    }
    
    .data-value {
        font-size: 2em;
    }
    
    .cyber-card {
        margin-bottom: 15px;
    }
}

/* ===== 加載動畫 ===== .loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== 故障藝術效果 - 禁用 ===== */
/* 故障藝術效果已禁用以提升性能 */

/* ===== 通知系統樣式 ===== */
.cyber-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00ffff;
    border-radius: 8px;
    padding: 15px 20px;
    color: #00ffff;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cyber-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cyber-notification.cyber-success {
    border-color: #00ff00;
    color: #00ff00;
}

.cyber-notification.cyber-error {
    border-color: #ff0000;
    color: #ff0000;
}

.cyber-notification.cyber-warning {
    border-color: #ffff00;
    color: #ffff00;
}

.cyber-notification button {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
}

.cyber-notification button:hover {
    opacity: 0.7;
}

/* ===== 活動日誌樣式 ===== */
.activity-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.cyber-timestamp {
    color: rgba(0, 255, 255, 0.6);
    margin-right: 10px;
}

.cyber-message {
    color: #00ffff;
}

.cyber-system {
    color: #00ff00;
}

.cyber-memory {
    color: #ff00ff;
}

.cyber-tools {
    color: #ffff00;
}

.cyber-info {
    color: #00ffff;
}

/* ===== 圖表容器樣式 ===== */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container canvas {
    max-height: 300px;
}