@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #05080a;
    --bg-accent: #0a0f14;
    --panel-bg: rgba(16, 22, 28, 0.7);
    --cyan: #00f2ff;
    --magenta: #bc00ff;
    --green: #00ff88;
    --red: #ff3333;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-cyan: 0 0 15px rgba(0, 242, 255, 0.3);
    --glow-magenta: 0 0 15px rgba(188, 0, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #e0e6ed;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(188, 0, 255, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
aside.sidebar {
    background: rgba(8, 12, 16, 0.95);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
    text-shadow: var(--glow-cyan);
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #8a99a8;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 242, 255, 0.1);
    color: #fff;
    box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.05);
}

/* Live Pulse Dot */
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 8px var(--green);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Nav Count Badge */
.nav-count {
    background: rgba(255, 255, 255, 0.08);
    color: #8a99a8;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

.nav-link:hover .nav-count {
    background: rgba(0, 242, 255, 0.15);
    color: var(--cyan);
}

/* NEW Badge */
.new-badge {
    background: linear-gradient(135deg, var(--magenta), #ff4081);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: newPulse 2s infinite;
}

@keyframes newPulse {

    0%,
    100% {
        box-shadow: 0 0 4px var(--magenta);
    }

    50% {
        box-shadow: 0 0 12px var(--magenta);
    }
}

/* Sidebar Stats */
.sidebar-stats {
    margin-top: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.8rem;
}

.stat-label {
    color: #8a99a8;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: #fff;
}

/* Admin Profile */
.admin-profile {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    box-shadow: var(--glow-cyan);
}

.online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 6px var(--green);
}

/* Node Card Grid */
.node-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.node-card:hover {
    border-color: var(--nc);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
    transform: translateY(-3px);
}

.node-rank {
    position: absolute;
    top: 6px;
    left: 8px;
    font-family: 'Orbitron';
    font-size: 1.5rem;
    color: var(--nc);
    opacity: 0.12;
}

.node-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--nc);
    margin-bottom: 8px;
}

.node-name {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.node-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 4px;
}

.node-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--nc);
    box-shadow: 0 0 6px var(--nc);
}

.node-traffic {
    font-family: 'Orbitron';
    font-size: 0.55rem;
    color: var(--nc);
    text-align: right;
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--glass-border);
}

.hub-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 2px;
}

.search-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 10px 20px;
    color: #fff;
    width: 300px;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 30px 40px;
}

/* Status Cards */
.status-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background: var(--panel-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.status-card:hover {
    border-color: var(--card-color);
}

.card-title {
    font-size: 0.75rem;
    color: #8a99a8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.card-progress {
    margin-top: 15px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--card-color);
}

/* Neural Activity / Graph Section */
.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.chart-panel {
    background: var(--panel-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

/* Horizontal Neural Scroll */
.neural-scroll::-webkit-scrollbar {
    height: 4px;
}

.neural-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.neural-scroll::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 2px;
}

.neural-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) transparent;
}


/* System Logs */
.logs-panel {
    background: var(--panel-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 15px;
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    max-height: 480px;
    overflow-y: auto;
}

.log-entry {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 15px;
}

.log-time {
    color: #8a99a8;
    font-size: 0.75rem;
}

.log-success {
    color: var(--green);
}

.log-warning {
    color: #f2ff00;
}

/* ===== PREMIUM FOOTER TAGS ===== */
.footer-zone {
    margin-top: 60px;
    padding: 60px 0 40px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
}

.footer-zone::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
    box-shadow: 0 0 20px var(--cyan);
}

.tag-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tag-section-title::before,
.tag-section-title::after {
    content: "";
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--glass-border));
}

.tag-section-title::after {
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.holo-tag {
    display: inline-block;
    position: relative;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #c0c8d4;
    text-decoration: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    animation: tagFadeIn 0.5s ease backwards;
    white-space: nowrap;
}

.holo-tag:nth-child(odd) {
    --tag-glow: var(--cyan);
}

.holo-tag:nth-child(even) {
    --tag-glow: var(--magenta);
}

.holo-tag:nth-child(3n) {
    --tag-glow: var(--green);
}

.holo-tag:nth-child(5n) {
    --tag-glow: #f59e0b;
}

.holo-tag:hover {
    color: #fff;
    border-color: var(--tag-glow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px color-mix(in srgb, var(--tag-glow), transparent 60%),
        inset 0 0 15px color-mix(in srgb, var(--tag-glow), transparent 80%);
    transform: translateY(-3px) scale(1.05);
}

.holo-tag::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--tag-glow);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.holo-tag:hover::after {
    opacity: 1;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for first 20 tags */
.holo-tag:nth-child(1) {
    animation-delay: 0.02s;
}

.holo-tag:nth-child(2) {
    animation-delay: 0.04s;
}

.holo-tag:nth-child(3) {
    animation-delay: 0.06s;
}

.holo-tag:nth-child(4) {
    animation-delay: 0.08s;
}

.holo-tag:nth-child(5) {
    animation-delay: 0.10s;
}

.holo-tag:nth-child(6) {
    animation-delay: 0.12s;
}

.holo-tag:nth-child(7) {
    animation-delay: 0.14s;
}

.holo-tag:nth-child(8) {
    animation-delay: 0.16s;
}

.holo-tag:nth-child(9) {
    animation-delay: 0.18s;
}

.holo-tag:nth-child(10) {
    animation-delay: 0.20s;
}

.footer-legal {
    text-align: center;
    padding: 30px 0;
    font-size: 0.75rem;
    color: #444;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

.footer-legal a {
    color: var(--cyan);
    text-decoration: none;
    margin: 0 8px;
}

/* ===== ADSENSE ===== */
.adsense-alert {
    background: rgba(0, 242, 255, 0.05);
    border: 1px dashed var(--cyan);
    border-radius: 12px;
    padding: 10px;
    margin: 20px 0;
    text-align: center;
    font-size: 0.7rem;
    color: var(--cyan);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    aside.sidebar {
        display: none;
    }

    .status-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .status-row {
        grid-template-columns: 1fr;
    }

    .top-bar {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .search-field {
        width: 100%;
    }
}