/* ==========================================================================
   view-accounts.css - Dedicated Google Accounts Hub & Management View
   Dooze Clip Generator / Clean Workspace (Gemini Borderless Style)
   ========================================================================== */

.accounts-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Quick Add Account Card */
.account-add-panel {
  background: var(--surface);
  border: 0 !important;
  border-radius: var(--radius-card, 24px);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.account-add-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gemini-gradient, linear-gradient(90deg, #4285F4 0%, #9B72CB 50%, #D96570 100%));
}

.account-add-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-add-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-add-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 4px 0 0 0;
}

.account-add-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.account-input-name {
  background: rgba(255, 255, 255, 0.07);
  border: 0 !important;
  border-radius: var(--radius-pill, 999px);
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  color: var(--text-primary);
  min-width: 280px;
  flex: 1;
  outline: none;
  transition: all 140ms ease;
}

.account-input-name:focus {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.25);
}

.account-input-name::placeholder {
  color: var(--text-tertiary);
}

.btn-open-login {
  background: var(--accent);
  color: var(--accent-text);
  border: 0 !important;
  border-radius: var(--radius-pill, 999px);
  height: 38px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-open-login:hover:not(:disabled) {
  background: var(--accent-hover, #bacfff);
  box-shadow: 0 4px 16px rgba(168, 199, 250, 0.28);
}

.btn-open-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Onboarding Steps Visual */
.account-steps-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 14px;
  border-top: 0;
}

.account-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.account-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Account Cards Grid */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.account-full-card {
  background: var(--surface);
  border: 0 !important;
  border-radius: var(--radius-card, 22px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4);
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.account-full-card:hover {
  background: var(--surface-raised, #282a2c);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

.account-full-card.is-default-account {
  background: linear-gradient(180deg, rgba(168, 199, 250, 0.06) 0%, var(--surface) 100%);
}

.acc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acc-card-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acc-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168, 199, 250, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  flex-shrink: 0;
}

.acc-card-name-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-card-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.acc-badge-default {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 199, 250, 0.18);
  color: var(--accent);
  border: 0 !important;
}

.acc-card-email {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: monospace;
}

.acc-card-details-box {
  background: rgba(0, 0, 0, 0.28);
  border: 0 !important;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.acc-detail-label {
  color: var(--text-tertiary);
}

.acc-detail-val {
  color: var(--text-secondary);
  font-weight: 500;
}

.acc-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 0;
  flex-wrap: wrap;
}

.acc-btn-sub {
  background: rgba(255, 255, 255, 0.08);
  border: 0 !important;
  border-radius: var(--radius-pill, 999px);
  height: 32px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 140ms ease;
  user-select: none;
}

.acc-btn-sub:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.acc-btn-sub.btn-danger {
  background: rgba(242, 139, 130, 0.12);
  color: var(--error);
}

.acc-btn-sub.btn-danger:hover {
  background: rgba(242, 139, 130, 0.22);
  color: #ffb4ab;
}
