.auth-error {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #ef5350;
  border-radius: 4px;
  font-size: 12px;
}

.btn-forgot-password {
  background: none;
  border: none;
  color: #4CAF50;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  color: #555;
}

.user-email {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-status {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  color: #2e7d32;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.sync-status.no-sync {
  color: #c62828;
  background: #ffebee;
  border-color: #ffcdd2;
}

/* Modal styles (used on start screen) */
.modal {
  display: none;
  position: fixed;
  z-index: 100000; /* must exceed custom-electron-titlebar's z-index of 99999 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #252525;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  color: #e0e0e0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}

.modal-header h2 {
  margin: 0;
  color: #e0e0e0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #b0b0b0;
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #e0e0e0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 14px;
  background: #1e1e1e;
  color: #e0e0e0;
  box-sizing: border-box;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.form-actions .btn {
  margin-right: 12px;
}

.form-actions .btn:last-child {
  margin-right: 0;
}
