/* ProjectHorizon - TrueNAS-inspired Design System */

:root {
    /* Colors - Dark Theme inspired by TrueNAS */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --bg-hover: #2d333b;

    --border-primary: #30363d;
    --border-secondary: #21262d;

    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;

    /* Accent Colors */
    --accent-primary: #58a6ff;
    --accent-secondary: #1f6feb;
    --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);

    /* Status Colors */
    --success: #3fb950;
    --warning: #d29922;
    --error: #f85149;
    --info: #58a6ff;

    /* Chart Colors */
    --cpu-color: #58a6ff;
    --memory-color: #a371f7;
    --storage-color: #3fb950;
    --network-color: #f78166;

    /* Sizing */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 64px;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(88, 166, 255, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Disable selection highlight on UI elements (not text content) */
.nav-item,
.file-item,
.btn,
.menu-toggle,
.sidebar,
.header,
.widget,
.card,
.volume-card,
.context-menu-item,
.tab-btn,
.open-as-btn,
.container-card,
.service-card,
.share-card,
.toolbar-btn,
.modal-close,
.logo,
svg,
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Allow selection in text content areas */
.doc-body pre,
.doc-body textarea,
input[type="text"],
input[type="password"],
textarea,
.text-editor {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
    max-width: 360px;
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-icon.success {
    color: var(--success);
}

.toast-icon.info {
    color: var(--accent-primary);
}

.toast-icon.warning {
    color: var(--warning);
}

.toast-icon.error {
    color: var(--danger);
}

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
}

/* App Layout */
.app {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: width var(--transition-normal), transform var(--transition-normal);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-primary);
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-primary);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    max-width: calc(100vw - var(--sidebar-width));
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
.header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.hostname {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

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

/* Pages */
.page {
    display: none;
    padding: 24px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.page.active {
    display: block;
}

.page-content {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

/* Widgets Grid */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

/* Widget */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all var(--transition-normal);
}

.widget:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-md);
}

.widget.wide {
    grid-column: span 2;
}

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

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-secondary);
}

.widget-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Progress Ring */
.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.56;
    stroke-dashoffset: 326.56;
    transition: stroke-dashoffset var(--transition-slow);
}

.cpu-ring {
    stroke: var(--cpu-color);
}

.memory-ring {
    stroke: var(--memory-color);
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ring-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* CPU Cores */
.cpu-cores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.cpu-core {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.cpu-core-fill {
    height: 100%;
    background: var(--cpu-color);
    transition: width var(--transition-fast);
}

/* Memory Details */
.memory-details {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.mem-item {
    text-align: center;
}

.mem-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 4px;
}

.mem-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* System Info Grid */
.system-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Storage List */
.storage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.storage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.storage-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-name {
    font-weight: 500;
    color: var(--text-primary);
}

.storage-usage {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.storage-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    background: var(--storage-color);
    border-radius: 4px;
    transition: width var(--transition-normal);
}

.storage-bar-fill.warning {
    background: var(--warning);
}

.storage-bar-fill.danger {
    background: var(--error);
}

.storage-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Docker Stats */
.docker-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.docker-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.docker-stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* Network Interfaces */
.network-interfaces {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.network-interface {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-secondary);
    gap: 12px;
    min-width: 0;
}

.network-interface:last-child {
    border-bottom: none;
}

.network-name {
    font-weight: 500;
    color: var(--text-primary);
    flex-shrink: 0;
}

.network-ip {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 24px;
}

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

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 8px;
}

/* Containers List */
.containers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.container-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.container-item:hover {
    background: var(--bg-hover);
}

.container-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.container-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.container-status.running {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.container-status.stopped {
    background: var(--error);
}

.container-status.paused {
    background: var(--warning);
}

.container-name {
    font-weight: 600;
    color: var(--text-primary);
}

.container-image {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.container-actions {
    display: flex;
    gap: 8px;
}

/* Files List */
.files-list {
    display: flex;
    flex-direction: column;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-item:hover {
    background: var(--bg-hover);
}

.file-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.file-icon.folder {
    color: var(--warning);
}

.file-name {
    flex: 1;
    font-weight: 500;
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.file-modified {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item:hover {
    color: var(--accent-primary);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
}

/* Loading */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Network List */
.network-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.network-card {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.network-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.network-card-name {
    font-weight: 600;
    color: var(--text-primary);
}

.network-card-mac {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: monospace;
}

.network-card-stats {
    display: flex;
    gap: 24px;
}

.network-stat {
    display: flex;
    flex-direction: column;
}

.network-stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.network-stat-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .widget.wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        max-width: 85vw;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        max-width: 100vw;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .widgets-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 16px;
    }

    .header {
        padding: 0 16px;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .card {
        padding: 16px;
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* File browser mobile fixes */
    .file-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .toolbar-nav {
        order: 1;
    }

    .toolbar-path {
        order: 3;
        width: 100%;
    }

    .toolbar-search {
        order: 2;
        flex: 1;
        min-width: 120px;
    }

    .toolbar-actions {
        order: 4;
        width: 100%;
        justify-content: flex-end;
    }

    .file-item {
        padding: 12px 8px;
    }

    .file-size,
    .file-modified {
        display: none;
    }

    /* Context menu mobile */
    .context-menu {
        max-width: 90vw;
    }

    /* Modal mobile fixes */
    .modal {
        width: 95vw;
        max-height: 90vh;
        margin: 5vh auto;
    }

    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Open As modal mobile */
    .open-as-options {
        grid-template-columns: 1fr 1fr;
    }

    .open-as-btn.open-as-download {
        grid-column: span 2;
    }

    /* Share cards mobile */
    .share-card {
        flex-wrap: wrap;
    }

    /* Service cards mobile */
    .service-card {
        flex-wrap: wrap;
    }

    .service-actions {
        width: 100%;
        margin-top: 8px;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }

    .page-title {
        font-size: 1.125rem;
    }

    .header {
        padding: 0 12px;
    }

    .page {
        padding: 12px;
    }

    .card {
        padding: 12px;
    }

    .widgets-grid {
        gap: 12px;
    }

    .widget {
        padding: 16px;
    }

    .widget h3 {
        font-size: 0.875rem;
    }

    .widget-value {
        font-size: 1.5rem;
    }

    .open-as-options {
        grid-template-columns: 1fr;
    }

    .open-as-btn.open-as-download {
        grid-column: span 1;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.875rem;
    }

    .volumes-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-primary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Auth Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.auth-logo h1 {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-bottom: 16px;
    text-align: center;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-btn:hover {
    background: var(--bg-hover);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    min-width: 160px;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 100;
}

.user-dropdown.open {
    display: block;
}

.user-info {
    padding: 12px;
    border-bottom: 1px solid var(--border-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.modal form {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Volume & User Items */
.volume-item,
.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
}

.volume-info,
.user-info-row {
    flex: 1;
}

.volume-name,
.user-name-cell {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.volume-paths,
.user-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.volume-paths span {
    display: inline-block;
    margin-right: 16px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-admin {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-primary);
}

.badge-user {
    background: rgba(163, 113, 247, 0.2);
    color: #a371f7;
}

.badge-rw {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
}

.badge-ro {
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning);
}

/* Onboarding Wizard */
.onboarding-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 48px;
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-lg);
}

.onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.progress-step.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.progress-step.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-line {
    width: 40px;
    height: 2px;
    background: var(--border-primary);
    margin: 0 8px;
}

.onboarding-step {
    display: none;
    text-align: center;
    animation: fadeSlideIn 0.3s ease;
}

.onboarding-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.onboarding-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--accent-primary);
}

.onboarding-icon.small {
    width: 60px;
    height: 60px;
}

.onboarding-icon.success {
    color: var(--success);
}

.onboarding-icon svg {
    width: 100%;
    height: 100%;
}

.onboarding-step h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-step h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.onboarding-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    text-align: left;
}

.feature-icon {
    font-size: 1.25rem;
}

.onboarding-form {
    text-align: left;
}

.onboarding-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

/* Telemetry */
.telemetry-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
}

.telemetry-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.coming-soon-badge {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    width: fit-content;
}

.telemetry-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border-radius: 24px;
    transition: var(--transition-fast);
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent-primary);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled+.toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Finish Summary */
.finish-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(63, 185, 80, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--success);
}

.summary-icon {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Volume List for File Browser */
.volumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

.volume-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.volume-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.volume-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--accent-primary);
}

.volume-card-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.volume-card-path {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* File Browser Toolbar */
.file-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.toolbar-nav {
    display: flex;
    gap: 4px;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toolbar-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.toolbar-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.toolbar-btn svg {
    width: 100%;
    height: 100%;
}

.toolbar-path {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.path-icon {
    padding: 8px 12px;
    color: var(--text-tertiary);
}

.path-icon svg {
    width: 16px;
    height: 16px;
}

.path-input {
    flex: 1;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
}

.path-input:focus {
    outline: none;
}

.path-input::placeholder {
    color: var(--text-tertiary);
}

.path-go-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.path-go-btn:hover {
    color: var(--accent-primary);
}

.path-go-btn svg {
    width: 16px;
    height: 16px;
}

.toolbar-search {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    padding: 0 12px;
    min-width: 200px;
}

.toolbar-search svg {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-input {
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 100%;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.file-breadcrumb-bar {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.file-breadcrumb-bar .breadcrumb {
    font-size: 0.875rem;
}

/* Responsive toolbar */
@media (max-width: 768px) {
    .file-toolbar {
        flex-wrap: wrap;
    }

    .toolbar-path {
        order: 3;
        width: 100%;
    }

    .toolbar-search {
        min-width: 120px;
        flex: 1;
    }
}

/* Docker Container Cards */
.container-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-fast);
}

.container-card:hover {
    background: var(--bg-hover);
}

.container-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.container-status.running {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.container-status.exited,
.container-status.stopped {
    background: var(--text-tertiary);
}

.container-status.paused {
    background: var(--warning);
}

.container-info {
    flex: 1;
    min-width: 0;
}

.container-name {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-image {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-stats {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.container-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.container-stat svg {
    width: 14px;
    height: 14px;
}

.container-actions {
    display: flex;
    gap: 8px;
}

.container-actions .btn {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Logs Modal */
.logs-modal {
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
}

.logs-modal .modal-body {
    max-height: 60vh;
    overflow: auto;
}

.logs-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    color: var(--text-secondary);
    max-height: 50vh;
    overflow-y: auto;
}

/* Images List */
.image-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.image-card:hover {
    background: var(--bg-hover);
}

.image-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.image-info {
    flex: 1;
    min-width: 0;
}

.image-tag {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.image-actions .btn-danger {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
    margin-top: 16px;
}

/* Service Cards */
.service-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-fast);
}

.service-card:hover {
    background: var(--bg-hover);
}

.service-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.service-status.active {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.service-status.inactive,
.service-status.failed {
    background: var(--danger);
}

.service-status.activating,
.service-status.deactivating {
    background: var(--warning);
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.service-actions .btn {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    width: fit-content;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Share Cards */
.share-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-icon {
    color: var(--accent-primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-icon svg {
    width: 24px;
    height: 24px;
}

.share-info {
    flex: 1;
    min-width: 0;
}

.share-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.share-path {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.share-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.share-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 180px;
    z-index: 10000;
    padding: 6px 0;
    animation: contextFadeIn 0.15s ease;
}

@keyframes contextFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.context-menu-item:hover {
    background: var(--bg-hover);
}

.context-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.context-menu-item.context-menu-danger {
    color: var(--danger);
}

.context-menu-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 6px 0;
}

/* Media Viewer Modal */
.media-modal {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
}

.media-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #000;
    border-radius: var(--border-radius);
}

.media-body video,
.media-body audio {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius);
}

.media-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

/* Document Viewer Modal */
.doc-modal {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
}

.doc-body {
    max-height: 70vh;
    overflow: auto;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 16px;
}

.doc-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.doc-body iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: var(--border-radius);
}

/* Properties Modal */
.properties-table {
    width: 100%;
    border-collapse: collapse;
}

.properties-table tr {
    border-bottom: 1px solid var(--border-primary);
}

.properties-table tr:last-child {
    border-bottom: none;
}

.properties-table td {
    padding: 10px 0;
}

.properties-table td:first-child {
    color: var(--text-secondary);
    width: 120px;
    font-weight: 500;
}

.properties-table td:last-child {
    color: var(--text-primary);
    word-break: break-all;
}

/* File item selected state */
.file-item.selected {
    background: var(--accent-primary);
    color: white;
}

.file-item.selected .file-meta {
    color: rgba(255, 255, 255, 0.8);
}

/* File toolbar additions */
.toolbar-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.toolbar-actions .btn {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Open As Modal */
.open-as-modal {
    max-width: 500px;
}

.open-as-filename {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.open-as-filename strong {
    color: var(--text-primary);
}

.open-as-hint {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.open-as-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.open-as-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.open-as-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.open-as-btn svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.open-as-btn.open-as-download {
    grid-column: span 2;
    flex-direction: row;
    justify-content: center;
    background: var(--bg-secondary);
}

.open-as-btn.open-as-download svg {
    width: 20px;
    height: 20px;
}

/* Custom Themed Dropdown */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 10px 36px 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-select select:hover {
    border-color: var(--accent-primary);
}

.custom-select select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.custom-select::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

/* Custom Themed Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    background: var(--bg-tertiary);
}

.custom-checkbox input:checked+.checkbox-mark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-mark svg {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.custom-checkbox input:checked+.checkbox-mark svg {
    opacity: 1;
}

.custom-checkbox:hover .checkbox-mark {
    border-color: var(--accent-primary);
}

/* Path Input with Browse Button */
.path-input-group {
    display: flex;
    gap: 8px;
}

.path-input-group input {
    flex: 1;
}

.path-input-group .btn {
    white-space: nowrap;
}

/* Version Bar */
.version-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
    padding: 8px 24px;
    z-index: 90;
    font-size: 0.8125rem;
}

/* Add bottom padding when version bar is visible */
body.has-version-bar .main-content {
    padding-bottom: 50px;
}

body.has-version-bar .page-content {
    padding-bottom: 60px;
}

.version-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.version-bar-text {
    color: var(--warning);
}

.version-bar-separator {
    color: var(--border-primary);
}

.version-bar-version {
    color: var(--text-secondary);
}

.version-bar-version strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .version-bar {
        left: 0;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .version-bar-content {
        gap: 6px;
        flex-direction: column;
        text-align: center;
    }

    .version-bar-separator {
        display: none;
    }

    .version-bar-text {
        font-size: 0.6875rem;
        line-height: 1.3;
    }

    .version-bar-version {
        font-size: 0.625rem;
    }
}