:root {
    --bg-dark: #0a0b1e;
    --bg-card: rgba(20, 22, 45, 0.7);
    --primary: #00f2ff;
    --secondary: #7000ff;
    --danger: #ff0055;
    --success: #00ff9d;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 20%);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    overflow-y: auto;
}

h1,
h2,
h3 {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dashboard-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.cyber-header {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.brand-logo {
    font-family: 'Orbitron';
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    margin-right: 15px;
    float: left;
}

.status-live {
    color: var(--danger);
    font-weight: bold;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.clock {
    font-family: 'Orbitron';
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Cards */
.cyber-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.kpi-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
}

.kpi-content {
    text-align: right;
}

.kpi-content .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.kpi-content h2 {
    font-size: 2rem;
    color: var(--text-main);
}

/* Insights */
.card-header-cyber {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-header-cyber h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.insight-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--text-muted);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.insight-item.type-critical {
    border-left-color: var(--danger);
    background: rgba(255, 0, 85, 0.1);
}

.insight-item.type-warning {
    border-left-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.insight-item.type-success {
    border-left-color: var(--success);
    background: rgba(0, 255, 157, 0.1);
}

.insight-title {
    font-weight: bold;
    font-family: 'Orbitron';
    margin-left: 8px;
}

.insight-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Feed */
.scrollable-feed {
    overflow-y: auto;
    max-height: 100%;
}

.scrollable-feed::-webkit-scrollbar {
    width: 5px;
}

.scrollable-feed::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

.feed-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feed-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--success);
}

.feed-title {
    font-weight: bold;
    color: var(--text-main);
}

.feed-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feed-value {
    margin-left: auto;
    font-family: 'Orbitron';
    color: var(--primary);
    font-size: 1.2rem;
}

/* Live Metrics Specifics */
.type-live {
    border-color: rgba(255, 0, 85, 0.3);
    background: rgba(40, 10, 20, 0.4);
}

.live-icon {
    color: #ff0055;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}