/* WILON Dashboard Core CSS - 2026 Edition */

:root[data-theme="dark"] {
    --bg: #000000;
    --panel: #141414;
    --border: #333333;
    --text: #ffffff;
    --text-dim: #888888;
    --nav-bg: #0a0a0a;
}

:root[data-theme="light"] {
    --bg: #f2f2f2;
    --panel: #ffffff;
    --border: #cccccc;
    --text: #000000;
    --text-dim: #666666;
    --nav-bg: #e5e5e5;
}

:root {
    --accent-green: #2d7d46;
    --accent-blue: #0078d7;
    --accent-red: #e81123;
    --accent-yellow: #ffcc00; /* New Development Accent */
    --transition-speed: 0.2s;
}

/* Global Reset */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    border-radius: 0 !important; /* Strict Metro Look */
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    padding-bottom: 50px;
    line-height: 1.5;
}

/* Navbar */
.navbar {
    height: 50px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: sticky; 
    top: 0; 
    z-index: 100;
}

.logo { font-weight: 300; letter-spacing: 1px; }
.logo span { color: var(--accent-green); font-weight: bold; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.system-time {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.win-btn-sm {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 4px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    text-transform: uppercase;
}

.win-btn-sm:hover { 
    background: var(--text); 
    color: var(--bg); 
}

/* Layout Container */
.dashboard-container { 
    padding: 40px 10%; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.dash-section { margin-bottom: 50px; }

.win-label { 
    font-weight: 200; 
    font-size: 1.8rem; 
    margin-bottom: 25px; 
    border-left: 4px solid var(--accent-green); 
    padding-left: 15px;
    text-transform: uppercase;
}

/* Grid & Tiles */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 15px; 
}

.tile-link { 
    text-decoration: none; 
    color: inherit; 
    display: block;
}

.tile {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 25px;
    transition: var(--transition-speed);
    height: 100%;
    position: relative;
}

.tile:hover { 
    transform: translateY(-4px); 
    border-color: var(--text-dim);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.tile-icon { font-size: 2rem; display: block; margin-bottom: 15px; }

/* Visual Accents (Top Bars) */
.green-accent  { border-top: 4px solid var(--accent-green); }
.blue-accent   { border-top: 4px solid var(--accent-blue); }
.red-border    { border-top: 4px solid var(--accent-red); }
.yellow-accent { border-top: 4px solid var(--accent-yellow); }

/* Stats & Progress */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 20px;
}

.stat-title { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    color: var(--text-dim); 
    display: block; 
    margin-bottom: 10px;
}

.stat-bar { 
    height: 6px; 
    background: var(--border); 
    width: 100%; 
    margin-top: 10px;
}

.stat-bar .fill { 
    height: 100%; 
    background: var(--accent-green); 
    transition: width 0.5s ease-in-out;
}

/* Server Monitor Extras */
.tile-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-dot { 
    width: 8px; 
    height: 8px; 
    display: inline-block; 
    margin-right: 10px; 
}

.online { 
    background: #00ff00; 
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5); 
}

.offline { 
    background: #ff0000; 
    opacity: 0.5;
}

.server-info {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 10px;
}

/* Footer / Taskbar */
.win-taskbar {
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    height: 35px;
    background: var(--nav-bg); 
    border-top: 1px solid var(--border);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px; 
    font-size: 0.7rem; 
    color: var(--text-dim);
    z-index: 100;
}

#global-status { color: var(--accent-green); }