/* Vault-specific styles only — colors/radius/card/btn come from domix.dev's
   own shared site.css (loaded first in partials/header.php), so this file
   only adds what that stylesheet doesn't already cover. */

.fv-main {
  padding: 32px 0 64px;
}

.fv-page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.fv-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Category tabs ── */
.fv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.fv-tab {
  border: none;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 150ms ease;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.fv-tab:hover {
  color: var(--text);
}

.fv-tab.active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
}

/* ── Category section heading ── */
.fv-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 10px;
}

.fv-section-heading:first-child {
  margin-top: 0;
}

.fv-section-heading h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}

.fv-section-heading .fv-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── File list ── */
.fv-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.fv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.fv-row:last-child {
  border-bottom: none;
}

.fv-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.fv-row-name {
  min-width: 0;
  flex: 1;
}

.fv-row-name strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv-row-name span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.fv-row-meta .fv-pill {
  background: var(--panel-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.fv-row-meta i {
  margin-right: 3px;
}

.fv-row-action {
  flex-shrink: 0;
  margin-left: auto;
}

.fv-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}

/* ── Forms ── */
.fv-field {
  margin-bottom: 16px;
}

.fv-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.fv-field .fv-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.fv-input,
.fv-textarea,
.fv-select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.fv-input:focus,
.fv-textarea:focus,
.fv-select:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px var(--ring);
}

.fv-input.fv-invalid {
  border-color: #ed4245;
  box-shadow: 0 0 0 3px rgba(237, 66, 69, 0.2);
}

.fv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .fv-grid-2 {
    grid-template-columns: 1fr;
  }
}

.fv-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

/* ── Alerts / flash messages ── */
.fv-alert {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}

.fv-alert-error {
  background: rgba(237, 66, 69, 0.1);
  border-color: rgba(237, 66, 69, 0.3);
  color: #ff8a8d;
}

.fv-alert-success {
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.3);
  color: #6bdb95;
}

/* ── Category chips (admin manager) ── */
.fv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.fv-chip {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── Login card ── */
.fv-login-wrap {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.fv-login-card {
  width: 100%;
  max-width: 380px;
  padding: 28px;
  text-align: center;
}

.fv-login-card .fv-field {
  text-align: left;
}

/* ── Shake animation for wrong password ── */
@keyframes fv-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.fv-shake {
  animation: fv-shake 350ms ease-in-out;
}

/* ── Modal (password prompt) ── */
.fv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.fv-modal-backdrop.open {
  display: flex;
}

.fv-modal {
  width: 100%;
  max-width: 380px;
  padding: 24px;
}

.fv-modal h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.fv-modal p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}
