body {
    background: #f8f9fa;
    font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
    padding-top: 70px;
    padding-bottom: 30px;
    margin: 0;
    color: #333;
}

.container {
    max-width: 1400px;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
    font-weight: 600;
    color: #495057 !important;
    font-size: 1.25rem;
}

.nav-link {
    color: #6c757d !important;
    font-weight: 500;
}

.nav-link.active {
    color: #007bff !important;
}

.content {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 20px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 0;
}

.simple-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.simple-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #232946 0%, #eebbc3 100%);
    color: #fffffe;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.card-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-online {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-offline {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-content {
    padding: 24px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}


.metric-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.cpu-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.cpu-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cpu-low { background: linear-gradient(90deg, #b8c1ec 0%, #eebbc3 100%); width: 0-70%; }
.cpu-medium { background: linear-gradient(90deg, #eebbc3 0%, #b8c1ec 100%); width: 70-90%; }
.cpu-high { background: linear-gradient(90deg, #eebbc3 0%, #232946 100%); width: 90-100%; }

.mem-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 6px;
}

.mem-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mem-low { background: linear-gradient(90deg, #b8c1ec 0%, #eebbc3 100%); width: 0-70%; }
.mem-medium { background: linear-gradient(90deg, #eebbc3 0%, #b8c1ec 100%); width: 70-90%; }
.mem-high { background: linear-gradient(90deg, #eebbc3 0%, #232946 100%); width: 90-100%; }

.memory-detail-wrapper {
    margin-top: 4px;
}

.memory-detail-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 13px;
    color: #6c757d;
    gap: 4px;
}

.memory-used {
    font-weight: 500;
    color: #495057;
}

.memory-total {
    font-size: 12px;
    color: #6c757d;
}

.network-container {
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding-top: 8px;
}

.network-header {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.network-item {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
}

.network-direction {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.network-value {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
}

.network-icon {
    font-size: 16px;
    margin-right: 6px;
    color: #007bff;
}

.offline-card .card-header {
    background: linear-gradient(135deg, #232946 0%, #b8c1ec 100%);
}

.monitor-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.monitor-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.monitor-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.monitor-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.monitor-details {
    font-size: 14px;
    color: #666;
}

.monitor-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.updated-info {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

footer {
    border-top: 1px solid rgba(174, 185, 236, 0.2);
    padding: 20px 0;
    margin-top: 20px;
}

footer p {
    margin: 0;
    font-size: 14px;
    color: #b8c1ec;
}

footer p a {
    color: #b8c1ec !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer p a:hover {
    color: #eebbc3 !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-content {
        padding: 20px;
    }

    .monitor-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .card-header {
        padding: 16px 20px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-label {
        font-size: 11px;
    }

    .metric-value {
        font-size: 15px;
    }
}