:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #10b981; 
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar مینیمال */
.sidebar {
    width: 250px;
    background-color: var(--bg-card);
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.sidebar .logo h2 {
    color: var(--accent-color);
    margin-bottom: 30px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 15px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-links li.active a {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.header .title h2 {
    font-size: 20px;
    font-weight: 600;
}

.user-profile span {
    background-color: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

/* Real Stats Grid */
.real-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: 0.3s border-color;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.card-header h3 {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.stat-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.stat-card .icon svg {
    color: var(--accent-color);
    display: block;
}

/* Details list inside cards */
.network-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.network-details span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-online { color: var(--accent-color) !important; }
.status-offline { color: #ef4444 !important; }

.network-widget.offline-mode {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.network-widget.offline-mode .icon svg {
    color: #ef4444;
}

/* Speedometer Section */
.speedometer-section {
    display: flex;
    justify-content: center;
}

.speedometer-container {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.speedometer-container h3 {
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--text-primary);
}

.speed-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.speed-center-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.speed-center-text h1 {
    font-size: 48px;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.speed-center-text p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
}