/* =========================================================================
   v3 polish — login centring, squarer identity, inline toolbars
   ========================================================================= */

/* login: brand truly centred above the card */
.login-head {
  display: flex; align-items: center; justify-content: center;
  width: 100%; text-align: center; margin-bottom: 2px;
}
.login-head .brand-name { display: block; text-align: center; }

/* role badges: colours only, no emoji */
.role-badge { padding: 3px 10px; gap: 0; letter-spacing: .08em; }
.role-badge .glyph { display: none; }

/* square profile picture */
.avatar { border-radius: 10px; }
.avatar-q { font-size: 16px; }

/* sidebar identity: avatar, then username + badge stacked and centred */
.profile { align-items: center; gap: 12px; }
.profile-meta { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.profile-name { line-height: 1.15; }

/* sign out = destructive */
.btn.signout {
  margin-top: 10px; justify-content: center;
  background: rgba(255, 95, 109, .10);
  border-color: rgba(255, 95, 109, .35);
  color: #ff9aa2;
}
.btn.signout:hover { background: rgba(255, 95, 109, .18); border-color: rgba(255, 95, 109, .55); color: #ffd0d4; }

/* file inputs */
input[type=file] {
  width: 100%; color: var(--txt-2); font-size: 12.5px;
  background: #0a0f18; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 6px;
}
input[type=file]::file-selector-button {
  margin-right: 10px; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  background: #16202f; border: 1px solid #26324a; color: var(--txt);
  font: inherit; font-size: 12.5px; font-weight: 500;
}
input[type=file]::file-selector-button:hover { background: #1c2738; border-color: #33415c; }

/* card toolbars: search / filters stay on one line, right aligned */
.card-head { gap: 14px; }
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.card-actions form { display: flex; gap: 8px; align-items: center; margin: 0; }
.card-actions input[type=text], .card-actions select { height: 32px; padding: 0 10px; font-size: 12.5px; }
.card-actions .btn { height: 32px; }
.card-actions a.btn, .card-actions button.btn { white-space: nowrap; }

/* red delete action used on rows */
.btn.icon.trash { color: #ff8b94; border-color: rgba(255, 95, 109, .28); }
.btn.icon.trash:hover { background: rgba(255, 95, 109, .12); color: #ffd0d4; }
.btn.danger.solid {
  background: rgba(255, 95, 109, .12); border-color: rgba(255, 95, 109, .45);
  color: #ff9aa2; font-weight: 600;
}
.btn.danger.solid:hover { background: rgba(255, 95, 109, .2); border-color: rgba(255, 95, 109, .65); color: #fff; }

/* compact dashboard for sub-users */
.welcome-card { display: flex; align-items: center; gap: 14px; }
.welcome-card h2 { font-size: 16px; margin: 0 0 4px; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-links a {
  display: block; padding: 14px; border-radius: 12px; background: #0f1520;
  border: 1px solid #1a2130; color: var(--txt); text-decoration: none;
}
.quick-links a:hover { border-color: #2a3446; background: #131b28; }
.quick-links .q-title { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.quick-links .q-sub { color: var(--muted); font-size: 11.5px; }

@media (max-width: 900px) {
  .card-head { flex-direction: column; align-items: flex-start; }
  .card-actions { flex-wrap: wrap; }
  .quick-links { grid-template-columns: 1fr; }
}
