/**
 * uNotes Web - Vault integration styles
 * Small additions on top of the prototype design system for the local cache,
 * sync states and the offline demo controls.
 */

.vault-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-text);
  background: var(--bg-input);
  border-radius: 10px;
  padding: 2px var(--space-2);
}

.vault-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 62vh;
  color: var(--slate-text);
  padding: var(--space-10) var(--space-5);
}

.vault-empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--notes-orange-tint);
  color: var(--notes-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: none;
}

.vault-empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.vault-empty-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate-text);
  max-width: 420px;
  margin-bottom: var(--space-4);
}

.vault-empty-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.drop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.drop-overlay.visible {
  display: flex;
}

.drop-overlay-card {
  width: 100%;
  max-width: 420px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sheet);
  background: var(--bg-modal);
  padding: 34px var(--space-7);
  text-align: center;
  box-shadow: var(--elev-sheet);
}

.drop-overlay-card svg {
  color: var(--notes-orange);
  margin-bottom: var(--space-3);
}

.drop-overlay-card strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.drop-overlay-card span {
  font-size: 13px;
  color: var(--slate-text);
}

.resource-inline-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--error-tint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
}

.sample-passphrase-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--notes-orange-tint);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-search);
  padding: 9px var(--space-3);
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--slate-text);
}

.sample-passphrase-hint code {
  font-family: ui-monospace, Menlo, Monaco, "Cascadia Code", monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-text);
  background: var(--cream-surface-2);
  border-radius: var(--radius-badge);
  padding: 2px 6px;
}

.sample-passphrase-hint button {
  flex-shrink: 0;
}

.form-error {
  background: var(--error-tint);
  border: 1px solid var(--error);
  color: var(--ink);
  border-radius: var(--radius-search);
  font-size: 12px;
  line-height: 1.45;
  padding: var(--space-2) 10px;
  margin-bottom: var(--space-3);
}

.settings-note {
  font-size: 12px;
  color: var(--slate-text);
  line-height: 1.5;
  margin-top: var(--space-2);
}

.readonly-footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--slate-text);
  padding: 10px var(--space-4) var(--space-4);
}

.note-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--notes-orange-tint);
  color: var(--orange-text);
  padding: 1px 6px;
  border-radius: var(--radius-badge);
  font-weight: 600;
}

.note-body-editor .checklist-item {
  cursor: default;
}

.note-body-editor pre {
  background: var(--bg-input);
  border-radius: var(--radius-search);
  padding: var(--space-3) 14px;
  overflow-x: auto;
  margin-bottom: 14px;
}

.note-body-editor pre code {
  background: none;
  padding: 0;
}

.note-body-editor hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 18px 0;
}

.filter-title-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.mobile-list-menu,
.mobile-back-btn {
  display: none;
}

@media (max-width: 640px) {
  .app-note-list {
    width: 100%;
    flex: 1;
  }

  .app-editor-pane {
    display: none;
  }

  body.note-selected .app-note-list {
    display: none;
  }

  body.note-selected .app-editor-pane {
    display: flex;
  }

  .mobile-list-menu {
    display: inline-flex;
  }

  .mobile-back-btn {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    color: var(--orange-text);
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .header-center {
    display: none;
  }

  .editor-header-bar {
    padding: var(--space-2) var(--space-3);
  }

  .header-right .header-btn span {
    display: none;
  }

  .note-folder-breadcrumb,
  .note-folder-breadcrumb-btn {
    font-size: 15px;
    font-weight: 500;
    color: var(--orange-text);
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: none;
    border: none;
    padding: 0;
  }

  .note-folder-breadcrumb svg,
  .note-folder-breadcrumb-btn svg {
    display: none;
  }
}
