/* ===================================================================
   VIRTUALIZOR BACKUP PORTAL - ULTRA MODERN DESIGN SYSTEM
   Domain: report.systemzonevn.top
   =================================================================== */

:root {
    /* Color Palette - Cyber Indigo & Deep Slate Dark Mode */
    --bg-base: #0a0d14;
    --bg-surface: rgba(18, 24, 38, 0.7);
    --bg-surface-elevated: rgba(26, 34, 52, 0.85);
    --bg-glass: rgba(20, 27, 45, 0.65);
    --bg-glass-card: rgba(22, 30, 50, 0.55);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focus: rgba(99, 102, 241, 0.5);

    /* Accents */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.35);

    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);

    --green: #10b981;
    --green-surface: rgba(16, 185, 129, 0.12);
    --green-glow: rgba(16, 185, 129, 0.3);

    --amber: #f59e0b;
    --amber-surface: rgba(245, 158, 11, 0.12);

    --red: #ef4444;
    --red-surface: rgba(239, 68, 68, 0.12);

    --purple: #a855f7;
    --purple-surface: rgba(168, 85, 247, 0.12);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 25px rgba(99, 102, 241, 0.35);

    /* Layout & Geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= RESET & BASE ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

code, pre {
    font-family: 'JetBrains Mono', Consolas, monospace;
}

/* ================= AMBIENT BACKGROUND GLOWS ================= */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    transition: opacity 1s ease;
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -100px;
    background: radial-gradient(circle, #4338ca 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-2 {
    width: 550px;
    height: 550px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, #0891b2 0%, rgba(6, 182, 212, 0) 70%);
}

.glow-3 {
    width: 450px;
    height: 450px;
    top: 45%;
    left: 45%;
    background: radial-gradient(circle, #7e22ce 0%, rgba(168, 85, 247, 0) 70%);
    opacity: 0.2;
}

/* ================= GLASS PANEL EFFECT ================= */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.app-root {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= LOGIN SCREEN ================= */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    background: rgba(18, 25, 43, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.brand-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
    margin-bottom: 16px;
}

.logo-box.mini {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 12px -3px rgba(99, 102, 241, 0.4);
}

.brand-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.brand-header .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.input-wrap input {
    width: 100%;
    background: rgba(12, 17, 29, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 13px 14px 13px 44px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.input-wrap input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(15, 22, 38, 0.9);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-wrap input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
    color: var(--primary-light);
}

.btn-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
}

.btn-toggle-pw:hover {
    color: var(--text-primary);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
    font-size: 13px;
    gap: 8px;
}

.checkbox-container input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.badge-hint {
    color: var(--primary-light);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 8px 18px -4px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13.5px;
}

.alert-box.error {
    background: var(--red-surface);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.cluster-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ================= DASHBOARD LAYOUT ================= */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    margin: 16px 24px 0 24px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 25, 42, 0.7);
    border-radius: var(--radius-lg);
}

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

.portal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.portal-domain {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.sync-status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
}

.sync-time {
    color: var(--text-muted);
    border-left: 1px solid var(--border-glass);
    padding-left: 10px;
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    padding: 4px 6px 4px 12px;
    border-radius: 30px;
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    transform: scale(1.08);
}

/* Dashboard Body */
.dashboard-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* ================= STATS CARDS ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass-card);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.5);
}

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

.stat-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-blue {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.icon-green {
    background: var(--green-surface);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.icon-red {
    background: var(--amber-surface);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.icon-purple {
    background: var(--purple-surface);
    color: var(--purple);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.stat-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.stat-unit {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-footer {
    display: flex;
    align-items: center;
    font-size: 12.5px;
}

.badge-sub {
    font-size: 12px;
}

.badge-sub.positive {
    color: var(--green);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.text-green { color: #10b981; }
.text-amber { color: #f59e0b; }
.text-purple { color: #a855f7; }
.text-muted { color: var(--text-muted); }

/* ================= FILTER & CONTROLS ================= */
.filter-bar {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: rgba(12, 17, 30, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.select-wrapper select {
    background: rgba(12, 17, 30, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 13.5px;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-light);
}

.btn-action {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    padding: 9px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-action:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

/* ================= DATA TABLE ================= */
.table-container {
    padding: 20px 24px;
    overflow: hidden;
}

.table-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.table-header-info h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.record-count {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table thead th {
    background: rgba(12, 18, 32, 0.85);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-glass);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.data-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.vps-id-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.12);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.vps-name-cell {
    display: flex;
    flex-direction: column;
}

.vps-hostname {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14.5px;
}

.vps-os-tag {
    font-size: 11.5px;
    color: var(--text-muted);
}

.ip-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.8);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    display: inline-block;
}

.node-badge {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.size-badge {
    font-weight: 600;
    color: #e2e8f0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

.status-badge.ok {
    background: var(--green-surface);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.warning {
    background: var(--amber-surface);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.missing {
    background: var(--red-surface);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-detail {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detail:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 14px;
    opacity: 0.5;
}

/* ================= MODALS ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 15, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: rgba(18, 25, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

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

.modal-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-title-box h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(12, 17, 30, 0.6);
}

/* Steps inside Agent Modal */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.config-grid {
    background: rgba(10, 14, 25, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.config-row .label {
    color: var(--text-muted);
    min-width: 110px;
}

.config-row .val {
    flex: 1;
    color: var(--primary-light);
    word-break: break-all;
}

.btn-copy-mini {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy-mini:hover {
    background: var(--primary);
    color: #fff;
}

.code-block {
    position: relative;
    background: #060911;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-top: 8px;
}

.code-block pre {
    overflow-x: auto;
    font-size: 13px;
    color: #38bdf8;
    white-space: pre-wrap;
    word-break: break-all;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--primary);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(16, 24, 40, 0.95);
    border: 1px solid var(--primary-light);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-actions {
        width: 100%;
    }
}

/* ================= 3 NODE & 2 STORAGE CARDS ================= */
.cluster-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
}

.overview-box {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass-card);
}

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

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-with-icon h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.tag-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
}

.tag-badge.storage {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.3);
}

.pulse-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--green);
}

.storage-total-badge {
    font-size: 12.5px;
    font-family: 'JetBrains Mono', monospace;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.node-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.node-item-card {
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.node-item-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.node-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.node-name {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.node-status-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
}

.node-ip {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.node-vps-count {
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.node-vps-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-light);
}

.node-vps-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Storage cards */
.storage-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.storage-item-card {
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.storage-item-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.storage-title {
    font-weight: 700;
    font-size: 14px;
    color: #e2e8f0;
}

.storage-path {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.storage-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.storage-files {
    font-weight: 700;
    color: #ffffff;
}

.storage-size {
    color: #a855f7;
    font-weight: 600;
}

.date-folders-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.folder-tag {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
