/* ==========================================================================
   account.css - Account modal, delete rows, login flow states
   Dooze Clip Generator
   ========================================================================== */

.account-modal-content {
  max-width: 520px;
  width: 100%;
  background-color: var(--surface);
  border: 0;
  border-radius: var(--radius-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.95);
  animation: modalPop 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.acc-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.acc-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.acc-section.add-box {
  background-color: rgba(255, 255, 255, 0.035);
  padding: 1.25rem;
  border-radius: 16px;
  border: 0;
}

.acc-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.acc-tip {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.acc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.acc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 0;
  border-radius: 12px;
  transition: background-color 150ms ease-out;
}
.acc-item:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.acc-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.acc-status-dot.online {
  background-color: #34a853;
  box-shadow: 0 0 8px rgba(52, 168, 83, 0.6);
}
.acc-status-dot.offline {
  background-color: #5f6368;
}

.acc-info-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.acc-info-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.acc-badge-default {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: rgba(168, 199, 250, 0.18);
  color: var(--accent);
  margin-left: 6px;
  font-weight: 500;
  border: 0 !important;
}

.btn-del-acc {
  background: transparent;
  border: none;
  color: #9aa0a6;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.btn-del-acc:hover {
  background-color: rgba(242, 139, 130, 0.15);
  color: #f28b82;
}

.acc-input-group {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.acc-input {
  flex: 1;
  min-width: 0;
  background-color: rgba(255, 255, 255, 0.07);
  border: 0 !important;
  border-radius: var(--radius-pill, 999px);
  padding: 0 16px;
  height: 38px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: all 140ms ease;
}
.acc-input:focus {
  background-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.25);
}

.btn-primary-sm {
  background-color: var(--accent);
  color: var(--accent-text);
  border: 0 !important;
  border-radius: var(--radius-pill, 999px);
  height: 38px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary-sm:hover {
  background-color: var(--accent-hover, #bacfff);
}

/* Login Flow States */
.acc-login-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
  gap: 1rem;
}

.flow-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.flow-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 380px;
  margin: 0;
}

.pulse-loader {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: 0.6;
  animation: ringPulse 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 16px rgba(168, 199, 250, 0.8);
}

@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(1.4); opacity: 0; }
}

.flow-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: rgba(168, 199, 250, 0.09);
  border: 0;
  font-size: 12px;
  color: var(--accent);
}

.flow-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.flow-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-confirm-sm {
  background-color: #34a853;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 150ms ease-out;
}
.btn-confirm-sm:hover {
  opacity: 0.9;
}

.btn-cancel-sm {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.btn-cancel-sm:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(52, 168, 83, 0.14);
  border: 0;
  color: #7bd88f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 500;
  animation: modalPop 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Petunjuk login: permukaan lembut tanpa outline. */
.login-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 420px;
  padding: 11px 14px;
  border-radius: 12px;
  background-color: rgba(168, 199, 250, 0.08);
  font-size: 12px;
  color: var(--accent);
  line-height: 1.45;
  text-align: left;
}

.login-hint-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
