/* ═══════════════ MODAL COMPONENT STYLES ═══════════════ */
.recents-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px 16px;
}

.recents-modal-backdrop[hidden] {
  display: none !important;
}

.recents-modal-panel {
  width: 100%;
  max-width: 360px;
  background: #1e1e1e;
  border: 1px solid #343434;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .recents-modal-panel {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recents-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .recents-modal-header {
  border-bottom-color: #f3f4f6;
}

.recents-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

[data-theme="light"] .recents-modal-title {
  color: #111827;
}

.recents-modal-close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.recents-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.recents-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recents-modal-label {
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recents-modal-input {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #444444;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.recents-modal-input:focus {
  border-color: #008ff0;
  box-shadow: 0 0 0 2px rgba(0, 143, 240, 0.25);
}

[data-theme="light"] .recents-modal-input {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.recents-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  background: #1e1e1e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .recents-modal-footer {
  background: #f9fafb;
  border-top-color: #f3f4f6;
}

.recents-modal-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.recents-modal-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}

.recents-modal-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .recents-modal-btn--secondary {
  background: #e5e7eb;
  color: #374151;
}

.recents-modal-btn--primary {
  background: #008ff0;
  color: #ffffff;
}

.recents-modal-btn--primary:hover {
  background: #0077c8;
}
