.monitoring-popup {
    position: absolute;
    top: 70px;
    right: 140px;
    /* Positioned to the left of profile */
    width: 320px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    flex-direction: column;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.monitoring-popup.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.monitoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.monitoring-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.monitoring-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.monitoring-close:hover {
    color: var(--text-main);
}

.mon-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.mon-stat-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mon-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mon-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.mon-chart-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mon-progress-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mon-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mon-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.mon-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-green {
    background: #10b981;
}

.bar-red {
    background: #ef4444;
}

.bar-gray {
    background: #cbd5e1;
}

.mon-empty-state {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dark Mode Support */
body.dark-mode .monitoring-popup {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .monitoring-header {
    border-bottom-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .mon-stat-card {
    background: #0f172a;
}

body.dark-mode .mon-stat-value {
    color: #f1f5f9;
}

body.dark-mode .mon-progress-bar-bg {
    background: #334155;
}