/* ==========================================================================
   ELITE BACKUP & RESTORE CSS
   Glassmorphism, Status Pulses, Danger Modals
   ========================================================================== */

/* Layout & Globals */
.bkp-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; position: relative; overflow-x: hidden; display: flex; flex-direction: column; }
.bkp-layout-2col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: flex-start; }

/* Utilities */
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.hidden-mobile { display: flex; }
@media (max-width: 768px) { .hidden-mobile { display: none !important; } .bkp-layout-2col { grid-template-columns: 1fr; } }
.m-0 { margin: 0; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; } .p-16 { padding: 16px; } .p-24 { padding: 24px; } .pt-8 { padding-top: 8px; } .pt-16 { padding-top: 16px; } .pb-8 { padding-bottom: 8px; } .pb-16 { padding-bottom: 16px; }
.border-top { border-top: 1px solid rgba(255,255,255,0.1); } .border-bottom { border-bottom: 1px solid rgba(255,255,255,0.1); }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.85rem; } .text-lg { font-size: 1.1rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; } .text-center { text-align: center; } .text-right { text-align: right; }
.uppercase { text-transform: uppercase; } .letter-spacing { letter-spacing: 1px; } .font-bold { font-weight: 700; } .tabular-nums { font-variant-numeric: tabular-nums; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-align-center { display: flex; align-items: center; } .align-start { align-items: flex-start; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .flex-grow { flex-grow: 1; min-height: 0; } .flex-shrink-0 { flex-shrink: 0; }

/* Palette */
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; } .text-blue { color: #3b82f6; } .text-white { color: #ffffff; }
.bg-purple { background: #c084fc; color: #000; } .bg-cyan { background: #06b6d4; color: #000; } .bg-gold { background: #fbbf24; color: #000; } .bg-green { background: #22c55e; color: #000; } .bg-red { background: #ef5350; color: #fff; } .bg-dark { background: rgba(0,0,0,0.5); }
.border-red { border: 1px solid rgba(239,83,80,0.4) !important; } .border-cyan { border: 1px solid rgba(6,182,212,0.4) !important; } .border-purple { border: 1px solid rgba(192,132,252,0.4) !important; } .border-gold { border: 1px solid rgba(251,191,36,0.4) !important; }
.bg-dang { background: rgba(239,83,80,0.2); color: #ef5350; border: 1px solid rgba(239,83,80,0.3); } .bg-ok { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(6,182,212,0.4); } 70% { box-shadow: 0 0 0 15px rgba(6,182,212,0); } 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); } }
@keyframes pulseGlowRed { 0% { box-shadow: 0 0 0 0 rgba(239,83,80,0.5); } 70% { box-shadow: 0 0 0 20px rgba(239,83,80,0); } 100% { box-shadow: 0 0 0 0 rgba(239,83,80,0); } }
@keyframes spinSlow { 100% { transform: rotate(360deg); } }

.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pulse-btn { animation: pulseGlow 2s infinite; border-radius: 12px; }
.pulse-btn-red { animation: pulseGlowRed 2s infinite; border-radius: 12px; }
.bkp-status-pulse { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.spinning-slow { animation: spinSlow 3s linear infinite; }

/* Cards & Buttons */
.bkp-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.4s; }

.bkp-btn { padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; border: none; text-transform: uppercase; font-family: inherit; }
.bkp-btn--primary { background: linear-gradient(135deg, #06b6d4, #a855f7); color: white; box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3); }
.bkp-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5); }
.bkp-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.bkp-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.bkp-btn--secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.bkp-btn--danger { background: linear-gradient(135deg, #ef5350, #c62828); color: white; box-shadow: 0 4px 15px rgba(239,83,80,0.3); border-radius: 8px; }
.bkp-btn--danger:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,83,80,0.5); }
.bkp-btn-icon { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: 0.2s; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.bkp-btn-icon:hover { color: white; background: rgba(255,255,255,0.1); transform: scale(1.05); }
.bkp-btn-icon-small { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.bkp-btn-icon-small:hover { background: rgba(192,132,252,0.2); color: #c084fc; border-color: #c084fc; }
.bkp-btn-text { background: transparent; border: none; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: 0.2s; padding: 0; }
.bkp-btn-text:hover { filter: brightness(1.2); }

.bkp-input, .bkp-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.85rem; outline: none; }
.bkp-input:focus, .bkp-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.bkp-form-group { margin-bottom: 16px; }
.bkp-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.bkp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Switch Toggle & Checkboxes */
.bkp-switch { position: relative; display: inline-block; width: 42px; height: 22px; flex-shrink: 0; }
.bkp-switch input { opacity: 0; width: 0; height: 0; }
.bkp-slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 24px; }
.bkp-slider-toggle:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.bkp-switch input:checked + .bkp-slider-toggle { background-color: #06b6d4; }
.bkp-switch input:checked + .bkp-slider-toggle:before { transform: translateX(20px); }

.bkp-chk-lbl { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.8); cursor: pointer; }
.bkp-chk-lbl input { accent-color: #06b6d4; width: 16px; height: 16px; cursor: pointer; }

/* Header & Stats */
.bkp-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; flex-shrink: 0; }
.bkp-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; text-transform: uppercase; }
.bkp-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.bkp-header__actions { display: flex; gap: 16px; align-items: center; }

.bkp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bkp-stat-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 20px; border-radius: 16px; display: flex; flex-direction: column; }
.bkp-stat-card .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.bkp-stat-card .val { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px 0; tabular-nums: tabular-nums; line-height: 1.2; }
.bkp-stat-card .sub { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* Quick Actions */
.bkp-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bkp-q-card { background: rgba(255,255,255,0.02); padding: 24px; border-radius: 16px; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; }
.bkp-q-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.04); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.q-ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }

/* Filters & Table */
.bkp-filter-chips { display: flex; gap: 8px; }
.bkp-filter-chips button { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); padding: 4px 12px; border-radius: 16px; font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: 0.2s; text-transform: uppercase; }
.bkp-filter-chips button:hover { color: white; background: rgba(255,255,255,0.1); }
.bkp-filter-chips button.active { background: rgba(6,182,212,0.2); color: #06b6d4; border-color: rgba(6,182,212,0.4); }

.bkp-table-wrap { overflow-x: auto; flex-grow: 1; }
.bkp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; white-space: nowrap; }
.bkp-table th { text-align: left; padding: 16px; border-bottom: 2px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); text-transform: uppercase; font-size: 0.75rem; font-weight: 700; background: rgba(14,12,18,0.9); position: sticky; top: 0; z-index: 10; }
.bkp-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; }
.bkp-table tr:hover td { background: rgba(255,255,255,0.03); }
.bkp-badge { font-size: 0.65rem; padding: 4px 8px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }

/* Cloud List */
.bkp-cloud-list { display: flex; flex-direction: column; gap: 12px; }
.cld-item { background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }

/* Modals & Wizards */
.bkp-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.bkp-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.bkp-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: popIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
.bkp-modal__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.bkp-modal__close:hover { color: white; transform: rotate(90deg); }

.bkp-radio-list { display: flex; flex-direction: column; gap: 12px; }
.bkp-radio-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 0.9rem; color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.bkp-radio-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(6,182,212,0.3); }
.bkp-radio-row.active { border-color: #06b6d4; background: rgba(6,182,212,0.1); }
.bkp-radio-row i.fa-circle-check { opacity: 0; transition: 0.2s; font-size: 1.2rem; }
.bkp-radio-row.active i.fa-circle-check { opacity: 1; }

.bkp-wizard { max-width: 700px; padding: 32px; display: flex; flex-direction: column; }
.bkp-wizard-body { min-height: 250px; padding: 16px 0; }
.bkp-step { animation: fadeInUp 0.3s forwards; }

.bkp-backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-height: 300px; overflow-y: auto; padding-right: 8px; }
.bkp-b-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 16px; border-radius: 12px; cursor: pointer; transition: 0.2s; }
.bkp-b-card:hover { border-color: #06b6d4; background: rgba(255,255,255,0.05); }
.bkp-b-card.selected { border-color: #ef5350; background: rgba(239,83,80,0.1); } /* Red for Danger selection */

.bkp-alert { padding: 16px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 12px; color: #fff; }
.bkp-giant-icon { font-size: 4rem; display: inline-block; }

.bkp-multi-prog { display: flex; flex-direction: column; text-align: left; }
.bkp-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin: 0; }
.bkp-progress-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease-out; }