/**
 * WP Maintenance Hub - Main Stylesheet
 *
 * A modern, clean design system for the maintenance portal.
 * Built with utility-first approach inspired by Tailwind CSS.
 */

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */
:root {
    /* Colors - Primary */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Colors - Gray */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Colors - Semantic */
    --success-50: #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;

    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    --error-50: #fef2f2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    --error-700: #b91c1c;

    --info-50: #eff6ff;
    --info-500: #3b82f6;
    --info-600: #2563eb;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, Consolas, monospace;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-Index */
    --z-dropdown: 50;
    --z-sticky: 100;
    --z-modal: 200;
    --z-tooltip: 300;
}

/* =============================================================================
   RESET & BASE STYLES
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-50);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > main {
    flex: 1;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    color: var(--primary-600);
    text-decoration: none;
}

a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-900);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }

/* =============================================================================
   LAYOUT
   ============================================================================= */
.min-h-screen { min-height: 100vh; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--spacing-2); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spacing-3) var(--spacing-6);
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-900);
    text-decoration: none;
}

.navbar-logo:hover {
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.navbar-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.navbar-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    text-decoration: none;
}

.navbar-item.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.navbar-user {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* =============================================================================
   MAIN CONTENT
   ============================================================================= */
.main-content {
    padding: var(--spacing-8) var(--spacing-6);
    max-width: 1600px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: var(--spacing-8);
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-2);
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
}

/* =============================================================================
   CARDS
   ============================================================================= */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.card-header {
    padding: var(--spacing-5) var(--spacing-6);
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.card-body {
    padding: var(--spacing-6);
}

.card-footer {
    padding: var(--spacing-4) var(--spacing-6);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2) var(--spacing-4);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-sm {
    padding: var(--spacing-1) var(--spacing-3);
    font-size: 0.8125rem;
}

.btn-lg {
    padding: var(--spacing-3) var(--spacing-6);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-700);
    color: white;
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-700);
    color: white;
}

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

.btn-success:hover {
    background: var(--success-700);
    color: white;
}

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

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

.btn-outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn svg {
    flex-shrink: 0;
}

.mr-2 { margin-right: var(--spacing-2); }
.ml-2 { margin-left: var(--spacing-2); }

/* =============================================================================
   FORMS
   ============================================================================= */
.form-group {
    margin-bottom: var(--spacing-5);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-2);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--gray-900);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input.is-invalid {
    border-color: var(--error-500);
}

.form-help {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: var(--spacing-1);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--error-600);
    margin-top: var(--spacing-1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-600);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle 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: var(--transition-fast);
    border-radius: var(--radius-full);
}

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

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

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

/* =============================================================================
   ALERTS
   ============================================================================= */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-4);
}

.alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-success {
    background: var(--success-50);
    color: var(--success-700);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
    background: var(--error-50);
    color: var(--error-700);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: var(--warning-50);
    color: var(--warning-600);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: var(--info-50);
    color: var(--info-600);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* =============================================================================
   TABLES
   ============================================================================= */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: var(--spacing-3) var(--spacing-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

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

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

/* Plugins Cell */
.plugins-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plugins-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--gray-700);
}

.plugins-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.plugins-label {
    font-size: 0.8125rem;
    color: var(--gray-700);
    font-weight: 500;
    white-space: nowrap;
}

.plugins-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.plugins-pending.has-updates {
    color: #b45309;
}

.plugins-pending.all-good {
    color: #15803d;
}

.plugins-pending-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.plugins-pending.has-updates .plugins-pending-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.plugins-pending.all-good .plugins-pending-dot {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-2);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.badge-success {
    background: var(--success-50);
    color: var(--success-700);
}

.badge-warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.badge-error {
    background: var(--error-50);
    color: var(--error-700);
}

.badge-info {
    background: var(--info-50);
    color: var(--info-600);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* =============================================================================
   AUTH PAGES
   ============================================================================= */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-4);
}

.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-10);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-6);
}

.auth-logo svg {
    width: 64px;
    height: 64px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-2);
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-8);
}

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

.auth-help {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: var(--spacing-6);
    line-height: 1.6;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--spacing-6) 0;
    color: var(--gray-400);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    padding: 0 var(--spacing-4);
}

.auth-instructions {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    text-align: left;
}

.auth-tips {
    text-align: left;
    list-style: none;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.auth-tips li {
    padding: var(--spacing-1) 0;
    padding-left: var(--spacing-5);
    position: relative;
}

.auth-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

/* =============================================================================
   STATS CARDS
   ============================================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-6);
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    border: 1px solid var(--gray-200);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-1);
}

.stat-change {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

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

.stat-change.negative {
    color: var(--error-600);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stat-icon.blue {
    background: var(--primary-50);
    color: var(--primary-600);
}

.stat-icon.green {
    background: var(--success-50);
    color: var(--success-600);
}

.stat-icon.yellow {
    background: var(--warning-50);
    color: var(--warning-600);
}

.stat-icon.red {
    background: var(--error-50);
    color: var(--error-600);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
    margin-top: auto;
    padding: var(--spacing-6);
    border-top: 1px solid var(--gray-200);
    background: white;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* =============================================================================
   UTILITIES
   ============================================================================= */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }

.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }

.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-white { background-color: white; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.space-y-2 > * + * { margin-top: var(--spacing-2); }
.space-y-4 > * + * { margin-top: var(--spacing-4); }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =============================================================================
   DROPDOWN MENUS
   ============================================================================= */
.dropdown-menu {
    position: absolute;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: var(--z-dropdown);
    padding: var(--spacing-1);
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-item {
    display: block;
    padding: var(--spacing-2) var(--spacing-4);
    font-size: 0.875rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--gray-100);
    text-decoration: none;
}

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

.dropdown-item.danger:hover {
    background: var(--error-50);
}

.dropdown-divider {
    height: 1px;
    margin: var(--spacing-1) 0;
    background: var(--gray-200);
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */
.empty-state {
    text-align: center;
    padding: var(--spacing-12) var(--spacing-4);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-4);
    color: var(--gray-400);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-2);
}

.empty-state-text {
    color: var(--gray-500);
    margin-bottom: var(--spacing-4);
}

/* =============================================================================
   PAGINATION
   ============================================================================= */
.pagination-container {
    padding: var(--spacing-4) var(--spacing-6);
    border-top: 1px solid var(--gray-200);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
}

.pagination-link {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.875rem;
    color: var(--primary-600);
    background: var(--primary-50);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.pagination-link:hover {
    background: var(--primary-100);
    text-decoration: none;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* =============================================================================
   FILTER FORM
   ============================================================================= */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-4);
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: var(--spacing-1);
}

.filter-actions {
    display: flex;
    gap: var(--spacing-2);
}

/* =============================================================================
   STATUS BADGES
   ============================================================================= */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    padding: var(--spacing-1) var(--spacing-2);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.status-success {
    background: var(--success-50);
    color: var(--success-700);
}

.status-warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.status-danger {
    background: var(--error-50);
    color: var(--error-700);
}

.status-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* =============================================================================
   SITE CELL
   ============================================================================= */
.site-cell {
    display: flex;
    flex-direction: column;
}

.site-name {
    font-weight: 500;
    color: var(--gray-900);
}

.site-url {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* =============================================================================
   LOG TABLE
   ============================================================================= */
.table-logs .log-row.log-error {
    background: var(--error-50);
}

.table-logs .log-row.log-warning {
    background: var(--warning-50);
}

.log-time {
    font-size: 0.8125rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.log-category {
    font-size: 0.8125rem;
}

.log-message {
    max-width: 500px;
}

.log-action {
    font-weight: 500;
    margin-right: var(--spacing-2);
}

.log-site a {
    color: var(--gray-700);
}

/* =============================================================================
   ACTION BUTTONS
   ============================================================================= */
.action-buttons {
    display: flex;
    gap: var(--spacing-1);
}

.inline {
    display: inline;
}

/* =============================================================================
   FORM EXTRAS
   ============================================================================= */
.form-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--spacing-6) 0;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-4);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4);
}

.form-group-half {
    margin-bottom: var(--spacing-3);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-600);
}

.form-actions {
    display: flex;
    gap: var(--spacing-3);
    margin-top: var(--spacing-6);
}

.required {
    color: var(--error-500);
}

/* =============================================================================
   INSTRUCTION STEPS
   ============================================================================= */
.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.instruction-step {
    display: flex;
    gap: var(--spacing-3);
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-600);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-1);
}

.step-content p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* =============================================================================
   ROW/GRID LAYOUTS
   ============================================================================= */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-4) * -1);
}

.col-md-4, .col-md-8 {
    padding: 0 var(--spacing-4);
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-md-8 {
    flex: 0 0 66.667%;
    max-width: 66.667%;
}

@media (max-width: 768px) {
    .col-md-4, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =============================================================================
   STATS GRID VARIATIONS
   ============================================================================= */
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-4);
}

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

@media (max-width: 640px) {
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }
}

.stat-card .stat-icon {
    margin-bottom: var(--spacing-3);
}

.stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.stat-icon-blue {
    background: var(--primary-50);
    color: var(--primary-600);
}

.stat-icon-green {
    background: var(--success-50);
    color: var(--success-600);
}

.stat-icon-yellow {
    background: var(--warning-50);
    color: var(--warning-600);
}

.stat-icon-red {
    background: var(--error-50);
    color: var(--error-600);
}

.stat-icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .navbar-container {
        padding: var(--spacing-3) var(--spacing-4);
    }

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

    .auth-card {
        padding: var(--spacing-6);
    }

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

    .table th,
    .table td {
        padding: var(--spacing-2) var(--spacing-3);
    }

    .plugins-cell {
        gap: 6px;
    }

    .plugins-count {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .plugins-label {
        font-size: 0.75rem;
    }
}

/* =============================================================================
   ADDITIONAL COMPONENTS
   ============================================================================= */

/* Grid Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-4) * -0.5);
}

.row > [class*="col-"] {
    padding: 0 calc(var(--spacing-4) * 0.5);
    margin-bottom: var(--spacing-4);
}

.col-md-4 { width: 100%; }
.col-md-8 { width: 100%; }

@media (min-width: 768px) {
    .col-md-4 { width: 33.333%; }
    .col-md-8 { width: 66.666%; }
}

/* Info List (Definition List styling) */
.info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    padding-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--gray-100);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item dt {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.info-item dd {
    margin: 0;
    color: var(--gray-800);
    font-size: 0.875rem;
}

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.activity-action {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Form Range Slider */
.form-range {
    width: 100%;
    height: 0.5rem;
    padding: 0;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--primary-600);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.form-range::-webkit-slider-thumb:hover {
    background: var(--primary-700);
}

.form-range::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--primary-600);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Danger Card */
.card-danger {
    border: 1px solid var(--error-500);
}

.card-danger .card-header {
    background: var(--error-50);
    border-bottom-color: var(--error-500);
}

.card-danger .card-title {
    color: var(--error-600);
}

/* Button Block */
.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Code Block */
.code-block {
    background: var(--gray-800);
    color: var(--gray-100);
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--gray-800);
}

/* Text Utilities */
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--gray-500); }
.text-danger { color: var(--error-600); }
.inline { display: inline; }

/* Additional Margin/Padding */
.mb-3 { margin-bottom: var(--spacing-3); }
.mt-2 { margin-top: var(--spacing-2); }
.py-4 { padding-top: var(--spacing-4); padding-bottom: var(--spacing-4); }

/* Form Textarea */
.form-textarea {
    width: 100%;
    padding: var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    resize: vertical;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Alert Info */
.alert-info {
    background: var(--info-50);
    border: 1px solid var(--info-500);
    color: var(--gray-700);
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* =============================================================================
   ACTIONS MENU
   ============================================================================= */
.actions-menu {
    position: fixed;
    z-index: 1000;
    min-width: 220px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 6px;
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.actions-menu.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.actions-menu-label {
    padding: 8px 12px 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
}

.actions-menu-divider {
    height: 1px;
    margin: 4px 8px;
    background: var(--gray-100);
}

.actions-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease, color 0.1s ease;
}

.actions-menu-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.actions-menu-item .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}

.actions-menu-item .menu-icon svg {
    width: 16px;
    height: 16px;
}

.actions-menu-item .menu-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.actions-menu-item .menu-icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.actions-menu-item .menu-icon.purple {
    background: #faf5ff;
    color: #7c3aed;
}

.actions-menu-item .menu-icon.amber {
    background: #fffbeb;
    color: #d97706;
}

.actions-menu-item .menu-icon.slate {
    background: var(--gray-100);
    color: var(--gray-600);
}

.actions-menu-item.danger {
    color: var(--error-600);
}

.actions-menu-item.danger:hover {
    background: var(--error-50);
    color: var(--error-700);
}

.actions-menu-item.danger .menu-icon {
    background: #fef2f2;
    color: var(--error-500);
}

.actions-menu-item .menu-label {
    flex: 1;
}

.actions-menu-item .menu-shortcut {
    font-size: 0.6875rem;
    color: var(--gray-400);
    font-weight: 400;
}

/* =============================================================================
   SCAN STATUS TOAST
   ============================================================================= */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@keyframes checkDraw {
    0% { stroke-dashoffset: 24; }
    100% { stroke-dashoffset: 0; }
}

@keyframes slideInToast {
    from { opacity: 0; transform: translateX(30px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideOutToast {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(30px) scale(0.95); }
}

@keyframes progressShrink {
    from { width: 100%; }
    to { width: 0%; }
}

.scan-toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(34, 197, 94, 0.2);
    max-width: 420px;
    animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.scan-toast .scan-toast-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scan-toast .scan-toast-indicator.healthy {
    background: #22c55e;
    animation: pulseGlow 2s ease-in-out infinite;
}

.scan-toast .scan-toast-indicator.healthy svg {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: checkDraw 0.5s ease 0.2s forwards;
}

.scan-toast .scan-toast-indicator.warning {
    background: #f59e0b;
}

.scan-toast .scan-toast-indicator.offline {
    background: #ef4444;
}

.scan-toast .scan-toast-indicator.unknown {
    background: #94a3b8;
}

.scan-toast .scan-toast-body {
    flex: 1;
    min-width: 0;
}

.scan-toast .scan-toast-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.scan-toast .scan-toast-message {
    font-size: 0.75rem;
    color: #6b7280;
}

.scan-toast .scan-toast-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.scan-toast .scan-toast-status.healthy {
    background: #dcfce7;
    color: #15803d;
}

.scan-toast .scan-toast-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.scan-toast .scan-toast-status.offline {
    background: #fee2e2;
    color: #991b1b;
}

.scan-toast .scan-toast-status.unknown {
    background: #f1f5f9;
    color: #475569;
}

.scan-toast .scan-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 0 0 12px 12px;
    animation: progressShrink 2s linear forwards;
}

.scan-toast .scan-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-toast .scan-toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

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

/* =============================================================================
   TAG AUTOCOMPLETE & COLORED BADGES
   ============================================================================= */

/* Autocomplete container */
.tag-autocomplete {
    position: relative;
}

.tag-input-wrapper {
    display: flex;
    align-items: center;
    min-height: 38px;
}

/* Tag pill (selected tag display) */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1.5;
}

.tag-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-pill-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-pill-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0 0 2px;
    color: inherit;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.tag-pill-remove:hover {
    opacity: 1;
}

/* Search input inside autocomplete */
.tag-search-input {
    flex: 1;
    min-width: 0;
}

/* Dropdown */
.tag-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}

.tag-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: background var(--transition-fast);
}

.tag-dropdown-item:hover,
.tag-dropdown-item.active {
    background: var(--gray-50);
}

.tag-dropdown-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-dropdown-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* "Create new" option */
.tag-dropdown-item.create {
    border-top: 1px solid var(--gray-100);
    margin-top: 2px;
    padding-top: 10px;
    color: var(--primary-600);
    font-weight: 500;
}

.tag-dropdown-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-600);
    flex-shrink: 0;
}

/* Client tag colored badge on Sites list */
.client-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.client-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =============================================================================
   BACKUP STATUS CELL (Last Backup column)
   ============================================================================= */

/* Stacked layout: icon above, meta below */
.backup-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Circular status indicator */
.backup-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}
.backup-status-icon.success {
    background: var(--primary-50);
    color: var(--primary-600);
}
.backup-status-icon.failed {
    background: var(--error-50);
    color: var(--error-500);
}
.backup-status-icon.overdue {
    background: var(--warning-50);
    color: var(--warning-500);
}

/* Meta: time + badge stacked */
.backup-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.backup-time {
    font-size: 0.8125rem;
    color: var(--gray-700);
    white-space: nowrap;
}

/* AIWM badge */
.backup-method-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--info-50);
    color: var(--info-600);
    border: 1px solid rgba(59, 130, 246, 0.15);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Error indicator */
.backup-error-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: none;
    color: var(--error-500);
    cursor: pointer;
    border-radius: 50%;
    transition: background 150ms;
}
.backup-error-indicator:hover {
    background: var(--error-50);
}

/* Backup error popup modal */
.backup-error-modal {
    position: fixed;
    z-index: 1001;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: opacity 150ms, transform 150ms;
}
.backup-error-modal.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.backup-error-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}
.backup-error-modal-header h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}
.backup-error-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
}
.backup-error-modal-body {
    padding: 12px 16px;
}
.backup-error-status {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.backup-error-status.failed { color: var(--error-600); }
.backup-error-status.overdue { color: var(--warning-600); }
.backup-error-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.backup-error-message {
    font-size: 0.8125rem;
    color: var(--gray-700);
    line-height: 1.5;
    word-break: break-word;
}

/* Disabled action menu item */
.actions-menu-item-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Radio button style for backup method */
.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    margin-bottom: 8px;
}
.form-radio input[type="radio"] {
    accent-color: var(--primary-600);
}
