/* Enterprise Backup Management System - Professional Styles */

:root {
    /* Color Palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Neutral Colors - Light Theme */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Layout */
    --sidebar-width: 260px;
    --top-nav-height: 60px;

    /* Theme Colors - Light Mode (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-gradient-start: #f0f9ff;
    --card-gradient-end: #ffffff;
    --sidebar-bg: #ffffff;
    --sidebar-text: #334155;
    --sidebar-active: #2563eb;
    --nav-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --code-bg: rgba(0,0,0,0.05);

    /* Shadows - Light Mode */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark Theme */
[data-theme="dark"] {
    /* Darker primary for better contrast */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;

    /* Neutral Colors - Dark Theme (inverted) */
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #f1f5f9;

    /* Theme Colors - Dark Mode */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-gradient-start: #1e293b;
    --card-gradient-end: #0f172a;
    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
    --sidebar-active: #3b82f6;
    --nav-bg: #1e293b;
    --input-bg: #0f172a;
    --input-border: #334155;
    --code-bg: rgba(255,255,255,0.05);

    /* Shadows - Dark Mode (softer, more subtle) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Accessibility - Focus States */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-nav-height);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-brand i {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-brand i:hover {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 24px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-size: 14px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

/* Dark mode icon animation */
[data-theme="dark"] .theme-toggle-btn i::before {
    content: "\f185"; /* sun icon */
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--top-nav-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 900;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-nav {
    padding: 16px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.nav-item.active {
    background: var(--sidebar-active);
    color: white;
}

.nav-item i {
    width: 20px;
    font-size: 16px;
}

/* Fix icon colors - make them white where appropriate */
.sidebar .nav-item i {
    color: var(--sidebar-text);
    transition: color 0.3s ease;
}

.sidebar .nav-item:hover i {
    color: var(--primary);
}

.sidebar .nav-item.active i {
    color: white;
}

/* Navigation Section Dividers */
.nav-section {
    margin-bottom: 24px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    padding: 8px 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Notification Badge */
.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

/* Ensure icons in buttons have proper color */
.btn-primary i,
.btn-primary .fas,
.btn-primary .fa {
    color: white;
}

/* Modal header icons */
.modal-header i {
    color: var(--gray-600);
}

/* Stats cards and other card icons */
.stats-card i {
    color: white;
}

/* Card header icons */
.card-header i {
    color: var(--primary);
}

.card-header h2 i {
    margin-right: 8px;
}

/* Activity item icons */
.activity-icon i {
    color: white;
}

/* Progress indicator icons */
.processing-indicator i {
    color: white;
}

/* Badge icons */
.badge i,
.badge .fas {
    color: white;
}

/* Icons in areas with colored backgrounds */
.bg-primary i,
.bg-primary .fas,
.bg-success i,
.bg-success .fas,
.bg-warning i,
.bg-warning .fas,
.bg-danger i,
.bg-danger .fas,
.bg-info i,
.bg-info .fas,
.bg-dark i,
.bg-dark .fas {
    color: white !important;
}

/* Report template card icons (header icons only) */
.report-template-icon i {
    color: var(--primary);
}

/* Ensure icons in colored metric backgrounds are white */
.metric-icon[style*="background"] i {
    color: white !important;
}

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

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: var(--card-bg);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

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

.toggle-label {
    margin-left: 12px;
    font-weight: 600;
    color: var(--gray-700);
}

/* Maintenance Mode Card */
.maintenance-card {
    border: 1px solid #fbbf24;
    background: var(--card-bg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.maintenance-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.maintenance-card .card-header {
    background: var(--card-bg);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.maintenance-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.maintenance-info {
    flex: 1;
}

.maintenance-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.maintenance-description {
    color: var(--gray-600);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.maintenance-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--warning);
    font-size: 1rem;
}

.maintenance-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.maintenance-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* System Health Card */
.system-health-card {
    margin-top: 1.5rem;
}

.health-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.health-metric {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.health-metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.health-metric .metric-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.health-metric .metric-label i {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.health-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.health-metric .metric-value.success {
    color: var(--success);
}

.health-metric .metric-value.warning {
    color: var(--warning);
}

.health-metric .metric-value.danger {
    color: var(--danger);
}

.health-metric .metric-detail {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.health-metric-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray-500);
}

.health-metric-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Button small size */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Enhanced Dashboard Sections */

/* Live Activity Monitor */
.activity-card .card-header h2 i,
.recent-backups-card .card-header h2 i,
.storage-card .card-header h2 i,
.performance-card .card-header h2 i,
.quick-actions-card .card-header h2 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.live-indicator.enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    border: 1px solid var(--success);
}

.live-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    letter-spacing: 0.5px;
}

.activity-monitor.enhanced {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monitor-idle {
    text-align: center;
    padding: 2rem;
}

.idle-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.idle-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.monitor-idle h3 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.monitor-idle p {
    color: var(--gray-600);
    margin: 0 0 1rem 0;
}

.last-backup-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.last-backup-info i {
    color: var(--primary);
}

/* Enhanced Progress Container */
.progress-container.enhanced {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-title i {
    color: var(--primary);
}

.progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    height: 10px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff 0%, #357abd 100%);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(74, 158, 255, 0.3);
}

.progress-fill.animated {
    background: linear-gradient(90deg, #4a9eff 0%, #357abd 50%, #0ea5e9 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item i {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Redesigned Backup Progress Widget */
.backup-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.backup-progress-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.backup-progress-title i {
    color: var(--primary);
    font-size: 1rem;
}

.backup-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.backup-progress-percent {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.backup-current-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 6px;
    margin-bottom: 1rem;
    min-height: 38px;
}

.backup-current-file i {
    color: var(--primary);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.file-path {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.backup-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.backup-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(243, 244, 246, 0.5);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.backup-stat-item:hover {
    background: rgba(243, 244, 246, 0.8);
    transform: translateY(-2px);
}

.backup-stat-item .stat-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.backup-stat-item .stat-content {
    text-align: center;
}

.backup-stat-item .stat-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.backup-stat-item .stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Responsive adjustments for backup widget */
@media (max-width: 1200px) {
    .backup-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .backup-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .backup-progress-percent {
        font-size: 1.5rem;
    }
}

/* Recent Backups Enhancement */
.backup-list.enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.backup-placeholder {
    padding: 1rem;
}

.placeholder-animation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.placeholder-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--gray-200) 35%, var(--gray-300) 50%, var(--gray-200) 65%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 6px;
}

.placeholder-bar.short {
    width: 60%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Storage Card Enhancements */
.storage-details.enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.storage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.storage-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storage-icon.used {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.storage-icon.free {
    background: linear-gradient(135deg, #10b981, #059669);
}

.storage-icon.dedup {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.storage-icon i {
    color: white;
    font-size: 1.25rem;
}

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

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

.storage-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.storage-health {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-size: 0.875rem;
}

/* Performance Card Enhancements */
.time-selector {
    display: flex;
    gap: 0.25rem;
    padding: 2px;
    background: var(--gray-100);
    border-radius: 6px;
}

.time-btn {
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.time-btn:hover {
    color: var(--gray-900);
}

.time-btn.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.performance-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Quick Actions Enhancement */
.quick-actions-card .card-body {
    padding: 1.5rem;
}

.quick-actions.enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.action-card.full .action-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.action-card.incremental .action-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.action-card.differential .action-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.action-card.system .action-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.action-content {
    flex: 1;
}

.action-title {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.action-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.action-arrow {
    color: var(--gray-400);
    transition: transform 0.3s;
}

.action-card:hover .action-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

.actions-tip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.actions-tip i {
    color: var(--info);
}

/* Responsive adjustments for maintenance and health sections */
@media (max-width: 768px) {
    .maintenance-content {
        flex-direction: column;
        gap: 1rem;
    }

    .maintenance-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    .maintenance-toggle {
        flex-direction: row;
        align-self: flex-start;
        margin-top: 1rem;
    }

    .health-metrics-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions.enhanced {
        grid-template-columns: 1fr;
    }

    .storage-details.enhanced {
        grid-template-columns: 1fr;
    }

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

/* Enhanced Monitoring Page */
.monitoring-metrics .metric-card {
    position: relative;
    overflow: hidden;
}

.metric-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Dark theme: make metric backgrounds even more subtle */
[data-theme="dark"] .metric-background {
    opacity: 0.02;
}

.cpu-bg {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.memory-bg {
    background: linear-gradient(135deg, #10b981, #059669);
}

.disk-bg {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.network-bg {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-sparkline {
    margin-top: 0.5rem;
    height: 20px;
    background: linear-gradient(to right, transparent 0%, var(--primary) 100%);
    opacity: 0.2;
    border-radius: 4px;
}

.time-range-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.time-range-selector i {
    color: var(--text-secondary);
}

.time-range-selector .select-enhanced {
    border: none;
    background: transparent;
    font-weight: 500;
    color: var(--text-primary) !important;
    padding-right: 1rem;
}

.select-enhanced {
    border: none;
    background: transparent;
    font-weight: 500;
    color: var(--text-primary);
    padding-right: 1rem;
}

.select-enhanced option {
    background: var(--card-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .select-enhanced,
[data-theme="dark"] .time-range-selector .select-enhanced {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .select-enhanced option {
    background: var(--input-bg);
    color: var(--text-primary);
}

/* Performance Timeline Card */
.chart-controls {
    display: flex;
    gap: 0.25rem;
    padding: 2px;
    background: var(--gray-100);
    border-radius: 6px;
}

.chart-btn {
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.chart-btn:hover {
    color: var(--gray-900);
}

.chart-btn.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Enhanced Health Indicators */
.health-indicators.enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.health-icon-wrapper {
    position: relative;
    display: inline-block;
}

.health-icon.animated {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.health-icon.ok {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.health-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.health-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.health-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: inherit;
    opacity: 0.3;
    animation: healthPulse 2s infinite;
}

@keyframes healthPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

.health-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.health-item:hover {
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.health-details {
    flex: 1;
}

.health-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.health-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.health-status.success {
    color: var(--success);
}

.health-status.warning {
    color: var(--warning);
}

.health-status.danger {
    color: var(--danger);
}

.health-status i {
    font-size: 0.5rem;
}

.health-metric {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.health-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Alerts Card */
.alerts-card .no-alerts {
    text-align: center;
    padding: 2rem;
}

.no-alerts i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.no-alerts p {
    margin: 0;
    font-weight: 500;
    color: var(--gray-700);
}

.no-alerts small {
    color: var(--gray-500);
}

/* Processes Card */
.process-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    transition: all 0.2s;
}

.process-item:hover {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.process-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-info {
    flex: 1;
}

.process-name {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
}

.process-status {
    display: block;
    font-size: 0.75rem;
    color: var(--success);
}

.process-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.cpu-usage, .mem-usage {
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: 4px;
    color: var(--gray-700);
}

/* Alert Count Badge */
.alert-count .badge {
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--top-nav-height);
    padding: 24px;
    min-height: calc(100vh - var(--top-nav-height));
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.page-header h1 i {
    color: var(--primary) !important;
    margin-right: 12px;
}

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

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2563a8 100%);
    box-shadow: 0 6px 16px rgba(74, 158, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-tertiary);
    box-shadow: var(--shadow-md);
}

/* Dark mode: Make btn-secondary lighter for better visibility */
[data-theme="dark"] .btn-secondary {
    background: #64748b;
    border-color: #94a3b8;
    color: #f1f5f9;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #94a3b8;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

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

[data-theme="dark"] .btn-outline {
    border-color: #475569;
    color: #f1f5f9;
}

[data-theme="dark"] .btn-outline:hover {
    background: #334155;
    border-color: #4a9eff;
}

/* Refresh button unique styling */
.btn-refresh {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

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

[data-theme="dark"] .btn-refresh {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .btn-refresh:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}













.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 4px 8px;
    border: none;
}

.btn-text:hover {
    background: var(--gray-50);
}

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

/* Disabled button state */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(30%);
}

.btn:disabled:hover,
.btn[disabled]:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Metrics Cards */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

/* Force all icons inside metric-icon to inherit parent color or be white */
.metric-icon i {
    color: inherit !important;
}

.metric-icon.blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.metric-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}
.metric-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.metric-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Ensure all metric icons with colored backgrounds have white icons */
.metric-icon.blue i,
.metric-icon.green i,
.metric-icon.purple i,
.metric-icon.orange i {
    color: white !important;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.metric-change {
    font-size: 12px;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.metric-change.positive {
    color: var(--success);
}

.metric-change.negative {
    color: var(--danger);
}

/* Cards */
.card {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 20px;
    background: linear-gradient(to bottom, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color 0.3s ease;
}

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

.card-body {
    padding: 24px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Chart containers */
#storage-chart {
    max-height: 300px !important;
}

#performance-chart {
    max-height: 200px !important;
}

#performance-timeline {
    max-height: 250px !important;
}

.dashboard-grid .card-body {
    padding: 20px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Path Selector Styles */
.selected-paths {
    background: var(--bg-tertiary);
    border-radius: 4px;
    padding: 10px;
}

.path-item {
    background: var(--card-bg);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tree-item {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.tree-path {
    font-weight: bold;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 10px;
}

.paths-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Activity Monitor */
.activity-monitor {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monitor-idle {
    text-align: center;
    color: var(--gray-400);
}

.monitor-idle i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 12px;
}

.monitor-idle p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.monitor-idle span {
    font-size: 14px;
}

/* Progress Bar */
.progress-container {
    padding: 16px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--info));
    width: 0%;
    transition: width 0.3s;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.progress-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

.progress-stats i {
    margin-right: 4px;
    color: var(--gray-400);
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--danger);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Backup List */
.backup-list {
    max-height: 400px;
    overflow-y: auto;
}

.backup-item {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.backup-item:hover {
    background: var(--gray-50);
}

.backup-info {
    flex: 1;
}

.backup-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.backup-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-500);
}

.backup-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.backup-status.success {
    background: var(--success);
    color: white;
}

.backup-status.pending {
    background: var(--warning);
    color: white;
}

.backup-status.failed {
    background: var(--danger);
    color: white;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
}

.data-table td {
    padding: 12px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

/* Action Bar */
.action-bar {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--gray-400);
}

.search-box input {
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Filter Select */
.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    cursor: pointer;
}

/* Wizard */
.wizard-container {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.wizard-steps {
    display: flex;
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.wizard-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

/* Connector lines between steps - removed for cleaner look */
.wizard-step::after {
    display: none;
}

.wizard-step.active .step-number {
    background: var(--primary);
    color: white;
}

.wizard-step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    position: relative;
    z-index: 1;
}

.step-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

.wizard-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.wizard-content {
    padding: 40px;
    min-height: 400px;
}

.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
}

.wizard-pane h2 {
    margin-bottom: 24px;
    color: var(--gray-900);
}

.wizard-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
}

/* Storage Details */
.storage-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.storage-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.storage-label {
    color: var(--gray-600);
}

.storage-value {
    font-weight: 600;
    color: var(--gray-900);
}

/* Health Indicators */
.health-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.health-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.health-icon.ok {
    background: var(--success);
}

.health-icon.warning {
    background: var(--warning);
}

.health-icon.error {
    background: var(--danger);
}

.health-details {
    flex: 1;
}

.health-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.health-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

/* Log Viewer */
.log-viewer {
    background: var(--gray-900);
    color: #10b981;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}

.log-entry {
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.log-time {
    color: var(--gray-500);
    min-width: 140px;
}

.log-level {
    min-width: 60px;
    font-weight: 600;
}

.log-level.info { color: var(--info); }
.log-level.warning { color: var(--warning); }
.log-level.error { color: var(--danger); }
.log-level.success { color: var(--success); }

.log-message {
    flex: 1;
    color: var(--gray-300);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
}

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

.modal-header h2 {
    font-size: 20px;
    color: var(--gray-900);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s;
}

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

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
}

.toast.success .toast-icon { background: var(--success); }
.toast.error .toast-icon { background: var(--danger); }
.toast.warning .toast-icon { background: var(--warning); }
.toast.info .toast-icon { background: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--gray-600);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

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

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

    .metrics-row {
        grid-template-columns: 1fr;
    }
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

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

.action-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.action-card span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.action-card small {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Schedule Cards */
.schedule-card,
#schedules-list .schedule-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.schedule-status.active {
    background: #10b98120;
    color: var(--success);
}

.schedule-status.inactive {
    background: #f59e0b20;
    color: var(--warning);
}

.schedule-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.schedule-actions {
    display: flex;
    gap: 0.5rem;
}

/* Activity Stream */
.activity-stream {
    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-600);
}

.activity-content {
    flex: 1;
}

.activity-message {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Report Templates */
.report-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.report-template-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.report-template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.report-template-card:hover::before {
    transform: scaleX(1);
}

.report-template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-tertiary);
}

.report-template-icon {
    padding: 2rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
}

.report-template-icon i {
    font-size: 3rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.report-template-card:hover .report-template-icon i {
    animation: none;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.report-template-content {
    padding: 0 1.5rem 1rem;
    text-align: center;
    flex: 1;
}

.report-template-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--gray-900);
}

.report-template-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
    min-height: 2.6rem;
}

.report-template-card button {
    margin: 0 auto 1.5rem;
    display: inline-flex;
    width: auto;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='number'],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: var(--card-bg);
    font-size: 0.9375rem;
}

.form-group textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

/* Small Metric Cards */
.metric-card.small {
    padding: 1rem;
}

.metric-card.small .metric-value {
    font-size: 1.5rem;
}

.metric-card.small .metric-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

/* Ensure small metric icons also have white color */
.metric-card.small .metric-icon i {
    color: white !important;
}

/* Override inline styles for metric icons with specific colors */
.metric-icon[style*="color: #2196F3"] {
    background: #2196F3 !important;
}

.metric-icon[style*="color: #4CAF50"] {
    background: #4CAF50 !important;
}

.metric-icon[style*="color: #9C27B0"] {
    background: #9C27B0 !important;
}

.metric-icon[style*="color: #FF9800"] {
    background: #FF9800 !important;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state .empty-state-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    margin-top: 1rem;
}

.no-data {
    text-align: center;
    color: var(--gray-500);
    padding: 2rem;
}

/* Backup Cards */
#backups-list .backup-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.backup-header h3 {
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    margin: 0;
}

.backup-status.success {
    background: #10b98120;
    color: var(--success);
}

.backup-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.backup-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Restore Backup Card Grid */
.restore-backup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.restore-backup-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.restore-backup-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.restore-backup-card.selected {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.restore-backup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--gray-200);
}

.restore-backup-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.restore-backup-header input[type="radio"] {
    margin-right: 0.75rem;
}

.restore-backup-body {
    padding: 1.25rem;
}

.backup-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

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

.backup-detail-row i {
    color: var(--primary);
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.backup-detail-row strong {
    min-width: 80px;
    color: var(--gray-600);
    font-weight: 500;
}

.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.backup-paths-preview {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 6px;
    font-size: 0.8125rem;
}

.backup-paths-preview strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.backup-paths-preview ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--gray-600);
}

.backup-paths-preview li {
    padding: 0.25rem 0;
}

.restore-backup-actions,
.restore-backup-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.restore-backup-actions .btn,
.restore-backup-footer .btn {
    flex: 1;
    min-width: 120px;
}

.backup-paths-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.backup-paths-preview strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

/* Schedule extras badges */
.schedule-extras {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(74, 158, 255, 0.25);
    letter-spacing: 0.3px;
}

/* Settings form improvements */
.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray-500);
    font-size: 0.8125rem;
}

.form-group textarea[readonly],
.form-group input[readonly] {
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: not-allowed;
}

.form-group input[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Destination Cards */
.destination-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.destination-card.default {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.dest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.dest-info {
    flex: 1;
}

.dest-info h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dest-info h3 i {
    color: var(--primary);
    font-size: 1rem;
}

.dest-type {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.dest-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 6px;
}

.dest-actions {
    display: flex;
    gap: 0.5rem;
}

.badge.primary {
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(74, 158, 255, 0.25);
}

.badge.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.badge.warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.25);
}

.badge.info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.25);
}

/* Destination Selector for Restore */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.destination-select-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.875rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.destination-select-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.destination-select-card.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dest-select-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    color: var(--primary);
    flex-shrink: 0;
}

.dest-select-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.dest-select-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    color: var(--gray-900);
}

.dest-select-info .dest-type {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.dest-select-info .dest-path {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-family: monospace;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dest-select-info .dest-backup-info {
    font-size: 0.8125rem;
    color: var(--success);
}

.destination-select-card .badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Updated backup selector */
.backup-selector-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.backup-selector-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.backup-selector-item input[type="radio"]:checked + label {
    color: var(--primary);
}

.backup-selector-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.backup-selector-info strong {
    font-family: monospace;
    font-size: 1rem;
    color: var(--gray-900);
}

.backup-selector-info span {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.backup-selector-info span i {
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* Processing Overlay */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.processing-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.processing-content i {
    color: #4CAF50;
    margin-bottom: 20px;
}

.processing-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.processing-content p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Status Bar in Top Nav */
.nav-status .processing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 20px;
    margin-right: 15px;
}

.nav-status .processing-indicator i {
    color: #4CAF50;
}

/* Restore Options Professional Styling */
.restore-options-container {
    padding: 20px;
}

.option-section {
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    background: var(--gray-50);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
}

.section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.section-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.option-content {
    padding: 20px;
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: var(--card-bg);
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #4a9eff;
}

.radio-option input[type="radio"] {
    margin-right: 15px;
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #4a9eff;
}

.radio-label {
    display: flex;
    flex-direction: column;
}

.radio-label strong {
    font-size: 1rem;
    margin-bottom: 4px;
}

.radio-label small {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.alternate-location-input {
    margin-top: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.input-group i {
    color: #4a9eff;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px;
    font-size: 0.95rem;
    cursor: text;
}

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

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

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
    background: var(--input-bg);
}

.input-group .btn-secondary {
    padding: 8px 15px;
}

.help-text {
    display: block;
    margin-top: 8px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.form-control:hover {
    border-color: var(--text-tertiary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1), var(--shadow-sm);
    transform: translateY(-1px);
}

.form-control:disabled,
.form-control[readonly] {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

/* Input, Select and Option Styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 2px solid var(--input-border);
    padding: 10px 12px;
    border-radius: 6px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

select {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 2px solid var(--input-border);
    padding: 10px 12px;
    border-radius: 6px;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 8px;
}

/* Dark mode specific fixes for select dropdowns */
[data-theme="dark"] select {
    background: var(--input-bg);
    color: var(--text-primary);
}

[data-theme="dark"] option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Table Styling for Reports */
[data-theme="dark"] table {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border-collapse: collapse;
}

[data-theme="dark"] table th {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #334155 !important;
    font-weight: 600;
}

[data-theme="dark"] table td {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    padding: 10px 12px;
    border-bottom: 1px solid #334155 !important;
}

[data-theme="dark"] table tr:hover td {
    background: #334155 !important;
}

[data-theme="dark"] table thead tr {
    background: #0f172a !important;
}

[data-theme="dark"] table tbody tr:nth-child(even) td {
    background: #334155 !important;
}

[data-theme="dark"] .report-section {
    background: #1e293b !important;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

[data-theme="dark"] .report-section h4 {
    color: #f1f5f9 !important;
    margin-top: 0;
    margin-bottom: 15px;
}

[data-theme="dark"] .report-content {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .report-content h3,
[data-theme="dark"] .report-content h4,
[data-theme="dark"] .report-content h5 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .report-content p {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .report-content ul,
[data-theme="dark"] .report-content ol {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .report-content li {
    color: #f1f5f9 !important;
    margin-bottom: 8px;
}

[data-theme="dark"] .report-header {
    background: transparent !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .report-header h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .report-header p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .report-content strong,
[data-theme="dark"] .report-content b {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .report-content td strong {
    color: #f1f5f9 !important;
}

/* Ensure modal body has dark background */
[data-theme="dark"] .modal-body {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .modal-header {
    background: #0f172a !important;
}

[data-theme="dark"] .modal-footer {
    background: #0f172a !important;
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
    background: var(--card-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-wrap: wrap;
}

.checkbox-option:hover {
    background: var(--bg-tertiary);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-option > span {
    flex: 1;
    display: block;
}

.checkbox-option .help-text {
    display: block;
    width: 100%;
    margin-left: 32px;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* ========================================
   Environment Rebuild Professional Design
   ======================================== */

.env-rebuild-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-badge {
    margin-left: auto;
    padding: 4px 12px;
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.env-rebuild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.env-rebuild-card {
    background: var(--card-bg);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.env-rebuild-card:hover {
    border-color: #4a9eff;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
}

.env-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--card-bg) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.env-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.env-card-icon.python {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
    color: white;
}

.env-card-icon.nodejs {
    background: linear-gradient(135deg, #43853d 0%, #68a063 100%);
    color: white;
}

.env-card-title {
    flex: 1;
}

.env-card-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.env-card-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 2px;
    font-family: monospace;
}

.env-card-body {
    padding: 16px;
}

.env-card-body p {
    margin: 0 0 12px 0;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.env-card-body code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #e91e63;
    font-weight: 500;
}

.env-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.env-card-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.env-card-details i {
    color: #4caf50;
    font-size: 0.9rem;
}

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

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: 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-color: #4a9eff;
}

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

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

/* Modern Info Box */
.info-box-modern {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 152, 0, 0.08) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    margin-top: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: #ffa000;
    font-size: 20px;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: var(--gray-900);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.info-content p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Dark Mode Support */
[data-theme="dark"] .env-rebuild-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .env-rebuild-card:hover {
    border-color: #4a9eff;
}

[data-theme="dark"] .env-card-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom-color: #334155;
}

[data-theme="dark"] .env-card-body code {
    background: #0f172a;
}

[data-theme="dark"] .info-box-modern {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-color: rgba(255, 193, 7, 0.4);
}

/* Review & Execute Professional Styling */
.review-container {
    padding: 20px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    color: #4a9eff;
    font-size: 1.5rem;
}

.card-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content p {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.card-content small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.selected-items-section {
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.selected-items-section .section-header {
    background: var(--gray-50);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.selected-items-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.selected-item {
    padding: 10px 15px;
    background: var(--card-bg);
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-item i {
    color: #4a9eff;
}

.options-summary {
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.options-summary h3 {
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.option-item {
    display: flex;
    flex-direction: column;
}

.option-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.option-value {
    font-weight: 500;
}

.confirmation-section {
    margin-bottom: 20px;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
}

.warning-box > i {
    color: #ffc107;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box h4 {
    margin: 0 0 8px 0;
    color: #856404;
}

.warning-box p {
    margin: 0 0 15px 0;
    color: #856404;
}

.confirmation-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.confirmation-checkbox span {
    color: #856404;
}

.confirmation-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.restore-progress {
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.progress-bar {
    flex: 1;
    height: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #0066cc);
    transition: width 0.3s ease;
}

.progress-text {
    min-width: 50px;
    font-weight: 600;
}

.progress-details {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
}

.log-viewer {
    background: #0a0a0a;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    max-height: 200px;
    overflow-y: auto;
}

/* Collapsed section styling */
.option-section.collapsed .section-header i:first-child {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.option-section:not(.collapsed) .section-header i:first-child {
    transform: rotate(90deg);
}

/* File Browser Modal Styles */
.file-browser-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.browser-path {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--card-bg);
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.browser-path i {
    color: #4a9eff;
}

.browser-content {
    flex: 1;
    overflow-y: auto;
    background: var(--card-bg);
    padding: 10px;
}

.browser-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 4px;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.browser-item:hover {
    background: #252525;
    border-color: #ddd;
    transform: translateX(5px);
}

.browser-item.selected {
    background: #1e3a5f;
    border-color: #4a9eff;
}

.browser-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.browser-item.folder i {
    color: #4a9eff;
}

.browser-item.file i {
    color: var(--text-tertiary);
}

.browser-item-name {
    flex: 1;
    font-size: 0.95rem;
}

.browser-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.browser-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
}

.browser-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.selected-path-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin-right: 20px;
}

.selected-path-display label {
    font-weight: 500;
    color: var(--text-primary);
}

.selected-path-display input {
    flex: 1;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

/* Loading state for browser */
.browser-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #4a9eff;
}

.browser-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

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

/* Breadcrumb navigation */
.browser-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: var(--card-bg);
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #4a9eff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

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

.breadcrumb-separator {
    color: #666;
}

/* File Browser Modal Additional Styles */
.file-browser-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.file-browser-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--card-bg);
    border-bottom: 1px solid #444;
}

.file-browser-path {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 12px;
}

.file-browser-path span {
    margin-left: 8px;
    font-family: monospace;
    color: #00ffff;
}

.file-browser-body {
    flex: 1;
    overflow-y: auto;
    background: var(--card-bg);
    padding: 8px;
}

.file-browser-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
    background: var(--card-bg);
    border-top: 1px solid #444;
}

.browser-error {
    text-align: center;
    color: #ff4444;
    padding: 20px;
}

.browser-error i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #00ffff;
    font-size: 14px;
}

.loading-spinner::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Restore Progress Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Restore Type Cards */
.restore-type-selection {
    margin: 20px 0;
}

.restore-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.restore-type-card {
    display: block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.restore-type-card .card-content {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.restore-type-card:hover .card-content {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.restore-type-card input[type="radio"]:checked + .card-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.restore-type-card .card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.restore-type-card .card-icon i {
    font-size: 24px;
    color: white;
}

.restore-type-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.restore-type-card p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.restore-type-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.restore-type-card .feature-list li {
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.restore-type-card .feature-list li i {
    color: var(--success);
    font-size: 12px;
    flex-shrink: 0;
}

/* Full Restore Warning Styles */
#full-restore-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid var(--warning);
    border-radius: 12px;
    padding: 20px;
}

#full-restore-warning .form-group {
    margin-top: 20px;
}

#full-restore-warning input[type="text"] {
    max-width: 300px;
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

#full-restore-warning .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#full-restore-warning .checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* File Selection Area */
#file-selection-area {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

#file-selection-area h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 15px;
}

/* Selected Files Display */
.selected-files-container {
    border-top: 2px solid var(--gray-200);
    padding-top: 20px;
}

.selected-files-box {
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

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

.selected-files-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.selected-group {
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.selected-parent {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--card-bg);
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.selected-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}

.selected-item i.fa-check-circle {
    color: var(--success);
    flex-shrink: 0;
}

.selected-path {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--gray-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
}

.text-success {
    color: var(--success);
}


/* Profile section styling */
#profile-section {
    padding: 20px;
}

#profile-section .card {
    max-width: 800px;
    margin: 0 auto;

    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text-primary);
}

/* Profile section styles */
#profile-section {
    padding: 20px;
}

.profile-info {
    padding: 20px;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-label {
    font-weight: 600;
    width: 150px;
    color: #666;
}

.info-value {
    color: var(--text-primary);
}


/* ==================== DEPENDENCIES PAGE ==================== */

.dependency-status {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-item label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.status-item span {
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 600;
}

.update-section {
    margin-bottom: 2rem;
}

.update-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.update-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.update-item:hover {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.update-item .pkg-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--gray-900);
    flex: 1;
}

.update-item .version-change {
    font-family: 'Courier New', monospace;
    color: var(--gray-600);
    margin: 0 1rem;
}

.update-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.badge-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.25);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}

.badge-secondary {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.25);
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-time {
    font-size: 0.875rem;
    color: var(--gray-600);
    min-width: 200px;
}

.history-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

#dep-history-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Update item button styling */
.update-item {
    flex-wrap: wrap;
}

.update-item button {
    margin-left: auto;
}

.update-item .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.update-section > .btn {
    display: inline-block;
}

/* ===================================================================
   DASHBOARD REPORTING WIDGETS
   =================================================================== */

/* Dashboard Reporting Grid Layout */
.dashboard-reporting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-actions-timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Health Score Widget */
.health-score-card .card-body {
    padding: 30px;
}

.health-score-display {
    display: flex;
    align-items: center;
    gap: 30px;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--card-bg);
}

.score-value, .score-grade {
    position: relative;
    z-index: 1;
}

.score-value {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-grade {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-500);
    margin-top: 4px;
}

.score-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.score-label {
    font-size: 14px;
    color: var(--gray-600);
}

.score-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.score-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.score-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.score-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.score-count {
    font-weight: 700;
    font-size: 18px;
}

.score-count.critical {
    color: #ef4444;
}

.score-count.warning {
    color: #f59e0b;
}

/* Risk Summary Widget - Clean Compact Design */
.risk-stats-compact {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0;
}

.risk-stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0.5rem 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-width: 0;
}

.risk-stat-compact.critical {
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.risk-stat-compact.warning {
    background: rgba(245, 158, 11, 0.08);
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.risk-stat-compact.info {
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.risk-stat-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.risk-stat-count {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.risk-stat-compact.critical .risk-stat-count {
    color: #ef4444;
}

.risk-stat-compact.warning .risk-stat-count {
    color: #f59e0b;
}

.risk-stat-compact.info .risk-stat-count {
    color: #3b82f6;
}

.risk-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.overall-risk-status {
    text-align: center;
}

.risk-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

.risk-status-badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.risk-status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.risk-status-badge.critical {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.risk-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

.overall-risk {
    text-align: center;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 10px;
}

.risk-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.risk-badge.low {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.risk-badge.medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.risk-badge.high {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Storage Forecast Widget */
.forecast-display {
    padding: 10px;
}

.forecast-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
}

.forecast-icon {
    font-size: 48px;
    color: #667eea;
}

.forecast-value {
    text-align: center;
}

.forecast-days {
    font-size: 42px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.forecast-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 8px;
}

.forecast-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--gray-50);
    border-radius: 8px;
}

.forecast-text {
    font-weight: 600;
    color: var(--gray-900);
}

/* Action Items Widget */
.action-count-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.action-items-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-actions {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.no-actions i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 12px;
}

.action-item {
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 4px solid;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-item.critical {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.action-item.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.action-item.info {
    border-left-color: #3b82f6;
    background: var(--bg-tertiary);
}

.action-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.action-item-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.action-item-badge.critical {
    background: #ef4444;
    color: white;
}

.action-item-badge.warning {
    background: #f59e0b;
    color: white;
}

.action-item-badge.info {
    background: #3b82f6;
    color: white;
}

.action-item-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
}

.action-item-message {
    color: var(--gray-700);
    font-size: 14px;
    margin-bottom: 8px;
}

.action-item-recommendation {
    color: var(--gray-600);
    font-size: 13px;
    font-style: italic;
}

.action-item-recommendation::before {
    content: '💡 ';
}

/* Backup Timeline Widget */
.backup-timeline {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.timeline-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--gray-200);
    position: relative;
    border-radius: 0 8px 8px 0;
    transition: all 0.2s;
}

.timeline-item:hover {
    background: var(--gray-50);
    border-left-color: #667eea;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7.5px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    border: 2px solid white;
}

.timeline-time {
    font-size: 12px;
    color: var(--gray-500);
    min-width: 140px;
}

.timeline-details {
    flex: 1;
    font-size: 13px;
}

.timeline-id {
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
    margin-right: 8px;
}

.timeline-host {
    color: var(--gray-700);
    margin: 0 8px;
}

.timeline-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin: 0 8px;
}

.timeline-type.full {
    background: var(--bg-tertiary);
    color: #1e40af;
}

[data-theme="dark"] .timeline-type.full {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.timeline-type.incremental {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.timeline-size {
    color: var(--gray-600);
    font-weight: 600;
    margin-left: 8px;
}

/* Responsive Design for Dashboard Widgets */
@media (max-width: 1024px) {
    .dashboard-actions-timeline-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-reporting-grid {
        grid-template-columns: 1fr;
    }

    .health-score-display {
        flex-direction: column;
    }

    .risk-stats-compact {
        flex-direction: row;
        gap: 0.35rem;
    }

    .risk-stat-compact {
        padding: 0.5rem 0.25rem;
    }

    .risk-stat-count {
        font-size: 1.1rem;
    }

    .risk-stat-label {
        font-size: 0.65rem;
    }

    .risk-status-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-value {
        font-size: 36px;
    }

    .forecast-days {
        font-size: 32px;
    }
}

/* ===============================================
   MAINTENANCE PAGE STYLES
   =============================================== */

/* Maintenance Metrics */
.maintenance-metric {
    text-align: center;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.maintenance-metric .metric-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray-600);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.maintenance-metric .metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 8px 0;
}

.maintenance-metric .metric-grade {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Maintenance Operations */
.maintenance-operation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.maintenance-operation:hover {
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
}

.maintenance-operation:last-child {
    margin-bottom: 0;
}

.operation-info {
    flex: 1;
}

.operation-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.operation-info h3 i {
    color: var(--primary);
    font-size: 18px;
}

.operation-info p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 10px;
    line-height: 1.5;
}

.operation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--gray-700);
}

.operation-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.operation-stats strong {
    font-weight: 600;
    color: var(--gray-900);
}

.maintenance-operation .btn {
    flex-shrink: 0;
    min-width: 140px;
}

/* Maintenance Action Items */
#maintenance-action-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maintenance-action-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    border-left: 4px solid var(--warning);
}

.maintenance-action-item.critical {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.maintenance-action-item.warning {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.maintenance-action-item.info {
    border-left-color: var(--info);
    background: rgba(59, 130, 246, 0.05);
}

.action-item-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-item-badge.critical {
    background: var(--danger);
    color: white;
}

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

.action-item-badge.info {
    background: var(--info);
    color: white;
}

.action-item-content {
    flex: 1;
}

.action-item-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.action-item-message {
    font-size: 14px;
    color: var(--gray-900);
    font-weight: 500;
    margin-bottom: 6px;
}

.action-item-recommendation {
    font-size: 13px;
    color: var(--gray-600);
    font-style: italic;
}

.action-item-link {
    flex-shrink: 0;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-item-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Maintenance History */
#maintenance-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.maintenance-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--success);
    transition: all 0.3s ease;
}

.maintenance-history-item.failed {
    border-left-color: var(--danger);
}

.history-item-info {
    flex: 1;
}

.history-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.history-item-details {
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    gap: 15px;
}

.history-item-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .maintenance-operation {
        flex-direction: column;
        align-items: flex-start;
    }

    .maintenance-operation .btn {
        width: 100%;
    }

    .operation-stats {
        flex-direction: column;
        gap: 8px;
    }

    .maintenance-action-item {
        flex-direction: column;
    }

    .action-item-link {
        width: 100%;
        text-align: center;
    }
}

/* Backup Card Compact (for child backups) */
.backup-card-compact {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.backup-card-compact:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

/* Card Actions for Enhancement Buttons */
.card-header .card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.card-header .card-actions .btn {
    padding: 6px 12px;
    font-size: 0.9em;
}
