@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #080914;
    --card: rgba(19, 21, 42, 0.78);
    --purple: #a855f7;
    --blue: #38bdf8;
    --text: #f4f4ff;
    --muted: #9295b3;
    --border: rgba(168, 85, 247, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at 15% 10%, rgba(124, 58, 237, 0.15), transparent 35%),
        radial-gradient(circle at 90% 70%, rgba(14, 165, 233, 0.10), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 30px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), #4f46e5);
    font-size: 25px;
    font-weight: 800;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

.brand h1 {
    font-size: 20px;
    letter-spacing: 1px;
}

.brand h1 span {
    color: var(--purple);
}

.brand p {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-top: 5px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
}

.welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 38px 0 25px;
}

.welcome h2 {
    font-size: 27px;
    margin-bottom: 8px;
}

.welcome p {
    color: var(--muted);
    font-size: 12px;
}

.refresh-info,
.live-badge {
    color: var(--blue);
    font-size: 10px;
    letter-spacing: 1px;
    padding: 9px 13px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.07);
}

.overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card,
.system-card,
.empty-state {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(16px);
}

.stat-card {
    padding: 22px;
    transition: 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 10px 35px rgba(124, 58, 237, 0.12);
}

.card-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--muted);
}

.card-value {
    font-size: 32px;
    font-weight: 800;
    margin: 18px 0 8px;
    background: linear-gradient(90deg, #c084fc, #38bdf8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.card-description {
    font-size: 10px;
    color: var(--muted);
}

.panel-section {
    margin-top: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 16px;
}

.view-all {
    font-size: 9px;
    color: var(--purple);
    letter-spacing: 1px;
}

.system-card {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.system-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(168, 85, 247, 0.13);
    color: var(--purple);
    font-size: 25px;
}

.system-info {
    flex: 1;
}

.system-info h4 {
    font-size: 13px;
    margin-bottom: 6px;
}

.system-info p {
    font-size: 10px;
    color: var(--muted);
}

.system-indicator {
    color: #fbbf24;
    font-size: 10px;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 38px 15px;
}

.empty-icon {
    font-size: 35px;
    color: var(--purple);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 13px;
    margin-bottom: 7px;
}

.empty-state span {
    font-size: 10px;
    color: var(--muted);
}

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

footer span {
    color: var(--purple);
}

@media (max-width: 700px) {
    .app-container {
        padding: 18px;
    }

    .overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 17px;
    }

    .card-value {
        font-size: 27px;
    }

    .welcome h2 {
        font-size: 23px;
    }

    .refresh-info {
        font-size: 8px;
        padding: 8px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .brand h1 {
        font-size: 16px;
    }

    .connection-status {
        font-size: 8px;
    }
}

/* ZEUS neon status indicators */
.value-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    animation: zeusPulse 1.8s infinite;
}

.metric-dot.blue {
    background: #38bdf8;
    box-shadow: 0 0 9px #38bdf8;
}

.metric-dot.green {
    background: #22c55e;
    box-shadow: 0 0 9px #22c55e;
}

.metric-dot.red {
    background: #ef4444;
    box-shadow: 0 0 9px #ef4444;
}

@keyframes zeusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.8); }
}

/* ZEUS STATUS DOT FIX */
.value-status {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.metric-dot {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.metric-dot.blue {
    background-color: #38bdf8 !important;
    box-shadow: 0 0 8px #38bdf8, 0 0 16px #38bdf8 !important;
}

.metric-dot.green {
    background-color: #22c55e !important;
    box-shadow: 0 0 8px #22c55e, 0 0 16px #22c55e !important;
}

.metric-dot.red {
    background-color: #ef4444 !important;
    box-shadow: 0 0 8px #ef4444, 0 0 16px #ef4444 !important;
}

/* ZEUS FINAL INDICATOR FIX */
.value-status {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

.value-status .metric-dot {
    position: relative !important;
    display: block !important;
    width: 11px !important;
    height: 11px !important;
    min-width: 11px !important;
    flex: 0 0 11px !important;
    border-radius: 50% !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.value-status .metric-dot.blue {
    background: #38bdf8 !important;
    box-shadow: 0 0 5px #38bdf8, 0 0 14px #38bdf8 !important;
}

.value-status .metric-dot.green {
    background: #22c55e !important;
    box-shadow: 0 0 5px #22c55e, 0 0 14px #22c55e !important;
}

.value-status .metric-dot.red {
    background: #ef4444 !important;
    box-shadow: 0 0 5px #ef4444, 0 0 14px #ef4444 !important;
}


/* ZEUS NODE MONITOR CARDS */
.nodes-section {
    margin-top: 28px;
    width: 100%;
}

.nodes-section .section-header {
    margin-bottom: 16px;
}

.nodes-section .section-header h2 {
    margin: 0;
}

.section-subtitle {
    display: block;
    margin-top: 5px;
    color: #8792a8;
    font-size: 11px;
}

.nodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.node-card {
    width: 100%;
    box-sizing: border-box;
    padding: 17px 18px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 14px;
    background: linear-gradient(110deg, rgba(20, 24, 43, 0.96), rgba(12, 16, 31, 0.98));
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
}

.node-card-top {
    display: flex;
    direction: rtl;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.node-name-area {
    display: flex;
    direction: rtl;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.node-name {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.node-status {
    direction: ltr;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.node-online {
    color: #22c55e;
}

.node-offline {
    color: #ef4444;
}

.node-traffic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.traffic-label {
    color: #8792a8;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.traffic-value {
    color: #38bdf8;
    font-size: 15px;
    font-weight: 800;
    direction: ltr;
}

.nodes-loading {
    color: #8792a8;
    padding: 15px;
    text-align: center;
}
