/* SecuBox Monitoring Page Styles  * Version: 0.3.0
 */

.secubox-monitoring-page {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.secubox-monitoring-hero {
	margin-bottom: 0;
}

.secubox-monitoring-badges {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.secubox-hero-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.secubox-hero-icon {
	font-size: 20px;
	line-height: 1;
}

.secubox-hero-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sb-text-muted);
}

.secubox-hero-value {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--sb-text);
}

/* Charts Grid  * Version: 0.3.0
 */
.secubox-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .secubox-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Chart Card */
.secubox-chart-card {
    background: var(--sb-bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.secubox-chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.secubox-chart-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--sb-text);
}

.secubox-chart-container {
    width: 100%;
    height: 200px;
    position: relative;
    margin-bottom: 16px;
    background: var(--sb-bg);
    border-radius: 8px;
    overflow: hidden;
}

.secubox-chart {
    width: 100%;
    height: 100%;
}

.secubox-chart-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid var(--sh-border);
}

.secubox-current-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--sh-primary);
}

.secubox-chart-unit {
    font-size: 12px;
    color: var(--sb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Table */
.secubox-stats-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.secubox-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--sb-bg);
    border-radius: 8px;
    transition: background 0.2s;
}

.secubox-stat-item:hover {
	background: rgba(255,255,255,0.04);
}

.secubox-stat-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.secubox-stat-details {
    flex: 1;
}

.secubox-stat-label {
    font-size: 13px;
    color: var(--sb-text-muted);
    margin-bottom: 4px;
}

.secubox-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--sb-text);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.secubox-chart-card {
    animation: fadeIn 0.5s ease-out;
}

.secubox-chart-card:nth-child(1) { animation-delay: 0.1s; }
.secubox-chart-card:nth-child(2) { animation-delay: 0.2s; }
.secubox-chart-card:nth-child(3) { animation-delay: 0.3s; }
.secubox-chart-card:nth-child(4) { animation-delay: 0.4s; }

/* Chart SVG Animations */
@keyframes drawLine {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.secubox-chart polyline {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1s ease-out forwards;
}

/* === Cyberpunk Theme Support === */

[data-secubox-theme="cyberpunk"] .secubox-chart-card {
	background: var(--cyber-bg-secondary);
	border: var(--cyber-border);
	box-shadow: 0 0 20px rgba(102, 126, 234, 0.15);
}

[data-secubox-theme="cyberpunk"] .secubox-chart-card:hover {
	border-color: var(--cyber-accent-primary);
	box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
	transform: translateY(-4px);
}

[data-secubox-theme="cyberpunk"] .secubox-hero-badge {
	background: var(--cyber-bg-secondary);
	border: var(--cyber-border);
	box-shadow: 0 0 15px rgba(102, 126, 234, 0.1);
}

[data-secubox-theme="cyberpunk"] .secubox-current-value {
	color: var(--cyber-accent-primary);
	text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

[data-secubox-theme="cyberpunk"] .secubox-chart-legend {
	border-top-color: var(--cyber-border);
}

[data-secubox-theme="cyberpunk"] .secubox-stat-item {
	background: var(--cyber-bg-secondary);
	border: var(--cyber-border);
}

[data-secubox-theme="cyberpunk"] .secubox-stat-item:hover {
	border-color: var(--cyber-accent-primary);
	box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}
