/* account.css — Google-Account-style dashboard styling.
 * Layered on top of the existing Tailwind build (see /css/tailwind.css). */

/* Inputs & buttons */
.acct-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #1f1f1f;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.acct-input::placeholder { color: rgba(103, 232, 249, 0.4); }
.acct-input:focus {
  border-color: rgba(103, 232, 249, 0.7);
  box-shadow: 0 0 0 2px rgba(103, 232, 249, 0.25);
}

.acct-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #67e8f9;
  color: #0a0a0a;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(103, 232, 249, 0.8);
  box-shadow: 0 8px 30px -10px rgba(34, 211, 238, 0.45);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.acct-btn-primary:hover { background: transparent; color: #67e8f9; }
.acct-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.acct-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.acct-btn-secondary:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.acct-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #fca5a5;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(252, 165, 165, 0.4);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  cursor: pointer;
}
.acct-btn-danger-outline:hover { background: rgba(252, 165, 165, 0.08); color: #fecaca; }

/* Sidebar */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
}
.sidebar-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-item-active { background: rgba(103, 232, 249, 0.12); color: #67e8f9; }
.sidebar-item-admin { color: #fde68a; }
.sidebar-item-admin.sidebar-item-active { background: rgba(250, 204, 21, 0.12); color: #fde68a; }
.sidebar-icon { display: inline-flex; }
.sidebar-label { display: none; }
@media (min-width: 768px) { .sidebar-label { display: inline; } }

/* Card */
.acct-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(35, 35, 35, 0.55);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.1rem;
}
.acct-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Status pill */
.acct-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}
.acct-status-pill[data-state="on"] { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.acct-status-pill[data-state="off"] { background: rgba(252, 165, 165, 0.16); color: #fca5a5; }

/* Tab pills (admin status filter) */
.acct-tab-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.acct-tab-pill:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.acct-tab-pill-active { background: rgba(103, 232, 249, 0.15); color: #67e8f9; border-color: rgba(103, 232, 249, 0.5); }

/* List rows */
.acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(35, 35, 35, 0.6);
}
.acct-row-main { min-width: 0; flex: 1; }
.acct-row-title { font-weight: 600; font-size: 0.92rem; color: #fff; word-break: break-word; display: flex; flex-direction: row; gap: 4px; }
.acct-row-sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.15rem; word-break: break-word; }

/* Verified badge used in app cards on the dashboard */
.acct-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(16, 224, 224, 0.12);
  color: #5eead4;
  border: 1px solid rgba(16, 224, 224, 0.45);
}
.acct-verified-badge[data-tier="accredited"] {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.55);
}
.acct-unverified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(244, 114, 182, 0.10);
  color: #f9a8d4;
  border: 1px solid rgba(244, 114, 182, 0.4);
}

/* Modal backdrop helper */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 1rem;
}

/* Toast */
.acct-toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  background: #191919; color: #fff;
  padding: 0.6rem 1rem; border-radius: 0.75rem;
  font-size: 0.85rem;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}
.acct-toast[data-kind="error"] { color: #fca5a5; border-color: rgba(252, 165, 165, 0.4); }
.acct-toast[data-kind="success"] { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.4); }

/* Hide scrollbar on the inner content area on webkit */
[data-content]::-webkit-scrollbar { width: 8px; }
[data-content]::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 9999px; }

/* Scopes pill input (Google/Roblox-style autocomplete tag bar) */
.scopes-pill-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px 8px;
  cursor: text;
  position: relative;
}
.scopes-pills {
  display: contents;
}
.scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(103, 232, 249, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.4);
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.scope-pill button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 0 0 2px;
  opacity: 0.7;
}
.scope-pill button:hover { opacity: 1; }
.scopes-text {
  flex: 1;
  min-width: 80px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 0;
}
.scopes-text::placeholder { color: rgba(255, 255, 255, 0.35); }
.scopes-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
}
.scopes-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #fff;
  transition: background 0.1s;
}
.scopes-dropdown-item:hover, .scopes-dropdown-item.active {
  background: rgba(103, 232, 249, 0.1);
}
.scopes-dropdown-item .scope-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}
.scopes-dropdown-item.selected {
  opacity: 0.4;
  cursor: default;
}
.scopes-dropdown-item.selected:hover {
  background: transparent;
}

/* Toggle switch (iOS-style) */
.acct-toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.acct-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.acct-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  transition: background 0.2s;
}
.acct-toggle-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.acct-toggle-switch input:checked + .acct-toggle-slider {
  background: #67e8f9;
}
.acct-toggle-switch input:checked + .acct-toggle-slider::before {
  transform: translateX(24px);
}