:root[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --border: #334155;
}

:root[data-theme="light"] {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --success: #059669;
    --danger: #dc2626;
    --border: #e2e8f0;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
}

/* YARIM KALMA SORUNU BURADA ÇÖZÜLDÜ (min-height: 100vh) */
body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    transition: background 0.3s; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
}

.dashboard-container { 
    max-width: 1400px; 
    width: 100%;
    margin: 0 auto; 
    padding: 20px; 
    flex: 1;
}

/* Üst Navigasyon */
.top-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    padding: 15px 25px; 
    background: var(--card-bg); 
    border-radius: 15px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--text-main); }
.logo span { color: var(--accent); }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.stat-badge { padding: 8px 15px; background: var(--bg-color); border-radius: 20px; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--border); }
.active-badge { color: var(--success); background: rgba(16, 185, 129, 0.1); border-color: transparent; }
.icon-btn { background: none; border: none; color: var(--text-main); font-size: 1.2rem; cursor: pointer; padding: 5px; }

/* Izgara Sistemi */
.server-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 25px; 
    align-items: stretch;
}

/* Cüzdan Kartı Tasarımı */
.wallet-card { 
    background: var(--card-bg); 
    border-radius: 20px; 
    padding: 20px; 
    border: 1px solid var(--border); 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    transition: transform 0.2s; 
    height: 100%;
}
.wallet-card:hover { transform: translateY(-5px); }

.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.server-name { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin: 0; }
.status-indicator { font-size: 0.8rem; font-weight: bold; padding: 5px 12px; border-radius: 20px; display: flex; gap: 5px; align-items: center; }

.status-active .status-indicator { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-offline .status-indicator { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* Resim Alanı */
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.screenshot-wrapper { width: 100%; height: 180px; background: var(--bg-color); border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.ss-img { width: 100%; height: 100%; object-fit: cover; }
.no-image { color: var(--text-muted); font-size: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loading-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; gap: 10px; backdrop-filter: blur(3px); }

.last-update { font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* Log Önizleme (Click to copy) */
.log-preview { background: var(--bg-color); padding: 8px 12px; border-radius: 8px; font-family: monospace; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; display: flex; justify-content: space-between; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--border); margin-top: auto; }
.log-preview:hover { border-color: var(--accent); color: var(--text-main); }

/* Butonlar */
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.btn { padding: 12px; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.95rem; transition: opacity 0.2s; color: white; width: 100%; }
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--accent); }
.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border-radius: 8px; }
.close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }
/* CMD / Terminal Görünümü */
.terminal-content { 
    margin: 5% auto; 
    width: 90%; 
    max-width: 800px; 
    background: #0c0c0c; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #333; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
}
.terminal-header { 
    background: #1a1a1a; 
    padding: 12px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: #f1f1f1; 
    font-family: 'Segoe UI', sans-serif; 
    font-weight: bold;
    border-bottom: 1px solid #333; 
}
.close-terminal { 
    cursor: pointer; 
    font-size: 1.5rem; 
    color: #ef4444; 
    line-height: 1; 
}
.close-terminal:hover { color: #dc2626; }
.terminal-body { 
    padding: 20px; 
    height: 400px; 
    overflow-y: auto; 
    background-color: #0c0c0c;
    color: #10b981; /* Terminal Yeşili */
    font-family: 'Consolas', 'Courier New', monospace; 
    font-size: 0.95rem; 
    line-height: 1.6; 
    white-space: pre-wrap; 
}