/* ==================== Auth Overlay ==================== */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.auth-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.auth-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  margin-bottom: 12px;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-input::placeholder {
  color: var(--text-dim);
}

.auth-error {
  display: none;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 10px;
}

.auth-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s;
}

.auth-btn:hover {
  opacity: 0.85;
}

.auth-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* User indicator in header */
.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--surface-2);
  border-radius: 20px;
  white-space: nowrap;
}

.user-info-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.user-info-dot.online {
  background: var(--green);
}

.user-info-dot.offline {
  background: var(--orange);
}

.user-info-email {
  font-weight: 600;
}

.user-info-logout {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
  font-family: 'DM Sans', sans-serif;
}

.user-info-logout:hover {
  color: var(--red);
}

/* ==================== Activity Log Panel ==================== */
.log-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.log-overlay.hidden {
  display: none;
}

.log-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.log-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.log-panel-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.log-panel-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

.log-panel-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

.log-list {
  flex: 1;
  overflow-y: auto;
}

.log-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: 13px;
}

.log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.log-item:last-child {
  border-bottom: none;
}

.log-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.log-icon.save {
  background: var(--green-bg);
  color: var(--green);
}

.log-icon.login {
  background: var(--accent-dim);
  color: var(--accent);
}

.log-content {
  flex: 1;
  min-width: 0;
}

.log-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.log-action {
  font-size: 12px;
  color: var(--text-muted);
}

.log-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}