.strix-container {
    --strix-accent: #3e89ff;
    --strix-accent-gradient: linear-gradient(135deg, #3e89ff 0%, #2d63d9 100%);
    --strix-text: #ffffff;
    --strix-text-secondary: #99a1b3;
    --strix-danger: #ff4444;
    --strix-warning: #ffaa00;
    --strix-success: #00ff9d;
    --strix-border: rgba(255, 255, 255, 0.1);

    width: 100%;
    padding: 5px;
    background: transparent;
    color: var(--strix-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.strix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, max-content));
  gap: 20px;
  justify-content: center; 
}

.strix-node {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(80, 140, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    transition: box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.strix-node:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


.strix-node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.strix-node-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    background: var(--strix-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.strix-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strix-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.strix-status-indicator.online {
    background: var(--strix-success);
    box-shadow: 0 0 10px var(--strix-success);
}

.strix-status-indicator.offline {
    background: var(--strix-danger);
    box-shadow: 0 0 10px var(--strix-danger);
}

.strix-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.strix-metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strix-metric-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--strix-text-secondary);
}

.strix-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

/* Add these styles to your existing CSS */
.strix-progress-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

/* Progress bar gradients */
.strix-progress-bar.progress-low {
    background: linear-gradient(90deg, #00ff9d 0%, #00ff9d 100%);
}

.strix-progress-bar.progress-medium {
    background: linear-gradient(90deg, #ffaa00 0%, #ffaa00 100%);
}

.strix-progress-bar.progress-high {
    background: linear-gradient(90deg, #ff4444 0%, #ff4444 100%);
}

/* Glow effects */
.strix-progress-bar.progress-low {
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.strix-progress-bar.progress-medium {
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.strix-progress-bar.progress-high {
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.strix-progress-bar.warning {
    background: var(--strix-warning);
}

.strix-progress-bar.critical {
    background: var(--strix-danger);
}
/*
.strix-server-metrics {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--strix-border);
}

.strix-server-metric {
    text-align: center;
}

.strix-metric-value {
    font-size: 28px;
    font-weight: 600;
    background: var(--strix-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.strix-metric-label {
    font-size: 14px;
    color: var(--strix-text-secondary);
}
/* Style 1 end*/

.strix-server-metrics {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--strix-border);
}

.strix-server-metric {
    text-align: center;
    min-width: 100px;
}

.strix-metric-value {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 2px;
}

.strix-latency {
    color: inherit !important;
}

.strix-metric-label {
    font-size: 0.8em;
    color: #999;
}

/* ── Card slide-in animation ─────────────────────────────────────────────── */
@keyframes strix-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.strix-animate-in {
    animation: strix-slide-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Grid fade+slide when switching views */
.strix-grid {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── View toggle button ──────────────────────────────────────────────────── */
.strix-view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.strix-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(
        135deg,
        rgba(62, 137, 255, 0.14) 0%,
        rgba(62, 137, 255, 0.06) 100%
    );
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(62, 137, 255, 0.22);
    border-radius: 10px;
    color: #6aabff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.strix-toggle-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(62, 137, 255, 0.24) 0%,
        rgba(62, 137, 255, 0.12) 100%
    );
    border-color: rgba(62, 137, 255, 0.50);
    color: #90c3ff;
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.25),
        0 0 14px rgba(62, 137, 255, 0.15);
}

.strix-toggle-btn.active {
    background: linear-gradient(
        135deg,
        rgba(62, 137, 255, 0.30) 0%,
        rgba(62, 137, 255, 0.15) 100%
    );
    border-color: rgba(62, 137, 255, 0.65);
    color: #aad4ff;
    box-shadow:
        0 4px 20px rgba(62, 137, 255, 0.18);
}

/* ── Grid modes ──────────────────────────────────────────────────────────── */
.strix-grid.strix-grid--merged {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, max-content));
    gap: 20px;
    justify-content: center;
}

.strix-grid.strix-grid--split {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Panel sections (split view) ─────────────────────────────────────────── */
.strix-panel-section {
    width: 100%;
    margin-bottom: 36px;
}

.strix-panel-title {
    margin: 0 0 14px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--strix-text-secondary);
}


.strix-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, max-content));
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .strix-panel-grid {
        grid-template-columns: 1fr;
    }
}

.strix-error {
    text-align: center;
    padding: 20px;
    color: var(--strix-danger);
    background: rgba(255, 68, 68, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

@media (max-width: 768px) {
    .strix-grid {
        grid-template-columns: 1fr;
    }
    .strix-wrapper {
        padding-bottom: 30px;
    }

    .strix-node,
    .strix-node:hover,
    .strix-progress-bar,
    .strix-status-indicator,
    .strix-animate-in,
    .strix-toggle-btn {
        animation: none !important;
        transition: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
    }

    .strix-animate-in {
        opacity: 1 !important;
    }
}
