/* Network Distinct Accent Pills & Badges */
.badge-network {
    background: rgba(0, 210, 255, 0.08) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(0, 210, 255, 0.28) !important;
    font-weight: 600;
}

[data-theme="light"] .badge-network {
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

.badge-network:hover {
    background: rgba(0, 210, 255, 0.16) !important;
    border-color: #38bdf8 !important;
}

/* Live Telemetry Ping Widget */
.live-telemetry-pill {
    background: rgba(18, 18, 22, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

[data-theme="light"] .live-telemetry-pill {
    background: #ffffff;
    border-color: #e4e4e7;
}

.live-pulse-dot-cyan {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #00d2ff;
    box-shadow: 0 0 8px #00d2ff;
    animation: live-pulse-cyan 2s infinite;
}

@keyframes live-pulse-cyan {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 210, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
    }
}

/* Subnet Calculator Interactive Card */
.subnet-calc-card {
    background: #121216 !important;
    border: 1px solid #222228 !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

[data-theme="light"] .subnet-calc-card {
    background: #ffffff !important;
    border-color: #e4e4e7 !important;
}

.subnet-result-box {
    background: #0c0c0f;
    border: 1px solid #1f1f26;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: border-color 0.2s ease;
}

[data-theme="light"] .subnet-result-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.subnet-result-box:hover {
    border-color: #38bdf8;
}

/* Terminal / Cisco IOS CLI Previews */
.terminal-block {
    background: #09090c;
    border: 1px solid #1e1e24;
    border-radius: var(--radius-md);
    overflow: hidden;
}

[data-theme="light"] .terminal-block {
    background: #0f172a;
    border-color: #1e293b;
}

.terminal-header {
    background: #14141a;
    border-bottom: 1px solid #1e1e24;
    padding: 8px 16px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: #94a3b8;
}

[data-theme="light"] .terminal-header {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.terminal-content {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    color: #e2e8f0;
    padding: 16px;
    margin: 0;
    overflow-x: auto;
    white-space: pre;
}

.terminal-prompt {
    color: #38bdf8;
    font-weight: 600;
}

.terminal-cmd {
    color: #f8fafc;
    font-weight: 600;
}

.terminal-comment {
    color: #64748b;
    font-style: italic;
}

/* Network Topology Diagram Styles */
.topology-container {
    background: #0c0c0f;
    border: 1px solid #1f1f26;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .topology-container {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.topo-node {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.topo-node:hover,
.topo-node.topo-highlighted {
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.6));
    transform: scale(1.02);
}

.topo-packet-line {
    stroke-dasharray: 6 6;
    animation: packet-flow 1.5s linear infinite;
}

@keyframes packet-flow {
    from {
        stroke-dashoffset: 24;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Case Study Stepper / Flow */
.case-study-card {
    background: #121216;
    border: 1px solid #222228;
    border-left: 3px solid #38bdf8 !important;
    border-radius: var(--radius-md);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

[data-theme="light"] .case-study-card {
    background: #ffffff;
    border-color: #e4e4e7;
    border-left: 3px solid #0284c7 !important;
}

.case-study-card:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
}

.step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* CCNA Learning Roadmap Progress */
.roadmap-progress-bar {
    height: 8px;
    background: #1a1a22;
    border-radius: 9999px;
    overflow: hidden;
}

[data-theme="light"] .roadmap-progress-bar {
    background: #e2e8f0;
}

.roadmap-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #00d2ff 100%);
    border-radius: 9999px;
    transition: width 1s ease-in-out;
}

.milestone-card {
    background: #121216;
    border: 1px solid #222228;
    border-radius: var(--radius-md);
    padding: 16px;
    transition: border-color 0.2s ease;
}

[data-theme="light"] .milestone-card {
    background: #ffffff;
    border-color: #e4e4e7;
}

.milestone-card.milestone-active {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.12);
}

[data-theme="light"] .milestone-card.milestone-active {
    border-color: #0284c7;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.1);
}
