/* ═══════════════════════════════════════════════════════════════
   NEXUS OS — Disk Analyzer
   Neon glassmorphism storage analysis interface
   ═══════════════════════════════════════════════════════════════ */

.nexus-disk-analyzer {
  width: 100%; height: 100%;
  background: rgba(10, 5, 20, 0.96);
  border: 1px solid rgba(180, 0, 255, 0.2);
  border-radius: 8px;
  display: flex; flex-direction: column;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #e0e0e0;
  overflow: hidden;
  position: relative;
}

.nexus-disk-analyzer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 0, 255, 0.5), transparent);
}

.da-header {
  padding: 14px 16px;
  background: rgba(180, 0, 255, 0.06);
  border-bottom: 1px solid rgba(180, 0, 255, 0.15);
  display: flex; align-items: center; justify-content: space-between;
}

.da-header h3 {
  margin: 0; font-size: 13px; font-weight: 600;
  color: #b400ff;
  text-shadow: 0 0 10px rgba(180, 0, 255, 0.5);
  letter-spacing: 1px;
}

.da-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 0, 255, 0.3) transparent;
}

.da-body::-webkit-scrollbar { width: 6px; }
.da-body::-webkit-scrollbar-track { background: transparent; }
.da-body::-webkit-scrollbar-thumb { background: rgba(180, 0, 255, 0.3); border-radius: 3px; }

.da-overview {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}

.da-card {
  background: rgba(180, 0, 255, 0.04);
  border: 1px solid rgba(180, 0, 255, 0.12);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.da-card-value {
  font-size: 22px; font-weight: 700;
  color: #b400ff;
  text-shadow: 0 0 12px rgba(180, 0, 255, 0.4);
}

.da-card-label {
  font-size: 10px; color: #666;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-top: 4px;
}

.da-ring-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 10px 0;
}

.da-ring {
  position: relative; width: 100px; height: 100px;
}

.da-ring canvas { width: 100%; height: 100%; }

.da-ring-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px; font-weight: 700;
  color: #b400ff;
}

.da-breakdown {
  display: flex; flex-direction: column; gap: 6px;
}

.da-breakdown-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
}

.da-breakdown-color {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
}

.da-breakdown-name { flex: 1; }
.da-breakdown-size { color: #888; font-size: 10px; }

.da-breakdown-bar {
  width: 100%; height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.da-breakdown-seg {
  height: 100%;
  transition: width 0.5s ease;
}

.da-section {
  background: rgba(180, 0, 255, 0.04);
  border: 1px solid rgba(180, 0, 255, 0.12);
  border-radius: 6px;
  padding: 14px;
}

.da-section h4 {
  margin: 0 0 10px 0; font-size: 11px; font-weight: 600;
  color: #b400ff; text-transform: uppercase; letter-spacing: 0.5px;
}

.da-tree {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 11px;
}

.da-tree-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.da-tree-item:hover { background: rgba(180, 0, 255, 0.08); }

.da-tree-icon { width: 14px; text-align: center; }
.da-tree-name { flex: 1; }
.da-tree-size { color: #888; font-size: 10px; }

.da-cleanup-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 4px;
}

.da-cleanup-check { width: 14px; height: 14px; accent-color: #b400ff; }
.da-cleanup-size { margin-left: auto; color: #b400ff; font-weight: 600; }

.da-btn {
  padding: 6px 14px;
  background: rgba(180, 0, 255, 0.12);
  border: 1px solid rgba(180, 0, 255, 0.25);
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.da-btn:hover {
  background: rgba(180, 0, 255, 0.25);
  border-color: rgba(180, 0, 255, 0.5);
  box-shadow: 0 0 10px rgba(180, 0, 255, 0.2);
}

.da-footer {
  padding: 8px 16px;
  background: rgba(180, 0, 255, 0.04);
  border-top: 1px solid rgba(180, 0, 255, 0.1);
  font-size: 10px;
  color: #555;
  display: flex; justify-content: space-between;
}
