/* SKYRIQ PREMIUM DESIGN SYSTEM */
:root {
    --bg-app: #06080c;
    --bg-sidebar: #0a0e14;
    --bg-card: rgba(20, 26, 38, 0.6);
    --bg-accent: rgba(59, 130, 246, 0.1);

    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-magenta: #d946ef;
    --accent-cyan: #06b6d4;

    --grad-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --grad-magenta: linear-gradient(135deg, #d946ef 0%, #c026d3 100%);
    --grad-bm: linear-gradient(90deg, #3b82f6 0%, #d946ef 100%);

    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow: hidden;
}

/* LAYOUT STRUCTURE */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* SIDEBAR REFINED */
.app-sidebar {
    width: 80px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    z-index: 100;
}

.sidebar-top {
    margin-bottom: 3rem;
    color: var(--accent-blue);
}

.app-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    background: var(--bg-accent);
}

.nav-link.active {
    box-shadow: inset 0 0 0 1px var(--accent-blue);
    color: var(--accent-blue);
}

.nav-link.logout {
    color: #ef4444;
    margin-top: auto;
}

/* MAIN CONTENT */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    height: 60px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.selector-btn {
    background: #111827;
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-id {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--accent-blue);
    flex-shrink: 0;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.toggle-group {
    background: #111827;
    padding: 4px;
    border-radius: 10px;
    display: flex;
    gap: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.toggle-btn.active {
    background: var(--accent-blue);
    color: white;
}

/* DASHBOARD GRID AREA */
.dashboard-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem 2rem 2rem;
}

.grid-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* KPI CARDS - Compact Grid */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.kpi-card {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

.kpi-card:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.1s ease;
}

.kpi-label {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 500;
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* CHARTS SECTION */
.charts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.chart-widget {
    padding: 1.5rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.chart-widget.span-2 {
    grid-column: span 2;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-header h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 600;
}

.widget-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-item {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.post {
    background: var(--accent-blue);
}

.add-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Bar Chart Viz */
.bar-chart-container {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 1.5rem;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 120px;
}

.bar {
    width: 20px;
    border-radius: 4px 4px 1px 1px;
}

.bar.pre {
    background: rgba(255, 255, 255, 0.05);
}

.bar.post {
    background: var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.axis-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Area Chart Viz */
.area-chart-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.area-svg {
    width: 100%;
    height: 140px;
}

/* List Progress Viz */
.list-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.list-row {
    display: grid;
    grid-template-columns: 60px 1fr 50px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress .fill {
    height: 100%;
    background: var(--grad-bm);
}

/* FIGURES ROW */
.figures-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.figure-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.figure-card h3 {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.figure-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.blue-glow {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-bottom: 3px solid var(--accent-blue);
}

.blue-glow .figure-value {
    color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.magenta-glow {
    background: linear-gradient(180deg, rgba(217, 70, 239, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-bottom: 3px solid var(--accent-magenta);
}

.magenta-glow .figure-value {
    color: var(--accent-magenta);
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
}

/* INSIGHTS */
.section-title {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.insights-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.insight-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
}

.insight-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    transition: 0.2s;
}

/* UTILS */
.glass-glow {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-app);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE */
@media (max-width: 1300px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .chart-widget.span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 1100px) {
    .figures-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .figures-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .figures-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding: 0;
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .chart-card,
    .big-stat {
        grid-column: span 1 !important;
    }
}

/* LOGIN SCREEN STYLES */
.login-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #1a1f2e 0%, #000000 100%);
    overflow: hidden;
}

.brand-section {
    flex: 1.2;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-glass);
}

.brand-logo {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--grad-bm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 500px;
}

.stats-container {
    display: flex;
    gap: 1.5rem;
}

.stat-box {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-box h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.stat-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: white;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
    pointer-events: none;
    display: flex;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px var(--accent-blue);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-dim);
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    margin-right: 0.5rem;
}

.link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.link:hover {
    color: var(--accent-magenta);
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--grad-bm);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.social-login-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.social-login-text::before,
.social-login-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: var(--border-glass);
}

.social-login-text::before {
    left: 0;
}

.social-login-text::after {
    right: 0;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.signup-footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .brand-section {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 3rem 2rem;
    }

    .form-section {
        padding: 3rem 1rem;
    }
}

/* VM VIEW STYLES */
.vm-view-area {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vm-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: var(--bg-accent);
}

.vm-view-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.table-search {
    position: relative;
    background: #111827;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-search input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
}

/* TABLE STYLING */
.vm-table-container {
    padding: 0;
    overflow-x: auto;
}

.vm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.vm-table th,
.vm-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.vm-table thead th {
    color: var(--text-dim);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.vm-table thead th.sortable {
    cursor: pointer;
    user-select: none;
}

.vm-table thead th.sortable:hover {
    color: var(--accent-blue);
}

.sort-icon {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-left: 4px;
}

.vm-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.mono {
    font-family: 'Courier New', Courier, monospace;
    color: var(--accent-cyan);
}

/* STATUS PILLS */
.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill.running {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-pill.stopped {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-pill.terminated {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* TAGS */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tag-badge {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: white;
}

.add-tag-pill {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
}

.add-tag-pill:hover {
    background: var(--accent-blue);
    color: white;
}

.block-devices code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 4px;
    font-size: 0.75rem;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-field label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.input-field input {
    background: #111827;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    outline: none;
}

.input-field input:focus {
    border-color: var(--accent-blue);
}

.color-picker {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.color-opt {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-opt.active {
    border-color: white;
    transform: scale(1.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* INTERACTIVITY */
.kpi-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* GROUP BY STYLES */
#group-by-tags-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(10, 127, 255, 0.4);
}

.group-header {
    cursor: pointer;
    user-select: none;
}

.group-header:hover td {
    background: rgba(10, 127, 255, 0.08) !important;
}

.group-header td {
    background: rgba(10, 127, 255, 0.05) !important;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1rem !important;
    border-left: 4px solid var(--accent-blue);
}

.group-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-metrics {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.metric-value {
    color: white;
    font-weight: 600;
}

.metric-divider {
    opacity: 0.3;
}

/* STORAGE STYLES */
.storage-info {
    width: 120px;
}

.storage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.util-val {
    color: var(--accent-blue);
    font-weight: 700;
}

.storage-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-magenta));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.chevron-icon {
    transition: transform 0.2s ease;
}

.group-header.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.group-header.collapsed td {
    border-bottom: 1px solid var(--border-glass);
}

/* PAGINATION STYLES */
.pagination-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
}

.page-info {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.pagination-btns {
    display: flex;
    gap: 0.5rem;
}

.pagination-btns .selector-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* EXPANDABLE ROW STYLES */
.vm-row {
    cursor: pointer;
    transition: background 0.2s;
}

.vm-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.vm-row.expanded {
    background: rgba(10, 127, 255, 0.03);
}

.vm-id-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-chevron {
    transition: transform 0.2s;
    opacity: 0.5;
}

.vm-row.expanded .sub-chevron {
    transform: rotate(0deg);
}

.vm-row:not(.expanded) .sub-chevron {
    transform: rotate(-90deg);
}

.expanded-row td {
    padding: 0 !important;
    background: transparent !important;
}

.details-container {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-glass);
}

.volume-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.volume-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.25rem;
    min-width: 300px;
    flex: 1;
    max-width: 380px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.volume-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.volume-path {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.volume-type-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-dim);
    font-weight: 700;
}

.volume-card-body {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.donut-section {
    position: relative;
    width: 80px;
    height: 80px;
}

.donut-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.donut-fill {
    stroke: var(--accent-blue);
    stroke-linecap: round;
}

.util-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.util-label .pct {
    font-size: 1rem;
    font-weight: 800;
    color: white;
}

.util-label .lbl {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 2px;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.d-lbl {
    color: var(--text-dim);
}

.d-val {
    color: white;
    font-weight: 500;
}

.d-val.sec-ok {
    color: var(--accent-blue);
    font-weight: 600;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* ACTION BADGES */
.action-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.action-badge.expand {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.action-badge.shrink {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.action-badge.no-action {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
}

#group-by-action-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(10, 127, 255, 0.4);
}
/* VOLUME CARD ACTION BUTTONS */
.btn-action {
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.btn-action.expand {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-action.expand:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.btn-action.shrink {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-action.shrink:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.btn-action.no-action {
    display: none;
}

/* AGENT MODAL STYLES */
.agent-modal {
    max-width: 400px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0f1115;
}

.modal-header-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(20, 20, 20, 0) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.alert-icon {
    color: #ef4444;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-description {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1.5rem 0;
    padding: 0 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0 2rem 2rem 2rem;
    width: 100%;
}

.modal-actions button {
    flex: 1;
    margin: 0;
}

.redeploy-btn {
    background: var(--accent-blue);
}

.redeploy-btn:hover {
    background: #2563eb;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* AGENT INFO MODAL STYLES (Extends Agent Modal) */
.modal-header-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(20, 20, 20, 0) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.info-icon {
    color: #10b981;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    color: var(--text-dim);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.detail-label {
    font-weight: 500;
}

.detail-value {
    color: white;
    font-family: monospace;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    margin: 1rem 0;
}
