/*
 * =============================================================================
 * BACKUPSTACK - DASHBOARD STYLES v3.0
 * =============================================================================
 * Enterprise-grade UI with sidebar navigation, clean layout, teal branding
 * =============================================================================
 */

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */
:root {
    /* Brand Colors - Teal Theme */
    --primary-color: #00897b;
    --primary-hover: #00695c;
    --primary-light: #e0f2f1;
    --primary-dark: #004d40;
    --secondary-color: #26a69a;
    --accent-color: #4db6ac;

    /* OS Colors */
    --windows-color: #0078d4;
    --windows-bg: #e6f2ff;
    --linux-color: #f57c00;
    --linux-bg: #fff3e0;

    /* Status Colors */
    --success-color: #10b981;
    --success-bg: #d1fae5;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --danger-color: #ef4444;
    --danger-bg: #fee2e2;

    /* Health Colors */
    --health-online: #10b981;
    --health-online-bg: #d1fae5;
    --health-warning: #f59e0b;
    --health-warning-bg: #fef3c7;
    --health-critical: #ef4444;
    --health-critical-bg: #fee2e2;

    /* Neutral Colors */
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Sidebar */
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 64px;
    --sidebar-bg: #1a202c;
    --sidebar-hover: #2d3748;
    --sidebar-active: var(--primary-color);
    --sidebar-text: #a0aec0;
    --sidebar-text-active: #ffffff;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* =============================================================================
   BUTTERY SMOOTH TRANSITIONS - Global Interactive Elements
   ============================================================================= */

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea,
.btn, .card, .nav-item, .modal,
[role="button"], [onclick] {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced button interactions */
button, .btn, [role="button"],
input[type="submit"], input[type="button"] {
    cursor: pointer;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

button:active, .btn:active, [role="button"]:active,
input[type="submit"]:active, input[type="button"]:active {
    transform: scale(0.97);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth hover lift effect for cards */
.card, .stat-card, .vm-card, .machine-card,
.download-card, .volume-card-modern, .site-card,
[class*="-card"] {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s ease;
}

.card:hover, .stat-card:hover, .vm-card:hover, .machine-card:hover,
.download-card:hover, .volume-card-modern:hover, .site-card:hover,
[class*="-card"]:hover {
    transform: translateY(-2px);
}

/* Smooth link hover */
a {
    transition: color 0.15s ease, background-color 0.15s ease,
                border-color 0.15s ease, opacity 0.15s ease;
}

/* Table row hover */
tr {
    transition: background-color 0.15s ease;
}

/* Form inputs focus */
input, select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
                background-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.15);
}

/* Modal animations */
.modal, .download-modal, [class*="-modal"] {
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content, .download-modal-content, [class*="-modal-content"] {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.25s ease;
}

/* Badge and tag animations */
.badge, .tag, [class*="-badge"], [class*="-tag"] {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.badge:hover, .tag:hover {
    transform: scale(1.05);
}

/* Icon button smooth hover */
.icon-btn, [class*="-icon-btn"] {
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* Dropdown/Select smooth */
select {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Progress bars smooth */
.progress-fill, [class*="progress-fill"], [class*="-fill"] {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Checkbox/Radio smooth */
input[type="checkbox"], input[type="radio"] {
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Toggle switches */
.toggle, .switch, [class*="toggle"], [class*="switch"] {
    transition: background-color 0.25s ease;
}

.toggle::before, .switch::before,
[class*="toggle"]::before, [class*="switch"]::before {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple effect base */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.ripple:active::after {
    width: 200%;
    height: 200%;
    opacity: 1;
    transition: 0s;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* =============================================================================
   LAYOUT WITH SIDEBAR
   ============================================================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* =============================================================================
   SIDEBAR NAVIGATION
   ============================================================================= */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.sidebar-logo-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.sidebar-logo-text .version {
    font-size: 0.65rem;
    color: var(--sidebar-text);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md) 0;
    overflow-y: auto;
}

.nav-section {
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sidebar-text);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px var(--spacing-md);
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-lg);
    margin-bottom: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.15s ease,
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    transform: translateX(4px);
}

.nav-item:active {
    transform: translateX(2px) scale(0.98);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.4);
}

.nav-item-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item-text {
    white-space: nowrap;
    overflow: hidden;
}

.nav-item-badge {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-item-badge.warning {
    background: var(--warning-color);
}

.nav-item-badge.success {
    background: var(--success-color);
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-md) var(--spacing-lg);
}

.sidebar-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

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

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.sidebar-user-info {
    flex: 1;
    overflow: hidden;
}

.sidebar-user-name {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: var(--sidebar-text);
    font-size: 0.7rem;
}

.sidebar-logout {
    color: var(--sidebar-text);
    font-size: 1.1rem;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-logout:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

/* =============================================================================
   MAIN CONTENT AREA (WITH SIDEBAR)
   ============================================================================= */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =============================================================================
   HEADER STYLES - TEAL BRANDING
   ============================================================================= */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 77, 64, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.page-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.version-badge {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 12px;
    width: fit-content;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.back-link {
    color: white;
    text-decoration: none;
    margin-right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.back-link:hover {
    background: rgba(255,255,255,0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* =============================================================================
   BUTTON STYLES
   ============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-add {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

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

.btn-icon {
    font-size: 1rem;
}

/* =============================================================================
   MAIN CONTENT
   ============================================================================= */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    width: 100%;
}

/* =============================================================================
   SECTION TITLES
   ============================================================================= */
.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* =============================================================================
   STATISTICS SECTION - ENHANCED CARDS
   ============================================================================= */
.stats-section {
    margin-bottom: var(--spacing-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.stats-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.stats-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-sm {
    padding: var(--spacing-md);
}

.stat-card-sm .stat-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
}

.stat-card-sm .stat-value {
    font-size: 1.35rem;
}

.stat-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.vm-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.windows-icon { background: linear-gradient(135deg, var(--windows-bg), #cce4ff); }
.linux-icon { background: linear-gradient(135deg, var(--linux-bg), #ffe0b2); }
.backup-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.storage-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.full-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.incr-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.online-icon { background: linear-gradient(135deg, var(--health-online-bg), #a7f3d0); }
.warning-icon { background: linear-gradient(135deg, var(--health-warning-bg), #fcd34d); }
.critical-icon { background: linear-gradient(135deg, var(--health-critical-bg), #fca5a5); }
.time-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Health Cards */
.health-online-card { border-left: 4px solid var(--health-online); }
.health-warning-card { border-left: 4px solid var(--health-warning); }
.health-critical-card { border-left: 4px solid var(--health-critical); }

/* =============================================================================
   STORAGE BARS
   ============================================================================= */
.storage-bars {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.storage-bar-container {
    margin-bottom: var(--spacing-md);
}

.storage-bar-container:last-child {
    margin-bottom: 0;
}

.storage-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.storage-value {
    font-weight: 700;
    color: var(--text-primary);
}

.storage-bar {
    height: 28px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.storage-bar-fill {
    height: 100%;
    border-radius: var(--radius-md);
    transition: width 0.6s ease;
    position: relative;
}

.storage-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.windows-fill { background: linear-gradient(90deg, var(--windows-color), #40a9ff); }
.linux-fill { background: linear-gradient(90deg, var(--linux-color), #ffb74d); }

/* =============================================================================
   OS BADGES
   ============================================================================= */
.os-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 5px 10px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.os-badge:hover {
    transform: scale(1.05);
}

.os-windows {
    background: linear-gradient(135deg, var(--windows-bg), #cce4ff);
    color: var(--windows-color);
}

.os-linux {
    background: linear-gradient(135deg, var(--linux-bg), #ffe0b2);
    color: var(--linux-color);
}

.os-unknown {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

/* =============================================================================
   HEALTH BADGES
   ============================================================================= */
.health-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.health-badge:hover {
    transform: scale(1.05);
}

.health-online {
    background: linear-gradient(135deg, var(--health-online-bg), #a7f3d0);
    color: var(--health-online);
}

.health-warning {
    background: linear-gradient(135deg, var(--health-warning-bg), #fcd34d);
    color: #b45309;
}

.health-critical {
    background: linear-gradient(135deg, var(--health-critical-bg), #fca5a5);
    color: var(--health-critical);
}

.health-unknown {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

/* =============================================================================
   BACKUP TYPE BADGES
   ============================================================================= */
.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-full {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.type-incremental {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

/* =============================================================================
   VMS SECTION
   ============================================================================= */
.vms-section {
    background-color: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.vm-count {
    background: linear-gradient(135deg, var(--primary-light), #b2dfdb);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-group {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-group select {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-group select:hover {
    border-color: var(--primary-color);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* =============================================================================
   TABLE STYLES
   ============================================================================= */
.table-container {
    overflow: visible;
    /* Responsive: only add scroll on small screens */
}

@media (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
        /* Dropdowns will be handled via fixed positioning on small screens */
    }
}

.vm-table {
    width: 100%;
    border-collapse: collapse;
}

.vm-table th,
.vm-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.vm-table th {
    background: linear-gradient(135deg, var(--bg-color), #eef1f5);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
}

.vm-table tbody tr {
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-table tbody tr:hover {
    background-color: var(--primary-light);
}

.vm-name {
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.vm-name:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* =============================================================================
   STATUS BADGES
   ============================================================================= */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.status-success {
    background: linear-gradient(135deg, var(--success-bg), #a7f3d0);
    color: var(--success-color);
}

.status-failed {
    background: linear-gradient(135deg, var(--danger-bg), #fca5a5);
    color: var(--danger-color);
}

.status-unknown {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

/* =============================================================================
   ACTION BUTTONS
   ============================================================================= */
.actions {
    display: flex;
    gap: var(--spacing-xs);
}

/* =============================================================================
   LOADING STATE
   ============================================================================= */
.loading-row td {
    text-align: center;
    padding: var(--spacing-xl) * 2;
    color: var(--text-secondary);
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--spacing-sm);
    vertical-align: middle;
}

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

/* =============================================================================
   EMPTY STATE
   ============================================================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* =============================================================================
   MODAL STYLES
   ============================================================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.25s ease,
                backdrop-filter 0.25s ease;
}

.modal.active,
.modal.show {
    display: flex;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

.modal-sm {
    max-width: 400px;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(4px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-xs);
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
}

.modal-close:hover {
    color: var(--danger-color);
    background: var(--danger-bg);
    transform: scale(1.1) rotate(90deg);
}

.modal-close:active {
    transform: scale(0.95) rotate(90deg);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    background: #fafafa;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.delete-filename {
    font-family: monospace;
    background: var(--bg-color);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin: var(--spacing-md) 0;
}

.warning-text {
    color: var(--danger-color);
    font-size: 0.875rem;
}

/* =============================================================================
   TOAST NOTIFICATIONS
   ============================================================================= */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 400px;
    transform-origin: right center;
    will-change: transform, opacity;
    min-width: 280px;
    color: #fff;
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateX(-8px) scale(1.02);
    }
    80% {
        transform: translateX(4px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-success { 
    border-left: 4px solid #28a745; 
    background: linear-gradient(135deg, #1a1a2e 0%, #1e3a2e 100%);
}
.toast-error { 
    border-left: 4px solid #dc3545; 
    background: linear-gradient(135deg, #1a1a2e 0%, #3a1e1e 100%);
}
.toast-warning { 
    border-left: 4px solid #ffc107; 
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a1e 100%);
}

.toast-icon { font-size: 1.4rem; }
.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
    background: linear-gradient(135deg, var(--card-bg), #f5f5f5);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

#server-status { font-weight: 700; }
.server-online { color: var(--success-color); }
.server-offline { color: var(--danger-color); }

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 1200px) {
    .stats-grid-5, .stats-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .main-content {
        padding: var(--spacing-md);
    }

    .stats-grid, .stats-grid-5, .stats-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .vm-table th, .vm-table td {
        padding: var(--spacing-sm);
        font-size: 0.8rem;
    }

    .section-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .section-header-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .stats-grid, .stats-grid-5, .stats-grid-6 {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }
}

/* Sidebar responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar-logo-text,
    .nav-item-text,
    .nav-item-badge,
    .nav-section-title,
    .sidebar-user-info {
        display: none;
    }

    .sidebar-header {
        padding: var(--spacing-md);
        display: flex;
        justify-content: center;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .nav-item-icon {
        margin: 0;
    }

    .sidebar-footer {
        padding: var(--spacing-md);
    }

    .sidebar-user {
        justify-content: center;
    }

    .sidebar-logout {
        display: none;
    }

    .app-main {
        margin-left: var(--sidebar-collapsed-width);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }

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

    .sidebar-logo-text,
    .nav-item-text,
    .nav-item-badge,
    .nav-section-title,
    .sidebar-user-info {
        display: block;
    }

    .sidebar-header {
        justify-content: flex-start;
    }

    .nav-item {
        justify-content: flex-start;
        padding: 12px var(--spacing-md);
    }

    .sidebar-user {
        justify-content: flex-start;
    }

    .sidebar-logout {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.form-group .required {
    color: var(--danger-color);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:hover {
    border-color: var(--primary-light);
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* OS Selector Radio Buttons */
.os-selector {
    display: flex;
    gap: var(--spacing-md);
}

.os-option {
    flex: 1;
    cursor: pointer;
}

.os-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.os-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.os-option input[type="radio"]:checked + .os-option-content {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), #b2dfdb);
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.2);
}

.os-option:hover .os-option-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.os-option-icon {
    font-size: 2.75rem;
    margin-bottom: var(--spacing-sm);
}

.os-option-label {
    font-weight: 700;
    color: var(--text-primary);
}

/* =============================================================================
   TOKEN DISPLAY STYLES
   ============================================================================= */
.success-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--success-bg), #a7f3d0);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid #86efac;
}

.success-icon {
    font-size: 2.25rem;
}

.success-message p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.token-section {
    margin-bottom: var(--spacing-lg);
}

.token-section label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.token-display {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.token-display code {
    flex: 1;
    padding: var(--spacing-md);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.agent-instructions {
    background: linear-gradient(135deg, var(--bg-color), #eef1f5);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.agent-instructions h4 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-primary);
    font-weight: 700;
}

.agent-instructions ol {
    margin: 0;
    padding-left: var(--spacing-lg);
    color: var(--text-secondary);
}

.agent-instructions li {
    margin-bottom: var(--spacing-xs);
}

/* =============================================================================
   DISK USAGE SECTION - WITH PIE CHARTS
   ============================================================================= */
.disk-usage-section {
    margin-bottom: var(--spacing-xl);
}

.disk-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.disk-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.disk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.disk-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.disk-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.disk-icon-backup {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.disk-icon-system {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.disk-icon-boot {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.disk-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.disk-mount {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Pie Chart Styles */
.disk-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.disk-pie-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
}

.disk-pie-chart::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--card-bg);
    border-radius: 50%;
    z-index: 1;
}

.disk-percent-label {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.disk-progress-container {
    margin-bottom: var(--spacing-md);
}

.disk-progress-bar {
    height: 14px;
    background: var(--bg-color);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.disk-progress-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.6s ease;
    position: relative;
}

.disk-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.disk-progress-fill.healthy {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.disk-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.disk-progress-fill.critical {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.disk-progress-backup {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(16, 185, 129, 0.4);
    border-radius: 7px;
}

.disk-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.disk-stat {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.disk-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.disk-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.disk-stat-value.backup-value {
    color: var(--success-color);
}

.disk-percent {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* =============================================================================
   AGENT STATUS BADGES
   ============================================================================= */
.agent-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.agent-connected {
    background: linear-gradient(135deg, var(--success-bg), #a7f3d0);
    color: var(--success-color);
}

.agent-disconnected {
    background: linear-gradient(135deg, var(--danger-bg), #fca5a5);
    color: var(--danger-color);
}

.agent-stale {
    background: linear-gradient(135deg, var(--warning-bg), #fcd34d);
    color: #b45309;
}

.agent-unknown {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

.agent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s infinite;
}

.agent-connected .agent-dot {
    animation: pulse-dot 2s infinite;
}

.agent-disconnected .agent-dot {
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* =============================================================================
   ACTION TRIGGER BUTTON (in table)
   ============================================================================= */
.action-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-trigger-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-trigger-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.action-trigger-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.action-trigger-text {
    font-weight: 600;
}

.action-trigger-caret {
    font-size: 0.7rem;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.action-trigger-btn.active .action-trigger-caret {
    transform: rotate(180deg);
}

/* =============================================================================
   PORTAL DROPDOWN (attached to body)
   ============================================================================= */
.portal-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.portal-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portal-dropdown-content {
    position: relative;
}

.portal-dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    max-width: 280px;
    overflow: hidden;
    animation: portalDropdownIn 0.2s ease;
}

.portal-dropdown.flip-up .portal-dropdown-menu {
    animation: portalDropdownInUp 0.2s ease;
}

@keyframes portalDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.portal-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

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

.portal-dropdown-item.primary {
    color: var(--primary-color);
    font-weight: 600;
}

.portal-dropdown-item.primary:hover {
    background: var(--primary-light);
}

.portal-dropdown-item.running {
    color: var(--warning-color);
    pointer-events: none;
}

.portal-dropdown-item.running .portal-dropdown-icon {
    animation: spin 1s linear infinite;
}

.portal-dropdown-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.portal-dropdown-item.danger {
    color: var(--danger-color);
}

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

.portal-dropdown-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.portal-dropdown-text {
    flex: 1;
}

.portal-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Legacy dropdown styles (kept for backwards compatibility) */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-dropdown-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.action-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 220px;
    z-index: 9999;
    display: none;
    overflow: visible;
}

.action-dropdown.open .action-dropdown-menu {
    display: block;
    animation: portalDropdownIn 0.2s ease;
}

.action-dropdown.open {
    z-index: 9998;
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

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

.action-dropdown-item.danger {
    color: var(--danger-color);
}

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

.action-dropdown-item.primary {
    color: var(--primary-color);
    font-weight: 600;
}

.action-dropdown-item.primary:hover {
    background: var(--primary-light);
}

.action-dropdown-item.running {
    color: var(--warning-color);
    pointer-events: none;
    opacity: 0.8;
}

.action-dropdown-item.running .action-dropdown-icon {
    animation: spin 1s linear infinite;
}

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

.action-dropdown-item:disabled,
.action-dropdown-item.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.action-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.action-dropdown-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* Backup status indicator in table */
.backup-running {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--warning-color);
    font-weight: 600;
}

.backup-running .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--warning-bg);
    border-top-color: var(--warning-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =============================================================================
   MANAGE AGENTS BUTTON
   ============================================================================= */
.btn-agents {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.btn-agents:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* =============================================================================
   MODAL LARGE
   ============================================================================= */
.modal-lg {
    max-width: 700px;
}

/* =============================================================================
   AGENTS LIST IN MODAL
   ============================================================================= */
.agents-list {
    max-height: 400px;
    overflow-y: auto;
}

.agent-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
    transition: all 0.2s ease;
}

.agent-list-item:hover {
    background: var(--bg-color);
    border-color: var(--primary-light);
}

.agent-list-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.agent-list-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.agent-list-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.agent-list-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.agent-list-actions {
    display: flex;
    gap: var(--spacing-xs);
}

/* =============================================================================
   LOGS CONTAINER
   ============================================================================= */
.logs-container {
    max-height: 400px;
    overflow-y: auto;
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
}

.log-entry {
    display: flex;
    gap: var(--spacing-sm);
    padding: 6px 0;
    border-bottom: 1px solid #2d2d44;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: #6b7280;
    white-space: nowrap;
}

.log-level {
    font-weight: 700;
    width: 70px;
}

.log-level.success { color: #4ade80; }
.log-level.error { color: #f87171; }
.log-level.warning { color: #fbbf24; }
.log-level.info { color: #60a5fa; }

.log-message {
    color: #e5e5e5;
    word-break: break-word;
}

/* =============================================================================
   LOADING SPINNER SMALL
   ============================================================================= */
.loading-spinner-small {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: var(--spacing-lg) auto;
}

/* =============================================================================
   BACKUP STATUS BADGE
   ============================================================================= */
.backup-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.backup-ok {
    background: linear-gradient(135deg, var(--success-bg), #a7f3d0);
    color: var(--success-color);
}

.backup-warning {
    background: linear-gradient(135deg, var(--warning-bg), #fcd34d);
    color: #b45309;
}

.backup-failed {
    background: linear-gradient(135deg, var(--danger-bg), #fca5a5);
    color: var(--danger-color);
}

.backup-none {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

/* =============================================================================
   CONFIGURATION STATUS BADGE
   ============================================================================= */
.config-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.config-not-configured {
    background-color: #fef3c7;
    color: #92400e;
}

.config-configured {
    background-color: #dbeafe;
    color: #1e40af;
}

.config-active {
    background-color: #d1fae5;
    color: #065f46;
}

.config-disabled {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Mode badge for panel */
.mode-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #e0e7ff;
    color: #4338ca;
    margin-left: 12px;
}

/* Readonly input styling */
input.readonly,
select.readonly,
textarea.readonly {
    background-color: #f9fafb !important;
    color: #6b7280 !important;
    cursor: not-allowed;
}

/* =============================================================================
   CHECKBOX STYLES
   ============================================================================= */
.checkbox-col {
    width: 50px;
    text-align: center;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    width: 22px;
    height: 22px;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: var(--card-bg);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.checkbox-wrapper input[type="checkbox"]:indeterminate + .checkmark {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:indeterminate + .checkmark::after {
    content: '';
    width: 10px;
    height: 2.5px;
    background: white;
    border: none;
    transform: none;
}

/* Selected row highlight */
.vm-table tbody tr.selected {
    background: linear-gradient(135deg, var(--primary-light), #b2dfdb);
}

.vm-table tbody tr.selected:hover {
    background: linear-gradient(135deg, #b2dfdb, #80cbc4);
}

/* =============================================================================
   BULK ACTIONS BAR
   ============================================================================= */
.bulk-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-bottom: -1px;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-actions-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.bulk-actions-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.selected-count {
    font-weight: 700;
    font-size: 0.95rem;
}

.bulk-actions-bar .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.bulk-actions-bar .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
}

.bulk-actions-bar .btn-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: none;
}

.bulk-actions-bar .btn-danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* =============================================================================
   MODAL EXTRA LARGE
   ============================================================================= */
.modal-xl {
    max-width: 900px;
}

/* =============================================================================
   MODAL TABS
   ============================================================================= */
.modal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.modal-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-tab:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.modal-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--primary-light);
}

.tab-icon {
    font-size: 1.15rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

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

/* =============================================================================
   AGENT DOWNLOAD SECTION
   ============================================================================= */
.agent-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--spacing-lg);
}

/* 2-column layout for agent cards - ensures equal height and alignment */
.agent-download-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 900px) {
    .agent-download-grid-2 {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .agent-download-grid-2 {
        max-width: 100%;
        padding: 0 10px;
    }
}

.agent-download-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.agent-download-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.agent-download-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #eef1f5);
    border-bottom: 1px solid var(--border-color);
    min-height: 100px;
    box-sizing: border-box;
}

.agent-download-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.agent-download-icon.windows-agent {
    background: linear-gradient(135deg, #0078d4, #00a4ef);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.35);
}

.agent-download-icon.linux-agent {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.35);
}

.agent-download-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.agent-version {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary-light), #b2dfdb);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.agent-download-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-requirements {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.agent-download-body .agent-instructions {
    margin: 0;
}

.agent-download-body .agent-instructions strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.agent-download-body .agent-instructions ol {
    margin: 0;
    padding-left: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.agent-download-body .agent-instructions li {
    margin-bottom: 6px;
}

.agent-command {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    border-radius: 10px;
    padding: 12px 16px;
    overflow: hidden;
    margin-top: auto;
}

.agent-command code {
    flex: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    color: #e5e5e5;
    white-space: nowrap;
    overflow-x: auto;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.agent-download-footer {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #eef1f5);
    border-top: 1px solid var(--border-color);
}

.btn-download {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    gap: 10px;
    padding: 0 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none !important;
    cursor: pointer;
    box-sizing: border-box;
}

/* Windows EXE button - Blue theme */
.btn-download.btn-primary {
    background: linear-gradient(135deg, #0078d4, #00a4ef) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.35);
}

.btn-download.btn-primary:hover {
    background: linear-gradient(135deg, #006cbd, #0090d4) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.45);
}

/* Linux button - Green theme */
.btn-download.btn-success {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-download.btn-success:hover {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-download .btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.agent-note {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    color: #92400e;
}

.agent-note .note-icon {
    font-size: 1.6rem;
}

.agent-note p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* =============================================================================
   TOOLTIPS
   ============================================================================= */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1a202c;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: var(--shadow-md);
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a202c;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
    margin-bottom: -4px;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* =============================================================================
   REPORTS PAGE STYLES
   ============================================================================= */

/* Report Tabs */
.report-tabs {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.report-tab {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.report-tab:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.report-tab.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.report-tab .tab-icon {
    font-size: 1.1rem;
}

.report-tab .tab-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--danger-color);
    color: white;
}

/* Report Sections */
.report-section {
    display: none;
}

.report-section.active {
    display: block;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.report-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.report-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.report-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Report Summary Cards */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.summary-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.summary-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-color);
}

.summary-icon.success { background: var(--success-bg); }
.summary-icon.warning { background: var(--warning-bg); }
.summary-icon.danger { background: var(--danger-bg); }
.summary-icon.primary { background: var(--primary-light); }

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Alert Summary */
.alert-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.alert-card {
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--border-color);
}

.alert-card.critical { border-left-color: var(--danger-color); }
.alert-card.warning { border-left-color: var(--warning-color); }
.alert-card.stale { border-left-color: var(--text-muted); }

.alert-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.alert-icon { font-size: 1.25rem; }
.alert-title {
    font-weight: 600;
    color: var(--text-primary);
}

.alert-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.alert-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Report Table */
.report-table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-filters {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.filter-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--card-bg);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.report-table th {
    background: var(--bg-color);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.report-table td {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.report-table tbody tr:hover {
    background: var(--bg-color);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.success, .status-badge.online {
    background: var(--success-bg);
    color: var(--success-color);
}
.status-badge.warning, .status-badge.degraded {
    background: var(--warning-bg);
    color: var(--warning-color);
}
.status-badge.failed, .status-badge.offline, .status-badge.critical {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.backup-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
    background: var(--bg-color);
    color: var(--text-secondary);
}

.backup-type-badge.full {
    background: var(--primary-light);
    color: var(--primary-color);
}

.severity-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.critical { background: var(--danger-bg); color: var(--danger-color); }
.severity-badge.warning { background: var(--warning-bg); color: var(--warning-color); }

.version-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-family: monospace;
}

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

.error-message {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

/* Table Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    gap: var(--spacing-sm);
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty States */
.empty-state-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.empty-icon {
    font-size: 1.5rem;
}

/* Storage Usage */
.storage-overview {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 900px) {
    .storage-overview {
        grid-template-columns: 1fr;
    }
}

.storage-overview-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.storage-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
}

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

.storage-ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 10;
}

.storage-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1s ease;
}

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

.storage-percent {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.storage-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.storage-details {
    width: 100%;
}

.storage-detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.storage-detail-row:last-child {
    border-bottom: none;
}

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

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

/* Storage by Machine */
.storage-by-machine {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.storage-by-machine h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.storage-bars-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.storage-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.storage-bar-header .machine-name {
    font-weight: 500;
}

.storage-size {
    color: var(--text-muted);
}

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

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

/* Storage Trend */
.storage-trend {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.storage-trend h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.trend-chart {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.trend-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.trend-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* Agent Summary */
.agent-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.agent-summary-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.agent-summary-card.online .summary-icon { color: var(--success-color); }
.agent-summary-card.offline .summary-icon { color: var(--danger-color); }
.agent-summary-card.warning .summary-icon { color: var(--warning-color); }

/* Restore Summary */
.restore-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* =============================================================================
   SETTINGS PAGE STYLES
   ============================================================================= */

/* Settings Layout */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--spacing-xl);
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

/* Settings Navigation */
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    height: fit-content;
    position: sticky;
    top: var(--spacing-lg);
}

@media (max-width: 900px) {
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        position: static;
    }
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: left;
    white-space: nowrap;
}

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

.settings-nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.settings-nav-item .nav-icon {
    font-size: 1.1rem;
}

/* Settings Content */
.settings-content {
    min-width: 0;
}

/* Settings Sections */
.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.settings-section-header {
    margin-bottom: var(--spacing-xl);
}

.settings-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-section-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Settings Groups */
.settings-group {
    margin-bottom: var(--spacing-xl);
}

.settings-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

/* Settings Card */
.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Setting Row */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    gap: var(--spacing-lg);
}

.setting-row:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.setting-info label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.setting-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.setting-control-inline {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Setting Inputs */
.setting-input {
    width: 280px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--card-bg);
    transition: border-color 0.2s ease;
}

.setting-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.setting-input[readonly] {
    background: var(--bg-color);
    color: var(--text-secondary);
}

.setting-input-sm {
    width: 100px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--card-bg);
    text-align: center;
}

.setting-select {
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--card-bg);
    cursor: pointer;
}

.setting-select-sm {
    min-width: 80px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--card-bg);
}

.setting-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.setting-separator {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.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(--border-color);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

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

/* Date Range Picker */
.date-range-picker select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--card-bg);
    cursor: pointer;
}

/* Button Styles */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
}

/* Modal Show */
.modal.show {
    display: flex;
}

/* Cancel Backup Button */
.btn-cancel-backup {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 6px;
    display: inline-block;
    transition: all 0.2s;
}

.btn-cancel-backup:hover {
    background: #c82333;
    transform: scale(1.02);
}

.btn-cancel-backup:active {
    transform: scale(0.98);
}

/* =============================================================================
   PROFESSIONAL BUTTON STYLES - Enterprise Grade
   ============================================================================= */

/* Portal Dropdown - Running State */
.portal-dropdown-item.running {
    background: #ffc107 !important;
    color: #000 !important;
    cursor: not-allowed;
}

.portal-dropdown-item.running:hover {
    background: #e0a800 !important;
}

.portal-dropdown-item.primary {
    background: #28a745;
    color: white;
}

.portal-dropdown-item.primary:hover {
    background: #218838;
}

/* Danger items in dropdown */
.portal-dropdown-item.danger {
    color: #dc3545;
}

.portal-dropdown-item.danger:hover {
    background: #dc3545;
    color: white;
}

/* Action Buttons - Professional Style */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004094);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    box-shadow: 0 2px 4px rgba(40,167,69,0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 2px 4px rgba(220,53,69,0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #000;
    box-shadow: 0 2px 4px rgba(255,193,7,0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62, #3d4246);
}

.btn-add {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-add:hover {
    background: linear-gradient(135deg, #138496, #0f6674);
}

/* Button sizes */
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

/* Button icon */
.btn-icon {
    font-size: 14px;
}

/* Disabled state */
.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Cancel Backup Button - Inline in Progress */
.btn-cancel-backup {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(220,53,69,0.3);
}

.btn-cancel-backup:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(220,53,69,0.4);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-badge.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.status-badge.danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.status-badge.info {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

/* Progress bar improvements */
.bsb {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.bsb-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.bsb-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Table improvements */
.vm-table {
    width: 100%;
    border-collapse: collapse;
}

.vm-table th {
    background: rgba(255,255,255,0.05);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.vm-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.vm-table tr:hover {
    background: rgba(255,255,255,0.03);
}

/* Action dropdown button */
.action-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 6px 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Toast notifications */
.toast {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.warning {
    border-left: 4px solid #ffc107;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal improvements */
.modal-overlay {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* =============================================================================
   IMPROVED TOAST NOTIFICATIONS - More Visible
   ============================================================================= */

.toast-container {
    position: fixed;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 300px !important;
    max-width: 450px !important;
    animation: toastSlideIn 0.4s ease !important;
    pointer-events: auto;
    font-size: 14px !important;
}

.toast-success {
    border-left: 4px solid #28a745 !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #1e3a2e 100%) !important;
}

.toast-error {
    border-left: 4px solid #dc3545 !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #3a1e1e 100%) !important;
}

.toast-warning {
    border-left: 4px solid #ffc107 !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a1e 100%) !important;
}

.toast-icon {
    font-size: 20px !important;
}

.toast-message {
    color: #fff !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

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

/* =============================================================================
   DISK MANAGEMENT STYLES (Phase 9)
   ============================================================================= */

.disk-management-section {
    margin-bottom: 24px;
}

.disk-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.disk-stat {
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 8px;
    padding: 12px 20px;
    min-width: 120px;
    text-align: center;
}

.disk-stat.protected {
    border-left: 4px solid #28a745;
}

.disk-stat.unprotected {
    border-left: 4px solid #ffc107;
}

.disk-stat.detached {
    border-left: 4px solid #6c757d;
}

.disk-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.disk-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.disks-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.disk-card {
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 12px;
    overflow: hidden;
}

.disk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.disk-icon {
    font-size: 28px;
}

.disk-details h4 {
    margin: 0;
    font-size: 16px;
}

.disk-details p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #888;
}

.disk-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.disk-status-badge.protected {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.disk-status-badge.unprotected {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.disk-status-badge.detached {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.disk-status-badge.excluded {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.volumes-list {
    padding: 0;
}

.volume-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.volume-row:last-child {
    border-bottom: none;
}

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

.volume-letter {
    width: 36px;
    height: 36px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.volume-details {
    display: flex;
    flex-direction: column;
}

.volume-name {
    font-weight: 500;
}

.volume-meta {
    font-size: 12px;
    color: #888;
}

.volume-size {
    text-align: right;
}

.volume-size-value {
    font-weight: 600;
}

.volume-size-label {
    font-size: 11px;
    color: #888;
}

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

.disk-events-badge .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.new-disk-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ffc107;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =============================================================================
   ENTERPRISE CANCEL BACKUP MODAL - Professional UI
   ============================================================================= */

.enterprise-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

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

.enterprise-modal {
    background: var(--card-bg, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enterprise-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal-icon-wrapper.danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.enterprise-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.enterprise-modal-body {
    padding: 24px;
}

.modal-subtitle {
    margin: 0 0 20px 0;
    color: var(--text-secondary, #888);
    font-size: 14px;
}

.cancel-backup-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.cancel-backup-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cancel-backup-info .info-row:last-child {
    border-bottom: none;
}

.cancel-backup-info .info-label {
    color: var(--text-muted, #666);
    font-size: 13px;
}

.cancel-backup-info .info-value {
    color: var(--text-primary, #fff);
    font-size: 13px;
    font-weight: 500;
}

.phase-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.phase-badge.phase-init {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.phase-badge.phase-scan {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.phase-badge.phase-transfer {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.phase-badge.phase-dedup {
    background: rgba(111, 66, 193, 0.2);
    color: #6f42c1;
}

.phase-badge.phase-final {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.cancel-warning-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
}

.cancel-warning-box .warning-icon {
    color: #dc3545;
    font-size: 18px;
    flex-shrink: 0;
}

.cancel-warning-box .warning-content {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    line-height: 1.5;
}

.cancel-warning-box .warning-content strong {
    color: #dc3545;
}

.enterprise-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

/* =============================================================================
   FIXED ROW HEIGHT - Backup Status Column
   ============================================================================= */

/* Ensure consistent height for status column */
.vm-table td.status-cell,
.vm-table td[id^=status-] {
    min-height: 72px;
    height: 72px;
    vertical-align: middle;
    padding: 8px 12px;
}

/* Backup Status Box - Fixed dimensions */
.bsb {
    min-height: 56px;
    max-height: 56px;
    height: 56px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.bsb-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 16px;
}

.bsb-row2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 14px;
    margin-top: 2px;
}

.bsb-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 4px 0;
}

.bsb-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Static status also fixed height */
.backup-static-status {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* =============================================================================
   DROPDOWN CANCEL BUTTON STATES
   ============================================================================= */

.portal-dropdown-item.cancel-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.portal-dropdown-item.cancel-disabled:hover {
    background: transparent !important;
}

.dropdown-badge-finalizing {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: auto;
    font-weight: 600;
    text-transform: uppercase;
}

/* Remove old btn-cancel-backup inline button styles - no longer used */
.btn-cancel-backup {
    display: none !important;
}

/* =============================================================================
   ENTERPRISE BACKUP STATUS - Phase-Aware Styling
   ============================================================================= */

/* Inline Spinner - Small, professional */
.bsb-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: bsb-spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

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

/* Status dot (for transfer phase) */
.bsb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
    vertical-align: middle;
    animation: bsb-pulse 1.5s ease-in-out infinite;
}

@keyframes bsb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Subtle percentage (for non-transfer phases) */
.bsb-pct-subtle {
    opacity: 0.4;
    font-size: 10px;
}

/* Subtle size text */
.bsb-size-subtle {
    opacity: 0.5;
    font-style: italic;
}

/* Subtle progress bar (for scanning/calculating) */
.bsb-bar-subtle {
    opacity: 0.5;
}

/* Finalizing progress bar - dimmed with green tint */
.bsb-bar-finalizing {
    opacity: 0.7;
}

.bsb-bar-finalizing .bsb-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* Indeterminate progress animation - subtle sweep */
.bsb-indeterminate {
    width: 30% !important;
    animation: bsb-indeterminate 1.5s ease-in-out infinite;
}

@keyframes bsb-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* =============================================================================
   PHASE-SPECIFIC COLORS - Enterprise Grade
   ============================================================================= */

/* Initializing / Preparing */
.phase-init {
    border-color: rgba(108, 117, 125, 0.3);
}
.phase-init .bsb-spinner,
.phase-init .bsb-dot {
    color: #6c757d;
}
.phase-init .bsb-fill {
    background: linear-gradient(90deg, #6c757d, #868e96);
}

/* Scanning */
.phase-scan {
    border-color: rgba(23, 162, 184, 0.3);
}
.phase-scan .bsb-spinner {
    color: #17a2b8;
}
.phase-scan .bsb-fill {
    background: linear-gradient(90deg, #17a2b8, #20c9e3);
}

/* Calculating */
.phase-calc {
    border-color: rgba(111, 66, 193, 0.3);
}
.phase-calc .bsb-spinner {
    color: #6f42c1;
}
.phase-calc .bsb-fill {
    background: linear-gradient(90deg, #6f42c1, #8b5cf6);
}

/* Transferring / Backing up */
.phase-transfer {
    border-color: rgba(0, 123, 255, 0.3);
}
.phase-transfer .bsb-dot {
    color: #007bff;
}
.phase-transfer .bsb-fill {
    background: linear-gradient(90deg, #007bff, #0dcaf0);
}

/* Deduplicating */
.phase-dedup {
    border-color: rgba(253, 126, 20, 0.3);
}
.phase-dedup .bsb-spinner {
    color: #fd7e14;
}
.phase-dedup .bsb-fill {
    background: linear-gradient(90deg, #fd7e14, #ffc107);
}

/* Finalizing */
.phase-final {
    border-color: rgba(40, 167, 69, 0.3);
}
.phase-final .bsb-spinner {
    color: #28a745;
}
.phase-final .bsb-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* =============================================================================
   BSB LABEL STYLING
   ============================================================================= */

.bsb-label {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.bsb-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.bsb-size {
    font-size: 10px;
    color: var(--text-secondary, #888);
}

.bsb-telem {
    font-size: 10px;
    color: var(--text-muted, #666);
    display: flex;
    gap: 8px;
}

.bsb-telem-item {
    white-space: nowrap;
}

.bsb-calc {
    font-style: italic;
    opacity: 0.7;
}

/* Container - minimal inline block, no borders/backgrounds */


/* Status text - simple inline text */


/* Progress bar container - thin subtle bar */


/* Progress bar fill - green fill */


/* Indeterminate animation for early phases */
.backup-progress-indeterminate {
    width: 30% !important;
    animation: indeterminate-slide 1.5s infinite ease-in-out;
}


    50% { transform: translateX(200%); }
    100% { transform: translateX(-100%); }
}

/* Size text - small muted text */


/* Ensure consistent row height during backup */
.vm-table td {
    vertical-align: middle;
}


}

/* Transfer info */


/* Ensure status cell accommodates the progress */


/* Professional light theme adjustments */


.bp-bar-prep 


/* =============================================================================
   BACKUP PROGRESS - Enterprise Design (Matches Theme)
   ============================================================================= */

.backup-progress-pro {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.bp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.bp-phase {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.bp-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--success-color);
    font-variant-numeric: tabular-nums;
}

.bp-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.bp-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease-out;
}

.bp-bar-prep .bp-fill {
    background: linear-gradient(90deg, var(--windows-color), #3b9eff);
}

.bp-indeterminate {
    width: 35% \!important;
    animation: bp-progress-slide 1.5s ease-in-out infinite;
}

@keyframes bp-progress-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.bp-transfer {
    font-size: 11px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* Status cell override for progress display */
.backup-status.status-cell {
    display: block;
    padding: 0;
    background: transparent;
}

/* =============================================================================
   SEARCH INPUT
   ============================================================================= */
.search-input {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    min-width: 200px;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.search-input::placeholder {
    color: var(--text-secondary);
}

/* =============================================================================
   PAGINATION
   ============================================================================= */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 0 0 8px 8px;
}
.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}
.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}
.page-btn {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.page-btn:hover:not(.disabled):not(.active) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 600;
}
.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.page-ellipsis {
    padding: 0 6px;
    color: var(--text-secondary);
}

/* =============================================================================
   FILE BROWSER MODAL
   ============================================================================= */
.file-browser-modal-content {
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.fb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
    flex-wrap: wrap;
}
.fb-breadcrumb {
    font-size: 13px;
    color: var(--text-secondary);
}
.fb-crumb {
    color: var(--primary-color);
    text-decoration: none;
}
.fb-crumb:hover {
    text-decoration: underline;
}
.fb-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fb-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.fb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.fb-table thead {
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 1;
}
.fb-table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    text-transform: uppercase;
}
.fb-table td {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}
.fb-row:hover {
    background: rgba(59, 130, 246, 0.05);
}
.fb-folder-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.fb-folder-link:hover {
    text-decoration: underline;
}
.fb-icon-folder {
    margin-right: 4px;
}
.fb-icon-file {
    margin-right: 4px;
    opacity: 0.7;
}
.fb-size {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.fb-date {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}
.fb-loading, .fb-empty, .fb-error {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}
.fb-error {
    color: var(--danger-color, #ef4444);
}
.backup-actions-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}
.backup-action-btn.browse {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.backup-action-btn.browse:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =============================================================================
   FOLDER SCOPE SECTION - Enterprise Style
   ============================================================================= */

#section-folder-scope .section-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
}

#section-folder-scope .section-badge.info {
    background: var(--windows-bg);
    color: var(--windows-color);
}

#section-folder-scope .alert-info {
    background: rgba(0, 120, 212, 0.08);
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

#section-folder-scope .alert-info strong {
    color: var(--windows-color);
}

#section-folder-scope .form-textarea {
    width: 100%;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    resize: vertical;
}

#section-folder-scope .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

#section-folder-scope .form-textarea::placeholder {
    color: var(--text-muted);
}

#section-folder-scope .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: help;
    margin-left: 4px;
}

#section-folder-scope small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

#section-folder-scope .btn-sm {
    font-size: 12px;
    padding: 6px 12px;
}

/* =============================================================================
   FOLDER BROWSER MODAL (Acronis-style)
   ============================================================================= */

.folder-browser-modal {
    width: 700px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.folder-browser-modal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.folder-browser-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.browser-path {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.browser-search input {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    width: 200px;
}

.browser-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.folder-tree-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    min-height: 250px;
    max-height: 350px;
    border-bottom: 1px solid var(--border-color);
}

.folder-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

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

.folder-item.parent-nav {
    color: var(--primary-color);
    font-weight: 500;
}

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

.folder-icon {
    font-size: 16px;
}

.folder-name {
    flex: 1;
    font-size: 13px;
}

.folder-arrow {
    padding: 4px 8px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
}

.folder-arrow:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.folder-error {
    padding: 20px;
    text-align: center;
    color: var(--danger-color);
}

.folder-error .error-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.folder-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.selected-folders-panel {
    padding: 12px 16px;
    background: var(--bg-color);
    max-height: 150px;
    overflow-y: auto;
}

.selected-folders-panel h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selected-folders-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selected-folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
}

.selected-folder-item .folder-path {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: var(--text-primary);
}

.selected-folder-item .remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

.selected-folder-item .remove-btn:hover {
    color: var(--danger-color);
}

.no-selection {
    color: var(--text-muted);
    font-style: italic;
    font-size: 12px;
}

/* Input with button layout */
.input-with-button {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.input-with-button .form-textarea {
    flex: 1;
}

.input-with-button .browse-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Loading indicator */
#folder-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-secondary);
}

#folder-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =============================================================================
   FOLDER BROWSER STYLES (Acronis-style)
   ============================================================================= */

.folder-browser-modal {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
}

.folder-browser-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 16px;
}

.browser-path {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 4px;
}

.browser-search input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 6px 12px;
    color: var(--text-primary);
    width: 200px;
}

.folder-tree-container {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    padding: 20px;
    justify-content: center;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 0;
}

.folder-children .folder-item {
    margin-left: 24px;
}

.folder-children .folder-children .folder-item {
    margin-left: 48px;
}

.folder-item:hover {
    background: rgba(255,255,255,0.1);
}

.folder-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.folder-checkbox.checked {
    background: var(--success-color);
    border-color: var(--success-color);
}

.folder-checkbox.checked::after {
    content: ✓;
    color: white;
    font-size: 12px;
}

.expand-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.expand-spacer {
    width: 16px;
}

.folder-icon {
    font-size: 16px;
}

.folder-name {
    flex: 1;
    font-size: 13px;
}

.selected-folders-panel {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 16px;
}

.selected-folders-panel h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.selected-folders-list {
    max-height: 120px;
    overflow-y: auto;
}

.selected-folder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    margin-bottom: 4px;
}

.selected-folder-path {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.remove-folder-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

.no-selection {
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
}

.folder-error, .folder-empty {
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
}

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

.loading-small {
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 12px;
    margin-left: 24px;
}

.folder-empty-small, .folder-error-small {
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 12px;
    margin-left: 24px;
}

.input-with-button {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.input-with-button textarea {
    flex: 1;
}

.browse-btn {
    white-space: nowrap;
    padding: 8px 12px !important;
}

/* =============================================================================
   FOLDER BROWSER - ACRONIS STYLE
   ============================================================================= */

#folder-browser-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.folder-browser-modal {
    background: #1a1a2e;
    border-radius: 12px;
    width: 700px;
    max-width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.folder-browser-modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-browser-modal .modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.folder-browser-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Quick Path Section */
.quick-path-section {
    background: rgba(0,150,136,0.15);
    border: 1px solid rgba(0,150,136,0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.quick-path-header {
    font-size: 12px;
    color: #00bfa5;
    margin-bottom: 8px;
    font-weight: 600;
}

.quick-path-row {
    display: flex;
    gap: 8px;
}

.quick-path-input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: monospace;
}

.quick-path-input:focus {
    border-color: #00bfa5;
    outline: none;
}

.btn-quick-add {
    background: linear-gradient(135deg, #00897b, #00695c);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-quick-add:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
    transform: translateY(-1px);
}

/* Section Headers */
.section-header {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Common Folders Section */
.common-folders-section {
    margin-bottom: 20px;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.folder-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.folder-item.selected {
    background: rgba(0,150,136,0.2);
    border-color: rgba(0,150,136,0.4);
}

.folder-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.folder-checkbox.checked {
    background: #00897b;
    border-color: #00897b;
}

.folder-checkbox.checked::after {
    content: 2713;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.folder-icon {
    font-size: 20px;
    flex-shrink: 0;
}

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

.folder-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.folder-path {
    display: block;
    font-size: 11px;
    color: #666;
    font-family: monospace;
    margin-top: 2px;
}

/* User Folders Section */
.user-folders-section {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 16px;
}

.user-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: monospace;
    font-size: 13px;
    color: #aaa;
}

.username-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 8px 12px;
    color: #fff;
    width: 150px;
    font-family: monospace;
}

.btn-add-user {
    background: #3d5afe;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.btn-add-user:hover {
    background: #304ffe;
}

.user-subfolders {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subfolder-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 14px;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.subfolder-btn:hover {
    background: rgba(0,150,136,0.3);
    border-color: #00897b;
    color: #fff;
}

/* Selected Folders Panel */
.selected-folders-panel {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
}

.selected-folders-panel h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.selected-folders-list {
    max-height: 120px;
    overflow-y: auto;
}

.selected-folder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0,150,136,0.15);
    border-radius: 4px;
    margin-bottom: 4px;
}

.selected-path {
    font-family: monospace;
    font-size: 12px;
    color: #00bfa5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-remove {
    background: none;
    border: none;
    color: #f44336;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.btn-remove:hover {
    color: #ff5252;
}

.no-selection {
    color: #666;
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Modal Footer */
.folder-browser-modal .modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Toolbar */
.folder-browser-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.browser-path {
    font-family: monospace;
    font-size: 12px;
    color: #888;
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 4px;
}

.browser-search input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 6px 12px;
    color: #fff;
    font-size: 12px;
    width: 180px;
}

#folder-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #888;
}
/* =============================================================================
   ENTERPRISE FOLDER BROWSER - Acronis-style
   ============================================================================= */

/* Warning Banner */
.fb-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255,152,0,0.15), rgba(255,193,7,0.1));
    border: 1px solid rgba(255,152,0,0.4);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.fb-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.fb-warning-text {
    font-size: 12px;
    line-height: 1.5;
    color: #ffb74d;
}

.fb-warning-text strong {
    color: #ffa726;
    display: block;
    margin-bottom: 4px;
}

/* Section Labels */
.fb-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Quick Path Section */
.fb-quick-path {
    background: rgba(0,150,136,0.1);
    border: 1px solid rgba(0,150,136,0.3);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.fb-quick-row {
    display: flex;
    gap: 10px;
}

.fb-input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.fb-input:focus {
    border-color: #00bfa5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,191,165,0.2);
}

.fb-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.fb-btn-add {
    background: linear-gradient(135deg, #00897b, #00695c);
    color: white;
}

.fb-btn-add:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
    transform: translateY(-1px);
}

.fb-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.2);
}

.fb-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* Tree Section */
.fb-tree-section {
    margin-bottom: 16px;
}

.fb-tree-container {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

/* Breadcrumb */
.fb-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 12px;
}

.fb-bc-item {
    color: #00bfa5;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.fb-bc-item:hover {
    background: rgba(0,191,165,0.2);
}

.fb-bc-sep {
    color: #666;
}

/* Folder List */
.fb-folder-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Folder Item */
.fb-folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.fb-folder-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}

.fb-folder-item.selected {
    background: rgba(0,150,136,0.2);
    border-color: rgba(0,150,136,0.4);
}

.fb-folder-item.system {
    opacity: 0.6;
}

.fb-folder-item.special {
    border-left: 3px solid #ff9800;
}

/* Checkbox */
.fb-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.fb-checkbox:hover {
    border-color: #00bfa5;
}

.fb-checkbox.checked {
    background: #00897b;
    border-color: #00897b;
}

.fb-checkbox.checked::after {
    content: "\2713";
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* Expand Icon */
.fb-expand {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.fb-expand:hover {
    color: #fff;
}

.fb-expand-space {
    width: 16px;
    flex-shrink: 0;
}

/* Folder Icon and Name */
.fb-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.fb-name {
    flex: 1;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.fb-name:hover {
    color: #00bfa5;
}

.fb-desc {
    font-size: 11px;
    color: #666;
    margin-left: auto;
}

/* Badge */
.fb-badge {
    font-size: 12px;
    margin-left: auto;
}

.fb-badge-warning {
    color: #ff9800;
}

/* Children Container */
.fb-children {
    margin-left: 28px;
    padding-left: 12px;
    border-left: 1px dashed rgba(255,255,255,0.1);
}

/* Loading */
.fb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #888;
}

.fb-loading-small {
    padding: 10px;
    color: #666;
    font-size: 12px;
    margin-left: 28px;
}

.fb-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #00bfa5;
    border-radius: 50%;
    animation: fb-spin 0.8s linear infinite;
}

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

/* Empty State */
.fb-empty {
    padding: 20px;
    text-align: center;
    color: #666;
}

.fb-empty-small {
    padding: 8px 12px;
    color: #555;
    font-size: 11px;
    margin-left: 28px;
}

/* Notice */
.fb-notice {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 10px;
}

.fb-notice-info {
    background: rgba(33,150,243,0.15);
    border: 1px solid rgba(33,150,243,0.3);
    color: #64b5f6;
}

.fb-notice-warning {
    background: rgba(255,152,0,0.15);
    border: 1px solid rgba(255,152,0,0.3);
    color: #ffb74d;
}

/* User Section */
.fb-user-section {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.fb-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fb-user-prefix {
    font-family: monospace;
    font-size: 13px;
    color: #888;
}

.fb-username {
    width: 150px;
    flex: none;
}

.fb-user-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fb-chip {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 14px;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.fb-chip:hover {
    background: rgba(0,150,136,0.3);
    border-color: #00897b;
    color: #fff;
}

/* Selected Folders Panel */
.selected-folders-panel {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 14px;
}

.selected-folders-panel h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}

.selected-folders-list {
    max-height: 120px;
    overflow-y: auto;
}

.fb-selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0,150,136,0.15);
    border-radius: 4px;
    margin-bottom: 4px;
}

.fb-selected-path {
    font-family: monospace;
    font-size: 12px;
    color: #00bfa5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-remove {
    background: none;
    border: none;
    color: #f44336;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.7;
}

.fb-remove:hover {
    opacity: 1;
}

.fb-no-selection {
    color: #888;
    font-size: 12px;
    font-style: italic;
    padding: 10px;
    text-align: center;
}

/* =============================================================================
   ACRONIS-STYLE FOLDER BROWSER ENHANCEMENTS
   ============================================================================= */

/* Modal Sizing */
.folder-browser-modal {
    width: 750px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.folder-browser-modal .modal-header {
    background: linear-gradient(135deg, #1a237e, #283593);
    padding: 16px 20px;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.folder-browser-modal .modal-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.folder-browser-modal .modal-icon {
    font-size: 20px;
}

.folder-browser-modal .modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: #1a1a2e;
}

/* Toolbar Improvements */
.folder-browser-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.browser-path {
    display: flex;
    align-items: center;
    gap: 8px;
}

.path-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

#browser-current-path {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #64b5f6;
    background: rgba(100,181,246,0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.browser-search input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 8px 14px;
    color: #fff;
    font-size: 13px;
    width: 200px;
    transition: all 0.2s;
}

.browser-search input:focus {
    background: rgba(255,255,255,0.12);
    border-color: #64b5f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(100,181,246,0.15);
}

.browser-search input::placeholder {
    color: #666;
}

/* Tree Container */
.folder-tree-container {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    min-height: 300px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 16px;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #64b5f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Selected Panel */
.selected-folders-panel {
    background: linear-gradient(135deg, rgba(0,150,136,0.1), rgba(0,150,136,0.05));
    border: 1px solid rgba(0,150,136,0.2);
    border-radius: 8px;
    padding: 14px 16px;
}

.selected-folders-panel h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #00bfa5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-icon {
    font-size: 16px;
}

/* Footer */
.folder-browser-modal .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 12px 12px;
}

.footer-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
}

.hint-icon {
    color: #64b5f6;
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

.folder-browser-modal .btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.folder-browser-modal .btn-primary {
    background: linear-gradient(135deg, #00897b, #00695c);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(0,137,123,0.3);
}

.folder-browser-modal .btn-primary:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,137,123,0.4);
}

.folder-browser-modal .btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
}

.folder-browser-modal .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Scrollbar styling */
.folder-tree-container::-webkit-scrollbar,
.selected-folders-list::-webkit-scrollbar {
    width: 8px;
}

.folder-tree-container::-webkit-scrollbar-track,
.selected-folders-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.folder-tree-container::-webkit-scrollbar-thumb,
.selected-folders-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.folder-tree-container::-webkit-scrollbar-thumb:hover,
.selected-folders-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
