/* ==========================================================================
   DMS DRIVE MANAGER - UI COMPONENTS & INTERACTION STYLES
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: #ffbb00;
  color: #08080a;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 187, 0, 0.3);
}

.btn-primary:hover {
  background: #ffd033;
  box-shadow: 0 4px 15px rgba(255, 187, 0, 0.45);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-highlight);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-rose);
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.25);
  border-color: var(--accent-rose);
}

.btn-remove-from-drive {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-remove-from-drive:hover {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-icon:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.pill-hd {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.pill-ssd {
  background: rgba(255, 187, 0, 0.15);
  color: #ffbb00;
  border: 1px solid rgba(255, 187, 0, 0.35);
}

.pill-unassigned {
  background: rgba(255, 187, 0, 0.15);
  color: #ffbb00;
  border: 1px solid rgba(255, 187, 0, 0.35);
  font-weight: 600;
}

/* Project Dialog Drives Checkboxes: Ensure Pure White Text */
.drive-checkbox-item {
  color: #ffffff !important;
}

.drive-checkbox-item span {
  color: #ffffff !important;
}

/* File System Pills (Flat Grayscale) */
.pill-fs-exfat,
.pill-fs-apfs,
.pill-fs-hfs,
.pill-fs-macos-ext,
.pill-fs-ntfs {
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Redundancy Pills */
.pill-backup-safe {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 600;
}

.pill-backup-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
  font-weight: 600;
  animation: pulse-danger 3s infinite;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ==========================================================================
   DRIVE WORKBENCH & DRIVE CARDS
   ========================================================================== */

.drives-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-height: 0;
  padding-bottom: 12px;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) var(--bg-surface-elevated);
}

.drives-grid::-webkit-scrollbar {
  height: 8px;
}

.drives-grid::-webkit-scrollbar-track {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
}

.drives-grid::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

.drives-grid::-webkit-scrollbar-thumb:hover {
  background: #ffbb00;
}

.drive-card {
  flex: 0 0 330px;
  width: 330px;
  min-width: 330px;
  max-width: 330px;
  background-color: var(--bg-surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 6px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.drive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--drive-color, var(--accent-yellow));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

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

/* Drag Over Target Styling (Project drop) */
.drive-card.drag-target-over {
  border-color: #ffbb00;
  box-shadow: 0 0 0 1px #ffbb00;
  background-color: rgba(255, 187, 0, 0.02);
}

/* Drive Reordering Drag Styles */
.draggable-drive-header {
  cursor: grab;
  user-select: none;
}

.draggable-drive-header:active {
  cursor: grabbing;
}

.drive-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: grab;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-right: 6px;
  flex-shrink: 0;
}

.drive-drag-handle:hover {
  color: #ffbb00;
  background-color: rgba(255, 187, 0, 0.12);
}

.drive-card.is-drive-dragging,
.drive-list-card.is-drive-dragging {
  opacity: 0.35;
  transform: scale(0.98);
}

.drive-card.drag-drive-reorder-over,
.drive-list-card.drag-drive-reorder-over {
  border-color: #ffbb00 !important;
  box-shadow: 0 0 0 2px #ffbb00, 0 8px 24px rgba(255, 187, 0, 0.25) !important;
  transform: translateY(-2px);
}

.drive-card-header {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.drive-title-area {
  flex: 1;
  min-width: 0;
}

.drive-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.drive-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.drive-meta-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.drive-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Drive Capacity Bar & Stats */
.drive-capacity-box {
  padding: 12px 16px;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.capacity-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.capacity-used-val {
  font-weight: 700;
  color: var(--text-primary);
}

.capacity-total-val {
  color: var(--text-muted);
}

.capacity-bar-track {
  height: 8px;
  width: 100%;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.capacity-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--gradient-safe);
}

.capacity-bar-fill.warning {
  background: var(--gradient-warning);
}

.capacity-bar-fill.critical {
  background: var(--gradient-critical);
}

.capacity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Projects Container inside Drive Card */
.drive-projects-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 120px;
  flex: 1;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.drive-projects-list::-webkit-scrollbar {
  width: 5px;
}

.drive-projects-list::-webkit-scrollbar-track {
  background: transparent;
}

.drive-projects-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

.drive-projects-list::-webkit-scrollbar-thumb:hover {
  background: #ffbb00;
}

.drive-projects-list.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 12px;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 12px;
}

/* ==========================================================================
   PROJECT CARDS & DRAGGABLE ITEMS (Slim & Compact Design)
   ========================================================================== */

.project-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: grab;
  transition: all var(--transition-fast);
  user-select: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.project-card:active {
  cursor: grabbing;
}

.project-card.is-dragging {
  opacity: 0.4;
  border: 1px dashed var(--accent-yellow);
  background: var(--bg-surface-active);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.project-title-box {
  flex: 1;
  min-width: 0;
}

.project-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-client {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-weight-badge {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  white-space: nowrap;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.project-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */

dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  margin: auto;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 540px;
  max-width: 95vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.15);
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(255, 187, 0, 0.15);
}

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

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Color Picker Row */
.color-swatches {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.color-swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-swatch-btn:hover {
  transform: scale(1.15);
}

.color-swatch-btn.selected {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-primary);
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success {
  border-left: 4px solid var(--accent-emerald);
}

.toast.toast-warning {
  border-left: 4px solid var(--accent-amber);
}

.toast.toast-error {
  border-left: 4px solid var(--accent-rose);
}

@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   REFORMULATED PROJECT TAG SYSTEM (Clean, Modern & Dark Theme Cohesive)
   ========================================================================== */

.project-tags-manager-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.tag-section-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tag-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.tag-section-hint {
  font-size: 10px;
  color: var(--text-muted);
}

/* 1. Assigned Tags Container */
.project-tags-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  padding: 6px 10px;
  background-color: var(--bg-surface-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  align-items: center;
}

.selected-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.btn-remove-selected-tag {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.btn-remove-selected-tag:hover {
  opacity: 1;
}

/* 2. Create New Tag Row: Input -> Color Picker on right -> Button */
.new-tag-inputs-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.new-tag-inputs-row .form-input {
  flex: 1;
  height: 36px;
  font-size: 12px;
}

.new-tag-color-field {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.new-tag-color-field:hover {
  border-color: var(--accent-yellow);
}

.new-tag-color-field input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
}

.color-preview-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-fast);
}

.new-tag-color-field:hover .color-preview-circle {
  transform: scale(1.1);
}

.new-tag-inputs-row .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* 3. System Tags Catalog List */
.all-tags-manager-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.all-tags-manager-list::-webkit-scrollbar {
  width: 5px;
}

.all-tags-manager-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

.system-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 3px 6px 3px 7px;
  transition: all var(--transition-fast);
  user-select: none;
}

.system-tag-chip:hover {
  border-color: var(--border-highlight);
  background-color: var(--bg-surface-hover);
}

.system-tag-chip.is-assigned {
  border-color: rgba(255, 187, 0, 0.45);
  background-color: rgba(255, 187, 0, 0.08);
}

.tag-color-swatch-wrap {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-color-swatch-wrap input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
}

.tag-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-fast);
}

.tag-color-swatch-wrap:hover .tag-swatch-dot {
  transform: scale(1.15);
}

.tag-toggle-btn {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin: 0;
  line-height: 1.2;
}

.tag-toggle-btn:hover {
  color: var(--accent-yellow) !important;
}

.tag-check-icon {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-yellow);
}

.tag-add-icon {
  font-size: 11px;
  color: var(--text-muted);
}

.tag-delete-btn {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  padding: 2px;
  margin: 0 0 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  opacity: 0.5;
  transition: all var(--transition-fast);
}

.tag-delete-btn:hover {
  opacity: 1;
  color: var(--accent-rose, #ef4444) !important;
  background-color: rgba(239, 68, 68, 0.15) !important;
}

/* Floating Tooltip for At-Risk Projects */
.at-risk-floating-tooltip {
  position: fixed;
  z-index: 99999;
  width: 290px;
  max-height: 380px;
  background: rgba(14, 14, 18, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.15);
  padding: 14px;
  display: none !important;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  animation: tooltipFade 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.at-risk-floating-tooltip.visible {
  display: flex !important;
}

@keyframes tooltipFade {
  from {
    opacity: 0;
    transform: translateX(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.at-risk-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.at-risk-tooltip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 280px;
  padding-right: 4px;
}

.at-risk-tooltip-item {
  padding: 8px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all var(--transition-fast);
}

.at-risk-tooltip-item:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   EMPTY STATE STYLING (Clean First-Time Onboarding Experience)
   ========================================================================== */

.drives-empty-state-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.empty-state-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 28px;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-color, #27272a);
  border-radius: var(--radius-lg, 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 187, 0, 0.1);
  border: 1px solid rgba(255, 187, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-yellow, #ffbb00);
}

.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
  max-width: 380px;
}

