/* ========================================
   NODES STATUS PAGE STYLES
   ======================================== */

.nodes-status-page {
    min-height: 100vh;
    padding: 120px 0 60px;
    position: relative;
    color: var(--text-primary);
}

/* Live Status Header */
.status-header {
    text-align: center;
    margin-bottom: 3rem;
}

.status-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4CAF50;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
}


.status-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.summary-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
}

.summary-card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.summary-card-icon .fa-server {
    color: #FF6B35;
}

.summary-card-icon .fa-check-circle {
    color: #4CAF50;
}

.summary-card-icon .fa-tachometer-alt {
    color: #2196F3;
}

.summary-card-icon .fa-shield-alt {
    color: #F44336;
}

.summary-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.3rem 0;
}

.summary-card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.status-indicator {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
}

.status-indicator.healthy {
    color: #4CAF50;
}

.status-indicator.warning {
    color: #FFC107;
}

.status-indicator.critical {
    color: #F44336;
}

/* Section Headers */
.section-header-nodes {
    margin: 4rem 0 2rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
    position: relative;
}

.section-header-nodes::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
}

.section-header-nodes h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header-nodes h2 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.section-header-nodes p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-left: 3rem;
}

/* Node Cards Grid */
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Gaming Grid - 3 columns for 3 cards */
.nodes-grid-gaming {
    grid-template-columns: repeat(3, 1fr);
}

/* Node Card */
.node-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.node-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.node-card:hover::before {
    opacity: 1;
}

.node-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3),
                0 0 60px rgba(255, 107, 53, 0.15);
}

/* Node Header */
.node-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.node-title h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.node-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.node-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.node-status.online {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.node-status.offline {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Node Stats */
.node-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.stat-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Progress Bars */
.stat-progress {
    margin-top: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease;
}

.progress-fill.low {
    background: linear-gradient(90deg, #4CAF50, #81C784);
}

.progress-fill.medium {
    background: linear-gradient(90deg, #FFC107, #FFD54F);
}

.progress-fill.high {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.progress-fill.critical {
    background: linear-gradient(90deg, #F44336, #E57373);
}

/* Node Specs */
.node-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-badge {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spec-badge i {
    color: var(--primary-color);
}

/* Charts */
.node-charts {
    margin-top: 1.5rem;
}

.chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Loading State */
.loading-skeleton {
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* Last Updated */
.last-updated {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.last-updated i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .nodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nodes-grid-gaming {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .status-header h1 {
        font-size: 2rem;
        flex-direction: column;
    }

    .nodes-grid,
    .nodes-grid-gaming {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .node-stats {
        grid-template-columns: 1fr;
    }
}

/* Shield Filter Specific Styles */
.shield-card {
    border-top-color: rgba(255, 107, 53, 0.5);
}

.shield-card::before {
    background: linear-gradient(90deg, #FF6B35, #F7931E);
}

/* Traffic Stats */
.traffic-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.traffic-item {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

.traffic-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.traffic-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.attack-stat {
    background: rgba(244, 67, 54, 0.05);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.attack-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #F44336;
}

.attack-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}
