﻿/* --- BLAZOR ERROR UI styling --- */
#blazor-error-ui {
    background: #1a1a1a;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 20000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border-top: 2px solid var(--accent-danger);
    backdrop-filter: blur(10px);
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    opacity: 0.7;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.25);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 15% 25%, var(--glow-1), transparent 50%),
        radial-gradient(circle at 85% 75%, var(--glow-2), transparent 45%),
        radial-gradient(circle at 45% 90%, var(--glow-3), transparent 60%);
}

/* --- LOGIN VIEW --- */
#login-view {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.login-card {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-subtle), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-success));
}

/* Success State Overlay */
.login-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 20;
    color: var(--accent-success);
    gap: 16px;
    text-align: center;
}

.login-success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-success-overlay svg:not(.spinner) {
    width: 64px;
    height: 64px;
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: scale(0);
}

.login-success-overlay svg.spinner {
    width: 56px;
    height: 56px;
    animation: authSpin 1s linear infinite;
}

@keyframes authSpin {
    100% {
        transform: rotate(360deg);
    }
}

.login-success-overlay h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    animation: slideUpFade 0.5s 0.2s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.login-success-overlay p {
    font-size: 14px;
    color: var(--text-secondary);
    animation: slideUpFade 0.5s 0.3s forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes popIn {
    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Fullscreen generic overlay for Logout */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 10000;
    gap: 16px;
    color: var(--text-primary);
}

.fullscreen-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.fullscreen-overlay svg.spinner {
    width: 64px;
    height: 64px;
    animation: authSpin 1s linear infinite;
}

.fullscreen-overlay h2 {
    font-size: 24px;
    font-weight: 600;
    animation: slideUpFade 0.5s 0.2s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.fullscreen-overlay p {
    font-size: 14px;
    color: var(--text-secondary);
    animation: slideUpFade 0.5s 0.3s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 8px;
}

.login-header img {
    height: 64px;
    width: auto;
    margin-bottom: 16px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.login-header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 2;
    transition: stroke 0.3s;
}

.input-wrapper input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px 12px 42px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: var(--bg-base);
}

.input-wrapper input:focus+svg {
    stroke: var(--accent-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* --- LOGS SPECIFIC --- */
.logs-table-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.logs-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.logs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logs-table tbody tr {
    transition: background 0.2s;
}

.logs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.log-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
}

.badge-info {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-critical {
    background: rgba(153, 27, 27, 0.3);
    color: #fca5a5;
    border: 1px solid rgba(153, 27, 27, 0.5);
}

.log-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-surface);
}

.log-pagination button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.log-pagination button:hover {
    background: var(--bg-panel);
    border-color: var(--accent-primary);
}

.widget-dropdown label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.widget-dropdown label:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(4px);
}

.log-pagination button.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* --- DASHBOARD VIEW --- */
#dashboard-view {
    display: none;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

#static-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    /* Większa wyrazistość zgodnie z prośbą */
}

#dashboard-view.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.sidebar {
    width: 260px;
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    z-index: 10;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

#sidebar-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.brand img {
    height: 28px;
    width: auto;
}

.brand span {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.nav-item.active {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    position: relative;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 10%;
    height: 80%;
    width: 4px;
    background: var(--accent-primary);
    border-radius: 0 4px 4px 0;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 5;
    background: var(--bg-surface);
}

.topbar {
    height: 60px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px 4px 4px;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-user:hover {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle:hover {
    background: var(--bg-surface);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Vulcan Imaging Layout (Based on existing Razor Page) */
.vi-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
    gap: 24px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.vi-title-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vi-title-area img {
    height: 32px;
}

.vi-title-area h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.vi-header-actions {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background: var(--bg-panel);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--text-secondary);
}

.btn-outline svg {
    width: 16px;
    height: 16px;
}

.vi-main-grid {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 24px;
    flex-grow: 1;
    min-height: 0;
}

/* Stats Row */
.vi-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    flex-shrink: 0;
}

.stat-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    background: inherit;
    filter: blur(30px);
    opacity: 0.1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.stat-info span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info h3 {
    font-size: 28px;
    margin-top: 4px;
    font-weight: 700;
    line-height: 1;
}

/* Split Layout: Columns */
.vi-content-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
}

/* Generic Panel */
.panel {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Agent List / Recent Activity */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.list-item:hover {
    border-color: var(--accent-primary);
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
}

.status-dot.offline {
    background: var(--text-secondary);
}

.status-dot.restoring {
    background: var(--accent-warning);
    box-shadow: 0 0 8px var(--accent-warning);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Active Deployments Grid */
.active-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.deployment-card {
    background: var(--bg-card);
    border-top: 4px solid var(--accent-primary);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.deployment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.machine-name {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.machine-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 28px;
    margin-top: 4px;
}

.progress-section {
    margin-top: 8px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-step {
    color: var(--accent-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    bottom: 0;
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: sweep 2s linear infinite;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-success));
    border-radius: 3px;
}

@keyframes sweep {
    0% {
        left: -150px;
    }

    100% {
        left: 100%;
    }
}

.deployment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

.duration {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.duration svg {
    width: 14px;
    height: 14px;
}

/* --- DASHBOARD COMMAND CENTER CSS --- */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.view-section.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    grid-auto-rows: min-content;
    align-content: start;
    gap: 24px;
    padding: 24px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.cmd-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-subtle);
    min-width: 0;
    /* Prevents flex/grid children from stretching container */
    overflow: hidden;
}

.cmd-card-wide {
    grid-column: 1 / -1;
}

.cmd-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

/* Donut Chart */
.donut-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 160px;
    margin-top: 12px;
}

.donut-svg {
    transform: rotate(-90deg);
    width: 172px;
    height: 172px;
}

.donut-bg {
    fill: none;
    stroke: var(--accent-danger);
    stroke-width: 12;
}

.donut-value {
    fill: none;
    stroke: var(--accent-success);
    stroke-width: 12;
    stroke-dasharray: 440;
    stroke-dashoffset: 98;
    stroke-linecap: round;
}

.donut-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.donut-text span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SQL Table & Badges */
.table-responsive {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.sql-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.sql-table th {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 12px 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.sql-table td {
    font-size: 13px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.sql-table tr:hover td {
    background: var(--bg-surface);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Toolbar & Dropdown */
.dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
}

.dashboard-toolbar h2 {
    font-size: 20px;
    font-weight: 700;
}

.widget-dropdown-container {
    position: relative;
}

.widget-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-subtle), var(--shadow-glow);
    z-index: 100;
    min-width: 240px;
    flex-direction: column;
    gap: 12px;
}

.widget-dropdown.show {
    display: flex;
}

.widget-dropdown label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

.widget-dropdown input[type="checkbox"] {
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Alerts List */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: 12px;
    border-left: 3px solid var(--accent-danger);
}

.alert-item.warning {
    border-left-color: var(--accent-warning);
}

.alert-icon {
    display: flex;
    align-items: flex-start;
    margin-top: 2px;
}

.alert-item .alert-icon svg {
    color: var(--accent-danger);
}

.alert-item.warning .alert-icon svg {
    color: var(--accent-warning);
}

.alert-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

.alert-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

.node-network {
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
    min-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.topology-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

path.topo-line-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}


.node-server {
    background: rgba(15, 17, 26, 0.8);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3), inset 0 0 10px rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    position: relative;
    align-self: flex-start;
    width: 300px;
    box-sizing: border-box;
}

.node-branches {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    position: relative;
    width: 300px;
    /* Same as server width for mapping bounds */
    align-items: flex-end;
    /* Align right to leave space for data streams */
}

.node-agent {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.node-agent:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
}

.status-dot.offline {
    background: var(--text-secondary);
}

.status-dot.restoring {
    background: var(--accent-warning);
    box-shadow: 0 0 8px var(--accent-warning);
    animation: statusPulse 1.5s infinite;
}

.status-dot.uploading {
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.node-agent-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.node-agent-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.node-agent.imaging .node-agent-progress-fill {
    background: linear-gradient(90deg, transparent, var(--accent-warning));
}

.node-agent.uploading .node-agent-progress-fill {
    background: linear-gradient(90deg, transparent, var(--accent-primary));
}

.node-agent.online {
    border-color: rgba(16, 185, 129, 0.3);
}

.node-agent.imaging {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.node-agent.uploading {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.node-agent.offline {
    opacity: 0.6;
}

/* Animations for adding new nodes */
@keyframes popNode {
    0% {
        transform: scale(0.5) translateX(-20px);
        opacity: 0;
        filter: blur(4px);
    }

    100% {
        transform: scale(1) translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

.node-agent.new-node {
    animation: popNode 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Overlay for Task Details Panel */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Task Details Side Panel */
.task-details-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--bg-panel);
    border-left: var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.task-details-panel.open {
    right: 0;
}

/* Animated LED Strip */
.panel-led-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.panel-led-strip::after {
    content: '';
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, transparent, var(--accent-success), var(--accent-primary), transparent);
    animation: stripSweep 3s linear infinite;
}

@keyframes stripSweep {
    0% {
        top: -150px;
    }

    100% {
        top: 100%;
    }
}

.panel-header-sub {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 27px;
    /* Make room for LED strip */
}

.panel-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.panel-header-sub h3 {
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header-info {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 13px;
}

.info-label {
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.panel-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.panel-close-btn:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.steps-container {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.step-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 32px;
}

.step-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.step-item:last-child::before {
    display: none;
}

.step-item:last-child {
    padding-bottom: 0;
}

.step-item.completed::before {
    background: var(--accent-success);
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    z-index: 2;
    flex-shrink: 0;
}

.step-item.completed .step-icon {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.step-item.active .step-icon {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.step-icon svg {
    width: 14px;
    height: 14px;
}

.step-content {
    flex: 1;
    margin-top: 2px;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.step-item.completed .step-title,
.step-item.active .step-title {
    color: var(--text-primary);
}

.step-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.step-item.active .step-desc {
    color: var(--accent-primary);
}

/* Settings View Layout */
.settings-layout {
    display: flex;
    height: 100%;
    width: 100%;
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.settings-sidebar {
    width: 250px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.settings-nav-item {
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.settings-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.settings-nav-item.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
    /* very faint primary */
}

.settings-main {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

.settings-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-row:first-child {
    padding-top: 0;
}

.setting-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-weight: 500;
}

.setting-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.switch-toggle {
    appearance: none;
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.switch-toggle:checked {
    background: var(--accent-primary);
}

.switch-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-toggle:checked::after {
    transform: translateX(18px);
}

/* Settings Modal Specifics */
.settings-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.settings-modal {
    width: 1100px;
    height: 730px;
    background: var(--bg-panel);
    border-radius: 12px;
    border: var(--glass-border);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-modal-overlay.active .settings-modal {
    transform: translateY(0) scale(1);
}

.settings-modal-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.settings-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Forms inside Settings */
.form-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    margin-top: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--accent-primary);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary) !important;
}

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    background-color: var(--bg-surface);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.custom-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: transparent;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.custom-checkbox:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.custom-checkbox:checked::before {
    transform: scale(1);
}

/* Custom Dropdown Override */
.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 24px;
    margin-top: 8px;
}

.custom-dropdown-selected {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-dropdown-selected:focus,
.custom-dropdown-selected.open {
    border-color: var(--accent-primary);
}

.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.custom-dropdown-options.show {
    display: block;
}

.custom-dropdown-option {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.custom-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.01);
}

/* --- SETTINGS & MODALS --- */
.settings-layout {
    display: flex;
    height: 100%;
    width: 100%;
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.settings-sidebar {
    width: 250px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.settings-nav-item {
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.settings-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.settings-nav-item.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.settings-main {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

.settings-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-row:first-child {
    padding-top: 0;
}

.setting-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-weight: 500;
}

.setting-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.switch-toggle {
    appearance: none;
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.switch-toggle:checked {
    background: var(--accent-primary);
}

.switch-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-toggle:checked::after {
    transform: translateX(18px);
}

.settings-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.settings-modal {
    width: 1100px;
    height: 730px;
    background: var(--bg-panel);
    border-radius: 12px;
    border: var(--glass-border);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-modal-overlay.active .settings-modal {
    transform: translateY(0) scale(1);
}

.settings-modal-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.settings-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    margin-top: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--accent-primary);
}

.custom-checkbox {
    appearance: none;
    background-color: var(--bg-surface);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.custom-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: transparent;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.custom-checkbox:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.custom-checkbox:checked::before {
    transform: scale(1);
}

.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 24px;
    margin-top: 8px;
}

.custom-dropdown-selected {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-dropdown-selected.open {
    border-color: var(--accent-primary);
}

.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.custom-dropdown-options.show {
    display: block;
}

.custom-dropdown-option {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.custom-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.01);
}